/* Tonee site: the app's design system on the web (tokens, type, buttons,
   header, footer, cookie notice, reveals). Shared by every page. */

@font-face {
    font-family: "Newsreader";
    src: url("fonts/newsreader-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("fonts/newsreader-italic-430.woff2") format("woff2");
    font-weight: 300 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("fonts/hanken-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("fonts/hanken-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("fonts/hanken-600.woff2") format("woff2");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --paper: #FFFFFF;
    --card: #FFFFFF;
    --ink: #1F1B18;
    --muted: #6A615A;
    --hair: #E9E1D8;
    --line: #978E86;
    --wash: #F2EFEC;
    --studio: #F1F1F1;
    --brand: #FDA081;
    --on-brand: #1F1B18;
    --peach: #F9DDD1;
    --error: #A3123A;
    --scrim: rgba(31, 27, 24, .32);
    --float: 0 8px 28px rgba(60, 40, 30, .10);
    --garment-shadow: drop-shadow(0 calc(14px * var(--gs, 1)) calc(19.5px * var(--gs, 1)) rgba(0, 0, 0, .10)) drop-shadow(0 calc(2px * var(--gs, 1)) calc(4.5px * var(--gs, 1)) rgba(0, 0, 0, .07));

    --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --ease-out: cubic-bezier(.33, 1, .68, 1);
    --ease-in: cubic-bezier(.32, 0, .67, 0);
    --ease-garment: cubic-bezier(.34, 1.56, .64, 1);
    --fast: 150ms;
    --mid: 250ms;
    --slow: 400ms;
    --stagger: 80ms;

    --r-look: 24px;
    --r-card: 20px;
    --r-tile: 16px;
    --r-field: 14px;
    --r-sheet: 28px;

    --max: 1180px;
    --gutter: 20px;
    --header-h: 64px;
}
@media (min-width: 720px) {
    :root { --gutter: 32px; --header-h: 72px; }
}
@media (min-width: 1100px) {
    :root { --gutter: 40px; }
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #151311;
        --card: #1E1B19;
        --ink: #F2EDE8;
        --muted: #ABA299;
        --hair: #332F2B;
        --line: #7A726B;
        --wash: #2B2724;
        --studio: #E4E1DD;
        --peach: #3B2A22;
        --error: #FF7F98;
        --scrim: rgba(0, 0, 0, .5);
        --float: 0 8px 28px rgba(0, 0, 0, .45);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 1.5px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--peach); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--mid) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.num { font-variant-numeric: tabular-nums lining-nums; }

/* The flat-lay of a look: each piece contained in its slot, top-aligned (the app's rectangles). */
.slot-behind { left: 30%; top: 6%; width: 26%; height: 34%; }
.slot-top { left: 8.4%; top: 12.8%; width: 41.9%; height: 53.3%; }
.slot-bottom { left: 52%; top: 13.9%; width: 46%; height: 60.6%; }
.slot-shoes { left: 11.2%; top: 66.1%; width: 36.3%; height: 29.9%; }
.slot-dress { left: 8.4%; top: 6%; width: 41.9%; height: 72%; }
.slot-dlayer { left: 55%; top: 8%; width: 40%; height: 47%; }
.slot-dshoes { left: 56%; top: 70%; width: 36%; height: 22%; }

/* ---------- Type ---------- */

.display {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(46px, 6.4vw, 92px);
    line-height: 1.0;
    letter-spacing: -0.022em;
    text-wrap: balance;
}
.display em, .h2 em {
    font-style: italic;
    font-weight: 430;
    letter-spacing: -0.012em;
}

.h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.016em;
    text-wrap: balance;
}

.h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.note {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 430;
    font-size: 22px;
    line-height: 1.27;
    letter-spacing: -0.1px;
}

.eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.lede {
    font-size: clamp(18px, 1.45vw, 20px);
    line-height: 1.5;
    color: var(--muted);
    text-wrap: pretty;
}

