@font-face {
    font-family: "Instrument Serif";
    src: url("./InstrumentSerif-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
    line-height: 1.5;
    background: #f8f5f0;
    color: #252c28;
    --forest: #294239;
    --ink-muted: #5d6760;
    --accent: #813752;
    --line: #e7e0d6;
    --white: #fffefa;
    --sand: #f3ede5;
    --rose: #f9edf2;
    --radius: 18px;
    --display: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(3.05rem, 5.1vw, 4.65rem); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); line-height: 1.08; }
h3 { font-size: 1.65rem; line-height: 1.15; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.bar {
    position: sticky;
    z-index: 5;
    top: 0;
    color: var(--forest);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.bar-inner, .workspace { width: min(1360px, calc(100% - 72px)); margin-inline: auto; }
.bar-inner { position: relative; display: flex; align-items: center; gap: clamp(18px, 3.25vw, 46px); min-height: 72px; }
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 2.06rem;
    line-height: 1;
    text-decoration: none;
}
.mark { display: block; width: 44px; height: 44px; flex: 0 0 auto; }
.bar-links { display: flex; align-items: center; }
.bar-links a {
    border-radius: 9px;
    padding: 7px 14px;
    color: var(--ink-muted);
    font-weight: 650;
    font-size: .9rem;
    text-decoration: none;
}
.bar-links a:hover { background: var(--sand); }
.bar-links a[aria-current="page"] { color: var(--forest); background: #edf0e9; }
.portal-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.menu-disclosure { position: relative; }
.menu-disclosure > summary { list-style: none; }
.menu-disclosure > summary::-webkit-details-marker { display: none; }
.icon-button, .account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
}
.icon-button { position: relative; width: 42px; height: 42px; }
.icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.icon-button:hover, .account-button:hover, .menu-disclosure[open] > summary, .icon-button[aria-current="page"] {
    border-color: #e6eadd;
    background: #eef1e9;
}
.nav-badge {
    position: absolute;
    inset: 0 -3px auto auto;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding-inline: 3px;
    border: 2px solid var(--white);
    border-radius: 20px;
    background: #a22d50;
    color: #fff;
    font-size: .64rem;
    font-weight: 750;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.account-menu { margin-inline-start: 6px; }
.account-button { gap: 8px; min-height: 42px; padding: 3px 7px; }
.avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--accent);
    font-size: .86rem;
    font-weight: 720;
    line-height: 1;
}
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 650; }
.account-chevron { width: 14px; height: 14px; color: var(--ink-muted); }

