/* Act Two platform. Text in rem. Body 18px: the readers are 40 to 60, so the floor is higher than usual (15px).
   Motion: only transform and opacity, hover gated to real pointers. Reduced motion drops movement and keeps short fades. */
:root {
  --bg: #F6F2EA; --surface: #FFFFFF; --soft: #ECE6D9; --ink: #15201B; --ink2: #47514B; --line: #827C6C; --hair: #DDD6C8;
  --accent: #8A4B24; --btn: #15201B; --btn-ink: #F6F2EA; --good: #1F5B3C; --bad: #9A2F1B; --tag: rgba(21, 32, 27, .78); --tag-ink: #fff;
  --shadow: 0 0 0 1px rgba(21, 32, 27, .07), 0 1px 2px -1px rgba(21, 32, 27, .08), 0 2px 6px rgba(21, 32, 27, .05);
  --photo-line: rgba(21, 32, 27, .1);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 16px; --r-in: 10px;
  --tabs-h: 0px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #101813; --surface: #18231D; --soft: #22302A; --ink: #F1EADF; --ink2: #C3C9C1; --line: #7B877F; --hair: #2F3E37;
  --accent: #E5AD7E; --btn: #EDE3D2; --btn-ink: #14201A; --good: #8FD3AB; --bad: #F4A08F; --tag: rgba(0, 0, 0, .72); --tag-ink: #fff;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07);
  --photo-line: rgba(255, 255, 255, .1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.55 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--btn); color: var(--btn-ink); padding: 12px 16px; border-radius: var(--r-in); z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.sub { color: var(--ink2); }
.small { font-size: .9375rem; line-height: 1.45; color: var(--ink2); }
/* A sentence set small is still something to read. Short labels stay at 15px. */
p.small { font-size: 1.125rem; }
/* This font's tabular comma and point sit wide apart ("$14 . 99"), so numbers keep the normal figures. */
.num { font-variant-numeric: normal; }
.kick { font-size: .9375rem; font-weight: 700; color: var(--accent); }
.sec { padding-block: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head p { width: 100%; color: var(--ink2); }
.link { font-weight: 600; text-underline-offset: 3px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--hair); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: none; gap: 4px; margin-left: 20px; }
.nav a { padding: 10px 14px; border-radius: var(--r-in); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.nav a[aria-current="page"] { background: var(--soft); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-in); cursor: pointer; }
.icon { width: 24px; height: 24px; flex: none; }
@media (min-width: 900px) { .nav { display: flex; } }

/* Bottom tabs, phones only */
.tabs { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg); border-top: 1px solid var(--hair); padding-bottom: env(safe-area-inset-bottom, 0); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--ink2); }
.tabs a:focus-visible { outline-offset: -3px; } /* The bar touches the edge of the screen: a ring outside it would be cut off. */
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.tabs a[aria-current="page"] .icon { stroke-width: 2.4; }
body { padding-bottom: calc(61px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .tabs { display: none; } body { padding-bottom: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: transform 160ms var(--out), opacity 160ms var(--out); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.wide { width: 100%; }
/* Everything pressable answers the press. Large targets move a little less. */
.tick, .man, .seg button, .seg-a, .piece-own, .icon-btn, .tabs a, .top-link, .text-btn, .card, .hub a, .resume, .strip-a, .item-main { transition: transform 160ms var(--out); }
.btn:not(:disabled):active, .tile:active, .opt:not(:disabled):active, .chip:not(:disabled):active, .tick:active, .man:active, .seg button:active, .seg-a:active, .piece-own:active, .icon-btn:active, .tabs a:active, .top-link:active, .text-btn:active { transform: scale(.97); }
.card:active, .hub a:active, .resume:active, .strip-a:active, .item-main:active { transform: scale(.98); }
.btn:disabled { background: var(--soft); color: var(--ink2); border-color: var(--line); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { opacity: .88; }
  .nav a:hover, .icon-btn:hover { background: var(--soft); }
  .card:hover .photo img, .tile:hover img { transform: scale(1.02); }
  .opt:hover, .chip:hover, .piece-own:hover { border-color: var(--ink); }
}

/* Photos */
.photo { position: relative; overflow: hidden; background: var(--soft); border-radius: var(--r-in); outline: 1px solid var(--photo-line); outline-offset: -1px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms var(--out); }
.ar34 { aspect-ratio: 3 / 4; } .ar45 { aspect-ratio: 4 / 5; } .ar11 { aspect-ratio: 1; }

.band { background: var(--soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-decoration: none; min-width: 0; }
.card h3 { margin-top: 10px; font-size: 1.125rem; }
.card .meta { font-size: .9375rem; color: var(--ink2); line-height: 1.4; margin-top: 2px; }
.card .why { font-size: 1.125rem; line-height: 1.4; margin-top: 6px; color: var(--ink); }
.badge { display: inline-block; font-size: .9375rem; font-weight: 700; color: var(--good); margin-top: 4px; }

/* Filters */
.filters { display: grid; gap: 12px; margin-block: 16px 24px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px; margin: -6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); background: transparent; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform 160ms var(--out); }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chip[aria-pressed="true"]::before { content: "\2713"; font-weight: 800; }
.filter-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.field { display: grid; gap: 4px; }
.field label, .lbl { font-weight: 600; font-size: 1rem; }
select, input[type="text"], input[type="date"], input[type="email"], input[type="password"] { min-height: 52px; width: 100%; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-in); font-size: 1.0625rem; }
select { padding-inline: 10px 4px; font-size: 1rem; }
.err { color: var(--bad); font-size: 1rem; font-weight: 600; }

.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: transform 200ms var(--out); }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer; font-weight: 600; transition: transform 160ms var(--out), opacity 160ms var(--out); }
.opt small { display: block; font-weight: 400; font-size: 1.125rem; color: var(--ink2); line-height: 1.35; }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 15px; }
.opt[aria-pressed="true"]::after { content: "\2713"; margin-left: auto; font-weight: 800; }