.meta { font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- Buttons ---------- */

/* Lowercase letters sit 0.102 em below the middle of a Hanken line: the
   bottom padding lifts the label onto them, as the app's 6.15 fix does. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px .204em;
    border: 0;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--fast) var(--ease-out), background-color var(--mid) var(--ease-out), box-shadow var(--mid) var(--ease-out), color var(--mid) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 90%, #1F1B18); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { height: 40px; padding: 0 16px .204em; font-size: 15px; }

.store-badge { display: inline-block; border-radius: 10px; line-height: 0; }
.store-badge img { height: 52px; width: auto; }
.store-badge--small img { height: 44px; }

.link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--paper);
    transition: box-shadow var(--mid) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--hair); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: calc(var(--max) + 2 * var(--gutter));
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-header__logo {
    display: block;
    flex: none;
    color: var(--ink);
    line-height: 0;
    border-radius: 4px;
}
.site-header__logo svg { width: auto; height: 27px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.site-nav__link {
    position: relative;
    padding: 8px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--mid) var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-header__cta { flex: none; }

.site-header__hamburger {
    display: none;
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.site-header__hamburger span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform var(--mid) var(--ease-out), opacity var(--fast) linear;
}
.site-header__hamburger span:nth-child(1) { top: 16px; }
.site-header__hamburger span:nth-child(2) { top: 21.25px; }
.site-header__hamburger span:nth-child(3) { top: 26.5px; }
.site-header__hamburger.is-open span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.site-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.site-header__hamburger.is-open span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.site-nav--mobile {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px var(--gutter) 40px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--mid) var(--ease-out), transform var(--mid) var(--ease-out), visibility 0s linear var(--mid);
}
.site-nav--mobile.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--mid) var(--ease-out), transform var(--mid) var(--ease-out), visibility 0s;
}
.site-nav--mobile .site-nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--hair);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.2px;
}
.site-nav--mobile .site-nav__link::after { display: none; }
.site-nav--mobile .store-badge { margin-top: 24px; align-self: flex-start; }

@media (max-width: 1023px) {
    .site-nav { display: none; }
    .site-header__cta { margin-left: auto; }
    .site-header__hamburger { display: block; }
}
@media (max-width: 400px) {
    .site-header__cta { display: none; }
    .site-header__hamburger { margin-left: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--hair);
    color: var(--ink);
}
.site-footer__inner {
    display: grid;
    gap: 28px;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 48px var(--gutter) 56px;
}
.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-footer__brand { display: block; color: var(--ink); line-height: 0; }
.site-footer__brand svg { width: auto; height: 30px; }
.site-footer__tagline { margin-top: 10px; color: var(--muted); }
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    font-size: 15px;
}
.site-footer__link { color: var(--ink); text-decoration: none; }
.site-footer__link:hover { text-decoration: underline; }
.site-footer__copy { color: var(--muted); }
.site-footer__fine { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Cookie notice ---------- */

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    max-width: 560px;
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--card);
    box-shadow: var(--float), 0 0 0 1px var(--hair);
    transform: translateY(calc(100% + 24px));
    transition: transform var(--slow) var(--ease-out);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner p { flex: 1 1 260px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.cookie-banner__actions { display: flex; gap: 10px; }
@media (min-width: 720px) {
    .cookie-banner { left: 24px; right: auto; bottom: 24px; }
}

/* ---------- Questions (the landing and the support page) ---------- */

.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
    position: relative;
    display: block;
    padding: 22px 52px 22px 0;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.15px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* The plus that turns into a cross; the privacy sections open with it too. */
.faq-item summary::after, details.section > summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background:
        linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
    transition: transform var(--slow) var(--ease-out);
}
.faq-item[open] summary::after, details.section[open] > summary::after { transform: rotate(45deg); }
.faq-item__body { overflow: hidden; }
.faq-item__body p { padding: 0 0 26px; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
@media (min-width: 720px) { .faq-item__body p { padding-right: 52px; } }
.faq-item__body a { color: var(--ink); font-weight: 600; }

/* ---------- Reveals ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html { scroll-behavior: auto !important; }
    .js .reveal { transform: none; transition: opacity var(--mid) linear; }
    .site-nav--mobile, .site-nav--mobile.is-open { transform: none; }
    .btn, .btn:active { transition: none; transform: none; }
    .faq-item summary::after, details.section > summary::after { transition: none; }
}