.portal-menu {
    position: absolute;
    top: calc(100% + 11px);
    inset-inline-end: 0;
    width: 300px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 40px #30262024, 0 2px 7px #3026200d;
    color: #252c28;
}
.portal-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-menu h2 { font-size: 1.85rem; }
.notification-menu { width: 420px; padding: 16px 8px 8px; }
.notification-menu .portal-menu-heading { padding: 2px 10px 12px; }
.text-button {
    min-height: 32px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 650;
    text-underline-offset: .18em;
}
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .55; }
.menu-status { margin: 0 10px 8px; padding: 8px 10px; border-radius: 7px; background: var(--sand); font-size: .85rem; }
.menu-empty { padding-block: 9px; color: var(--ink-muted); font-size: .9rem; }
.notification-menu .menu-empty { padding-inline: 10px; }
.notification-list {
    max-height: min(450px, 64vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0;
    list-style: none;
}
.notification-list:focus-visible { outline-offset: -2px; }
.notification-entry {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 10px;
    border-radius: 9px;
    font-size: .89rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}
.notification-entry + .notification-entry { margin-top: 2px; }
.notification-entry.is-new { background: #faf1f5; }
.notification-entry time { display: block; margin-top: 3px; color: var(--ink-muted); font-size: .75rem; }
.notification-dot { width: 7px; height: 7px; margin-top: .46em; border-radius: 50%; background: var(--accent); }
.notification-entry > div { grid-column: 2; }
.android-menu .primary { gap: 8px; width: 100%; }
.android-menu .icon { width: 16px; height: 16px; }
.app-release { margin: 10px 0 13px; }
.app-release span { display: block; margin-top: 3px; font-size: .87rem; }
.profile-menu { width: 220px; }
.profile-name { font-weight: 680; margin-bottom: 10px; overflow-wrap: anywhere; }
.profile-menu .quiet { width: 100%; }

.workspace { padding-block: 35px 60px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.agenda-heading { color: var(--forest); padding-block: 6px; }
.agenda-heading .primary { padding-inline: 17px; }
.pending-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: .9rem; font-weight: 650; text-underline-offset: .2em; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.columns:has(.request) { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
.panel {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 2px 3px #392c1a04, 0 9px 25px #392c1a08;
}
.calendar { padding: 22px; }
.calendar-toolbar, .entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.calendar-toolbar h2 { color: var(--forest); }
.month-nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.month-nav a, .primary, .quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: .88rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}
.month-nav a { min-height: 37px; }
.month-nav a:hover, .quiet:hover { background: var(--sand); }
.primary { background: var(--forest); color: #fff; border-color: var(--forest); cursor: pointer; }
.primary:hover { background: #3a574c; border-color: #3a574c; }
.quiet { background: var(--white); color: var(--forest); }
.primary:disabled { opacity: .55; cursor: default; }
.quiet[aria-pressed="true"] { background: #e0efe5; border-color: #79978a; }

.calendar-selection-hint {
    min-height: 34px;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f4f2ed;
    color: var(--ink-muted);
    font-size: .87rem;
}
.calendar-scroll { margin-top: 12px; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--line);
}
.weekday {
    padding: 8px 2px;
    background: #f4f0ea;
    color: var(--ink-muted);
    font-size: .8rem;
    font-weight: 680;
    text-align: center;
}
.day {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 93px;
    overflow: hidden;
    padding: 6px 7px;
    border: 0;
    background: var(--white);
    color: inherit;
    text-align: start;
}
.day-empty { background: #f8f4ef; }
.day time {
    display: inline-grid;
    align-self: flex-start;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding-inline: 2px;
    font-size: .84rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.day-selectable:hover { background: #f8f3ef; }
.day-selectable:focus-visible { position: relative; z-index: 1; outline-offset: -2px; }
.day-today { background: #f1f3ed; }
.day-today time { border-radius: 50%; background: var(--forest); color: #fff; }
.day-range-middle, .day-range-start, .day-range-end { background: var(--rose); }
.day-range-middle:hover, .day-range-start:hover, .day-range-end:hover { background: #f5e1ea; }
.day-range-start time, .day-range-end time { border-radius: 50%; background: var(--accent); color: #fff; }
.calendar-event { display: block; margin-top: 3px; padding: 1px 5px; border: 1px solid transparent; border-radius: 5px; }
.calendar-event span { display: block; overflow: hidden; font-size: .76rem; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.day-more { color: var(--ink-muted); font-size: .77rem; }
.type-shared { background: #e1eee5; color: #264b37; }
.type-exclusive { background: #f3e3ec; color: #70354f; }
.type-airbnb { background: #f1e6d3; color: #694717; }
.is-pending { border: 1px dashed #a46384; }
.legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 14px 0 0;
    padding: 0;
    color: var(--ink-muted);
    font-size: .82rem;
    list-style: none;
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 4px; }

.request, .ledger { padding: 22px; }
.request, #demandes { scroll-margin-top: 90px; }
.request h2, .ledger h2 { color: var(--forest); }
.request > p { margin-top: 6px; }
.muted, .entry p { color: var(--ink-muted); }
.stack { display: grid; gap: 15px; margin-top: 16px; }
.request .stack > .primary { width: 100%; margin-top: 1px; }
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
label, legend { font-size: .89rem; font-weight: 650; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
fieldset legend { padding: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="url"], select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    margin-top: 5px;
    padding: 7px 9px;
    border: 1px solid #cfc7bb;
    border-radius: 8px;
    background: #fff;
    color: inherit;
}
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.settings small { display: block; margin-top: 5px; color: var(--ink-muted); font-weight: 400; }
.settings-actions { margin-top: 13px; }
.account-form:not(:has(select option[value="new"]:checked)) .new-household { display: none; }
.account-list { margin: 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.account-directory { display: grid; gap: 22px; }
.account-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-list-row > div { min-width: 0; }
.account-list-row .quiet { flex-shrink: 0; }
.account-withdrawn { margin-top: 16px; }
.account-withdrawn summary { color: var(--forest); cursor: pointer; font-weight: 650; }
.account-withdrawn p { margin-top: 8px; }
.account-remove { color: var(--accent); }
.choice {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-top: 7px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.choice:has(input:checked) { border-color: #91a591; background: #f1f5ef; }
.choice input { margin-top: 4px; accent-color: var(--forest); }
.choice small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: .81rem; font-weight: 400; }
.ledger { margin-top: 22px; }
.settings-grid .ledger { margin-top: 0; }
.ledger > p { margin-top: 8px; }
.entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.entry p { margin-top: 3px; }
.pill { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: .82rem; font-weight: 650; }
.notice { margin: 0 0 13px; padding: 10px 13px; border-radius: 9px; }
.notice-success { background: #e1eee4; color: #244338; }
.notice-error { background: #f8e9e8; color: #762931; }
.settings .notice { margin-top: 10px; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(310px, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 68px);
    min-height: 100vh;
    width: min(1180px, calc(100% - 52px));
    margin: auto;
    padding-block: 40px;
}
.scenic {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    margin: 0;
    border-radius: var(--radius);
    background: var(--forest);
    color: #fff;
}
.scenic > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.scenic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #121c1a, #192622b0 38%, #202c240d 85%); }
.scenic :focus-visible { outline-color: #fff6e8; }
.login-intro { min-height: clamp(440px, 64vh, 650px); }
.login-copy { padding: clamp(26px, 5vw, 57px); padding-bottom: 26px; }
.login-copy .mark {
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    border-radius: 16px;
    background: #fff8f0 url("./cyclamen-mark.svg") center / 51px no-repeat;
}
.login-copy h1 { font-size: clamp(5rem, 10vw, 9.5rem); letter-spacing: -.045em; }
.login-copy p { margin-top: 8px; color: #fff8ef; font-size: clamp(1rem, 2vw, 1.3rem); }
.landscape-credit { padding: 10px 18px; color: #f8efdf; font-size: .8rem; }
.landscape-credit a { text-underline-offset: .17em; }
.login-form { padding: clamp(24px, 4.5vw, 48px); }
.login-form > p { margin-top: 8px; color: var(--ink-muted); }
.login-form h2 { font-size: clamp(2.5rem, 4.8vw, 3.8rem); }
.login-form .stack { gap: 19px; margin-top: 25px; }
.login-form .notice { margin-top: 14px; }

@media (min-width: 981px) and (min-height: 720px) {
    .request { position: sticky; top: 94px; }
}

@media (max-width: 980px) {
    .bar-inner, .workspace { width: calc(100% - 40px); }
    .columns:has(.request) { grid-template-columns: minmax(0, 1fr) minmax(270px, 290px); }
    .columns, .settings-grid { gap: 14px; }
    .calendar, .request, .ledger { padding: 16px; }
    .day { padding-inline: 4px; }
}

@media (max-width: 810px) {
    .columns:has(.request), .settings-grid { grid-template-columns: minmax(0, 1fr); }
    .login-layout { gap: 22px; width: min(1180px, calc(100% - 32px)); }
}

@media (max-width: 670px) {
    .bar-inner, .workspace { width: calc(100% - 24px); }
    .bar-inner { min-height: 62px; gap: 10px; }
    .bar-links, .account-name, .account-chevron { display: none; }
    .wordmark { gap: 4px; font-size: 1.72rem; }
    .mark { width: 36px; height: 36px; }
    .portal-actions { gap: 3px; }
    .icon-button, .account-button { width: 36px; height: 40px; }
    .account-button { padding: 0; }
    .account-menu { margin-inline-start: 0; }
    .menu-disclosure { position: static; }
    .portal-menu { width: min(420px, 100%); top: calc(100% + 6px); }
    .android-menu, .profile-menu { width: min(300px, 100%); }
    .workspace { padding-block: 22px 40px; }
    .heading { margin-bottom: 14px; }
    .agenda-heading .primary { min-height: 37px; padding-inline: 9px; font-size: .81rem; }
    .pending-link { margin-top: 6px; font-size: .81rem; }
    .calendar-toolbar, .entry { align-items: flex-start; flex-direction: column; gap: 8px; }
    .calendar, .request, .ledger { padding: 12px; }
    .day { min-height: 57px; padding: 3px; }
    .day time { display: grid; min-width: 23px; width: fit-content; height: 23px; }
    .calendar-event { display: inline-block; width: 9px; height: 7px; margin: 2px 1px 0 0; padding: 0; background: currentColor; vertical-align: top; }
    .calendar-event.is-pending { background: transparent; }
    .calendar-event span, .day-more { display: none; }
    .login-layout { grid-template-columns: minmax(0, 1fr); width: min(510px, calc(100% - 24px)); gap: 16px; padding-block: 16px 25px; }
    .login-intro { min-height: 315px; }
    .login-copy h1 { font-size: clamp(4rem, 16vw, 6rem); }
}

@media (max-width: 365px) {
    .bar-inner { gap: 4px; }
    .wordmark { font-size: 1.55rem; }
    .wordmark .mark { width: 30px; height: 30px; }
    .icon-button, .account-button { width: 34px; }
    .calendar-event { width: 7px; }
}