.why-list li { position: relative; padding-left: 20px; }
.why-list li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--good); }
.no-list li::before { content: "\2715"; color: var(--bad); }
.rows > li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--hair); }
.rows > li:first-child { border-top: 0; }

/* Look */
.crumb { padding-block: 10px 0; }
.look { display: grid; gap: 20px; padding-block: 8px 40px; }
@media (min-width: 900px) {
  .look { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
  .look-media { position: sticky; top: 84px; }
}
.look-media .big { aspect-ratio: 4 / 5; }
.look h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.look .lead { margin-top: 8px; color: var(--ink2); }
.block { margin-top: 26px; }
.block > h2 { font-size: 1.375rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 4px 16px; }
.total strong { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.seg button { min-height: 46px; border: 0; background: transparent; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 1rem; padding: 4px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }
.piece-own { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; font-size: 1rem; }
.piece-own .box { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 5px; display: inline-grid; place-items: center; font-size: .8125rem; font-weight: 800; line-height: 1; }
.piece-own[aria-pressed="true"] { border-color: var(--good); color: var(--good); }
.piece-own[aria-pressed="true"] .box { border-color: var(--good); background: var(--good); color: var(--surface); }
.gate { background: var(--soft); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }

.article { width: min(760px, 100%); margin-inline: auto; padding: 16px 16px 48px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article .lead { margin-top: 8px; color: var(--ink2); font-size: 1.1875rem; }
.step { margin-top: 28px; }
.step h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.next-up { margin-top: 32px; display: grid; gap: 10px; }
@media (min-width: 640px) { .next-up { grid-template-columns: 1fr 1fr; } }


.note { padding: 14px 16px; background: var(--soft); border-radius: 12px; margin-top: 16px; }
.form { display: grid; gap: 14px; }

.empty { padding: 24px; background: var(--soft); border-radius: var(--r); display: grid; gap: 12px; justify-items: start; }
.empty-h { font-size: clamp(1.625rem, 3.6vw, 2.25rem); }

/* Account, clothes, list, course */
.h-page { font-size: clamp(2rem, 5vw, 3rem); }
.h-group { font-size: 1.375rem; margin-bottom: 10px; }
.text-btn { min-height: 44px; padding: 4px 8px; border: 0; background: none; font-weight: 600; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* A link inside a sentence: the padding widens what a finger can hit and moves no line of text. */
.inline { font-weight: 600; text-underline-offset: 3px; padding-block: .8rem; }
.top-link { font-weight: 600; font-size: 1rem; text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.foot-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.stack { display: grid; gap: 10px; margin-top: 18px; justify-items: start; }
a.pn { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.rows .here { font-weight: 700; }
.opt:disabled { cursor: default; }
.soon { display: grid; gap: 10px; }
@media (min-width: 720px) { .soon { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.soon-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; background: var(--soft); border-radius: var(--r); }
.soon-item .chip { flex: none; background: var(--surface); }
.soon-item .chip[aria-pressed="true"] { background: var(--btn); }
.soon-tag { font-size: .875rem; font-weight: 700; color: var(--accent); }
.soon-item h3 { margin-top: 2px; }
.soon-item .sub { font-size: 1.125rem; line-height: 1.4; }
.chip:disabled { cursor: default; }
.chip:disabled:not([aria-pressed="true"]) { background: var(--soft); color: var(--ink2); border-color: var(--line); }

/* Footer, toast */
.foot { border-top: 1px solid var(--hair); margin-top: 24px; padding-block: 24px; }
.foot p + p { margin-top: 6px; }
.foot button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 44px; font-size: 1rem; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); min-height: 52px; padding: 4px 10px 4px 18px; display: flex; align-items: center; gap: 8px; background: var(--btn); color: var(--btn-ink); border-radius: 12px; font-weight: 600; z-index: 40; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms var(--out), transform 200ms var(--out); }
.toast:not(.on) { visibility: hidden; transition: opacity 140ms var(--out), transform 140ms var(--out), visibility 0s linear 140ms; }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast > span { padding-block: 8px; min-width: 0; }
.toast > span:only-child { padding-right: 8px; }
.toast button { flex: none; background: none; border: 0; color: inherit; text-decoration: underline; font-weight: 700; min-height: 44px; min-width: 44px; padding-inline: 8px; cursor: pointer; }
.toast :focus-visible { outline-color: var(--btn-ink); outline-offset: -3px; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* Page entry: it happens on every route change, so it stays barely noticeable. */
@media (prefers-reduced-motion: no-preference) {
  .enter > * { animation: rise 200ms var(--out) backwards; }
  .enter > *:nth-child(2) { animation-delay: 40ms; }
  .enter > *:nth-child(3) { animation-delay: 80ms; }
  .enter > *:nth-child(n+4) { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn:active, .tile:active, .opt:active, .chip:active, .choice:active, .tick:active, .man:active, .seg button:active, .seg-a:active, .piece-own:active, .icon-btn:active, .tabs a:active, .top-link:active, .text-btn:active, .card:active, .hub a:active, .resume:active, .strip-a:active, .item-main:active { transform: none !important; }
  .photo img, .tile img { transform: none !important; }
  .bar i { transition: none; }
  .opt { transition: opacity 150ms linear; }
  .enter > * { animation: fade 150ms linear backwards; }
  @keyframes fade { from { opacity: 0; } }
  .toast { transition: opacity 150ms linear; }
  .toast:not(.on) { transform: none; transition: opacity 150ms linear, visibility 0s linear 150ms; }
}
@media print {
  .top, .tabs, .foot, .toast, .no-print { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}

/* App Store badge: Apple's artwork as supplied, 40px tall, clear space of a quarter of its height */
.app-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 0; flex: none; }
.app-badge img { display: block; height: 40px; width: auto; }
.foot-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
