/* The app's light palette (ios/VirtualMe/Views/Portrait.swift): warm cream, card, ink, orange. Light only
   (ADR 0015). Every text and background pair is WCAG AA (test/site.test.ts checks the pairs used here). */
:root {
  --cream: #fdf3e3;
  --cream-deep: #f8e7cc;
  --card: #fffcf6;
  --ink: #2b1c0e;
  --ink-soft: #5a4a3a;
  --orange: #ff9a28;
  --orange-edge: #c8620a;
  --orange-text: #a14c00;
  --line: #e3d3bb;
  --rounded: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font: 1.0625rem/1.55 var(--rounded); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0.75rem 0 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

a { color: var(--orange-text); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--orange-edge); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 1rem; z-index: 20; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 68rem; margin: 0 auto; padding: 1.1rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top ul { display: flex; gap: 1.5rem; list-style: none; }
.top nav a { display: inline-block; padding: 0.6rem 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

main { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
main > section { margin-top: 5.5rem; }

.foot { margin-top: 6rem; padding: 2.5rem 1.5rem 3rem; background: var(--cream-deep); text-align: center; color: var(--ink-soft); }
.foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.75rem; list-style: none; }
.foot a { display: inline-block; padding: 0.5rem 0; color: var(--ink); font-weight: 600; }
.fine { font-size: 0.9rem; color: var(--ink-soft); }
.center { text-align: center; }

/* Shared pieces */
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
.intro { max-width: 38rem; font-size: 1.15rem; color: var(--ink-soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: 0 4px 10px rgb(43 28 14 / 0.06); }
.glyph { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; flex: none; border-radius: 16px; background: var(--cream-deep); color: var(--orange-edge); }
.glyph svg { width: 1.8rem; height: 1.8rem; }
.more { font-weight: 700; }
.more::after { content: ' →'; }

/* A print: the app's Polaroid frame around a look. */
.print { display: block; background: #fff; padding: 6% 6% 20%; border-radius: 6px; box-shadow: 0 1px 2px rgb(43 28 14 / 0.2), 0 10px 24px rgb(43 28 14 / 0.16); }
.print img { width: 100%; border-radius: 3px; }

/* Hero */
main > .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 2.5rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 span + span { color: var(--orange-text); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 32rem; margin-top: 1.25rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; padding: 0.6rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 0.98rem; }
.dot { width: 0.7rem; height: 0.7rem; flex: none; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 154 40 / 0.25); }

.fan { position: relative; width: 100%; max-width: 30rem; aspect-ratio: 10 / 7.2; margin: 0 auto; }
.fan .print { position: absolute; top: 12%; width: 31%; padding-bottom: 16%; transform-origin: 50% 120%; }
.fan .print:nth-child(1) { left: 8%; transform: rotate(-18deg); }
.fan .print:nth-child(2) { left: 17%; transform: rotate(-12deg); }
.fan .print:nth-child(3) { left: 26%; transform: rotate(-6deg); }
.fan .print:nth-child(4) { left: 35%; transform: rotate(0deg); }
.fan .print:nth-child(5) { left: 44%; transform: rotate(6deg); }
.fan .print:nth-child(6) { left: 53%; transform: rotate(12deg); }
.fan .print:nth-child(7) { left: 62%; transform: rotate(18deg); }

/* The seven looks */
.band { text-align: center; }
.band .intro { margin-left: auto; margin-right: auto; }
.looks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 2.25rem 0 1.25rem; }
.look { display: flex; flex-direction: column; gap: 0.2rem; }
.look .print { margin-bottom: 0.7rem; }
.look strong { font-size: 1.05rem; }
.quip { font-size: 0.92rem; line-height: 1.35; color: var(--ink-soft); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin-top: 2rem; }
.step h3 { margin-top: 1rem; }
.step p { color: var(--ink-soft); margin-top: 0.4rem; }

/* Widgets */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split p { font-size: 1.15rem; color: var(--ink-soft); max-width: 30rem; }
.split p.fine { font-size: 0.95rem; }
.widgets { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: center; padding: 2.25rem 1.5rem; border-radius: 32px; background: linear-gradient(160deg, #ffd9a0, #ffb98a); }
.widget { background: var(--card); border-radius: 26px; box-shadow: 0 8px 20px rgb(43 28 14 / 0.18); }
.widget.small { width: 9.25rem; height: 9.25rem; padding: 0.9rem; }
.ring { display: block; width: 100%; height: 100%; padding: 7px; border-radius: 50%; background: conic-gradient(var(--orange) 0 64%, #f1e3cd 64% 100%); }
.ring img, .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 3px solid var(--card); }
.widget.medium { display: flex; align-items: center; gap: 0.9rem; width: 19.5rem; max-width: 100%; height: 9.25rem; padding: 0.9rem 1.1rem; }
.face { width: 5.75rem; height: 5.75rem; flex: none; }
.w-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1; font-size: 0.95rem; line-height: 1.3; }
.w-text strong { font-size: 1.15rem; }
.bar { display: block; height: 0.6rem; margin-top: 0.35rem; border-radius: 999px; background: #f1e3cd; overflow: hidden; }
.bar span { display: block; width: 64%; height: 100%; border-radius: 999px; background: var(--orange); }
.w-steps { font-size: 0.82rem; color: var(--ink-soft); }

/* Kind, always */
main > .kind { padding: 3rem; border-radius: 32px; background: var(--cream-deep); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin-top: 1.75rem; }
.points li { padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--card); border-left: 6px solid var(--orange); }

/* Private by design */
.private { display: flex; gap: 1.25rem; align-items: flex-start; padding: 2rem; }
.private h2 { font-size: 1.6rem; }
.private p { max-width: 44rem; }

/* Support, policies, not found */
.narrow { max-width: 42rem; margin: 2.5rem auto 0; }
.narrow h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.narrow h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.contact { margin-top: 1.5rem; font-size: 1.15rem; }
.contact a { font-weight: 700; overflow-wrap: anywhere; }
.help { display: grid; gap: 0.9rem; margin: 1rem 0 2rem; }
.qa { padding: 1.15rem 1.35rem; }
.qa dt { font-weight: 700; }
.qa dd { margin-top: 0.3rem; color: var(--ink-soft); }

.legal h1 + p { color: var(--ink-soft); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.5rem 0; }
.legal a { overflow-wrap: anywhere; }

.lost { text-align: center; }
.lost .print { width: 11rem; margin: 1rem auto 2rem; transform: rotate(-4deg); }
.lost .lead { margin-left: auto; margin-right: auto; }
/* Dark ink on orange (ADR 0015), with the app's press-down edge. */
.button { display: inline-block; margin-top: 1rem; padding: 0.8rem 1.6rem; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--orange-edge); }
.button:hover { color: var(--ink); background: #ffa43a; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-edge); }

@media (max-width: 60rem) {
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}

@media (max-width: 46rem) {
  main > section { margin-top: 4rem; }
  main > .hero { grid-template-columns: minmax(0, 1fr); margin-top: 1rem; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .fan { max-width: 19rem; }
  .looks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
  .look:first-child { grid-column: 1 / -1; width: 46%; margin: 0 auto; }
  .look strong { font-size: 0.98rem; }
  .quip { font-size: 0.85rem; }
  .steps, .split, .points { grid-template-columns: minmax(0, 1fr); }
  main > .kind { padding: 2rem 1.25rem; border-radius: 26px; }
  .private { flex-direction: column; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
