/* Airloom. White, black and grey, one blue; the warmth comes from the photo
   and the light in the drawings. See docs/audience-and-voice.md. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --sun: #e9a93a;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --low: #bf4800;
  --high: #0071e3;
  --petal: #9cc4f2;
  --petal-light: #eef5fe;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --paper-2: #161617;
    --tile: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --sun: #e0a23a;
    --accent: #2997ff;
    --accent-ink: #ffffff;
    --low: #ff9f0a;
    --high: #2997ff;
    --petal: #1f5fa6;
    --petal-light: #0d2745;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.section { padding: clamp(72px, 11vw, 140px) 16px; }
@media (min-width: 720px) { .section { padding-left: 32px; padding-right: 32px; } }
.band { background: var(--paper-2); padding: clamp(72px, 11vw, 140px) 0; --tile: var(--paper); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--muted); max-width: 38em; }
.note { font-size: .9rem; color: var(--muted); max-width: 44em; }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: .8em; }
.icon { vertical-align: -4px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top__inner { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin: 0; }
.top nav { display: none; gap: 28px; margin-left: auto; font-size: .88rem; align-items: center; }
.top nav a { text-decoration: none; color: var(--ink); opacity: .8; }
.top nav a:hover { opacity: 1; }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top nav { display: flex; } .top .btn { margin-left: 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 980px; font: 500 1.02rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--outline { border-color: var(--accent); background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn--light { color: #fff; border-color: rgb(255 255 255 / .7); }
.btn--light:hover { background: rgb(255 255 255 / .15); }
.btn--small { padding: 8px 15px; font-size: .85rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.link { font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* hero: a rounded photo card with the page around it */
.hero-wrap { padding: 8px 8px 0; }
@media (min-width: 720px) { .hero-wrap { padding: 12px 12px 0; } }
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2118; border-radius: 28px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .5) 45%, rgb(0 0 0 / .08) 85%); }
@media (min-width: 900px) { .hero__shade { background: linear-gradient(to right, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .28) 48%, rgb(0 0 0 / 0) 72%), linear-gradient(to top, rgb(0 0 0 / .35), rgb(0 0 0 / 0) 50%); } }
.hero__text { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 120px 20px clamp(40px, 7vw, 88px); }
@media (min-width: 720px) { .hero__text { padding-left: 44px; padding-right: 44px; } }
.hero__text > * { max-width: 36rem; }
.hero h1 { max-width: 12em; text-shadow: 0 1px 24px rgb(0 0 0 / .25); }
.hero .lead { color: rgb(255 255 255 / .92); text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.accent { font-family: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.pill { display: inline-block; font-size: .82rem; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 22px; }
.search { display: flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 6px; margin-top: 30px; max-width: 34rem; box-shadow: 0 10px 40px rgb(0 0 0 / .25); }
.search__field { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 14px; color: #6e6e73; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: #1d1d1f; background: transparent; padding: 10px 0; }
.search .btn { flex: none; }
@media (max-width: 480px) { .search { flex-direction: column; align-items: stretch; border-radius: 22px; } .search__field { padding: 4px 10px; } .search .btn { justify-content: center; } }
.scorecard { display: none; position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(40px, 7vw, 88px); width: 250px; background: rgb(255 255 255 / .9); color: #1d1d1f; border-radius: 22px; padding: 20px 22px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
@media (min-width: 1000px) { .scorecard { display: block; } }
.scorecard p { margin: 0; }
.scorecard__top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; }
.scorecard__tag { font-weight: 500; color: #6e6e73; background: #f0f0f3; border-radius: 999px; padding: 1px 9px; font-size: .75rem; }
.scorecard__score { font-size: 3.4rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin: 4px 0 12px !important; color: #0071e3; }
.scorecard ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.scorecard li { display: grid; grid-template-columns: 1fr 70px 24px; gap: 8px; align-items: center; padding: 4px 0; }
.scorecard b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 3px; background: #e5e5ea; overflow: hidden; }
.bar span { display: block; height: 100%; background: #0071e3; border-radius: 3px; }
.hero__credit { position: absolute; right: 16px; bottom: 12px; font-size: .72rem; color: rgb(255 255 255 / .7); text-decoration: none; }
.hero__credit:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* problem: the listing, and the listing with Airloom */
.problem { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .problem { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.lead--ink { color: var(--ink); font-weight: 500; }
.listings { display: grid; gap: 14px; }
@media (min-width: 560px) { .listings { grid-template-columns: 1fr 1fr; } }
.listing { background: var(--tile); border-radius: var(--radius); padding: 22px; font-size: .9rem; }
.listing--airloom { background: var(--paper); border: 2px solid var(--accent); }
.listing__title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.listing__title .mark { width: 22px; height: 22px; }
.listing dl { margin: 0; }
.listing dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.listing dt { color: var(--muted); }
.listing dd { margin: 0; text-align: right; font-weight: 500; }
.listing .is-missing dd { color: var(--low); font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.listing .is-missing .icon { width: 14px; height: 14px; }
.listing--airloom dl > div:nth-child(n+4) dd { color: var(--accent); }
.listing__score { margin: 14px 0 0; font-weight: 600; font-size: 1.1rem; color: var(--accent); }

/* gallery */
.gallery-wrap { padding: 0 0 clamp(72px, 11vw, 140px); }
.gallery { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.3fr 1fr 1fr; } }
.photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; min-height: 420px; background: #2a2118; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: 18px; color: #fff; background: rgb(30 24 18 / .45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.photo figcaption strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.photo figcaption span { font-size: .88rem; color: rgb(255 255 255 / .85); }
.photo__credit { position: absolute; top: 12px; right: 14px; font-size: .68rem; color: rgb(255 255 255 / .75); text-decoration: none; }

/* calculator */
.calc { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.calc__form { display: grid; gap: 0 16px; margin-top: 28px; }
@media (min-width: 560px) { .calc__form { grid-template-columns: 1fr 1fr; } }
.field > span small { display: inline; color: var(--muted); font-weight: 400; margin: 0 0 0 4px; font-size: .85em; }
.calc__result { background: var(--paper); border-radius: 24px; padding: 32px; position: sticky; top: 80px; }
.calc__label { font-weight: 600; color: var(--muted); margin: 0; }
.calc__score { font-size: clamp(4rem, 10vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc__score small { font-size: 1.2rem; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 20px; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .3s ease; }
.calc__notes { list-style: none; padding: 0; margin: 0 0 24px; }
.calc__notes li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.calc__notes li.good { color: var(--accent); font-weight: 500; }
.calc .note { margin-top: 18px; }

/* nav menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; color: var(--ink); opacity: .8; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { width: 16px; height: 16px; }
.menu[open] summary, .menu summary:hover { opacity: 1; }
.menu__panel { position: absolute; top: calc(100% + 14px); left: -14px; width: 250px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 16px 40px rgb(0 0 0 / .12); }
.menu__panel a { display: block; padding: 10px 12px; border-radius: 10px; opacity: 1 !important; }
.menu__panel a:hover { background: var(--paper-2); }
.menu__panel strong { display: block; font-weight: 600; }
.menu__panel span { font-size: .82rem; color: var(--muted); }
.art { display: block; width: 100%; height: auto; }

/* comparison */
.table-scroll { overflow-x: auto; margin: 36px 0 16px; }
.compare { width: 100%; border-collapse: collapse; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare thead th { font-size: 1.1rem; font-weight: 600; }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare tfoot th { font-weight: 600; }
.compare tfoot th, .compare tfoot td { border-bottom: 0; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 10px 8px; font-size: .88rem; }
  .compare thead th { font-size: 1rem; }
  .compare th[scope="row"] { width: 44%; }
}
.score { display: inline-block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.score--low { color: var(--low); }
.score--high { color: var(--high); }
.score--big { font-size: clamp(3.6rem, 10vw, 6rem); }

/* measure */
.grid4, .grid3 { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.card { background: var(--tile); border-radius: var(--radius); padding: 28px 26px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin-bottom: .5em; }
.standard { margin-top: 36px; max-width: 44em; color: var(--muted); }
.grid3 h3 { margin-bottom: .4em; }
.grid3 p { color: var(--muted); }

/* split sections */
.split { display: grid; gap: 40px; align-items: center; }
.split figure { margin: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* potential */
.potential { display: grid; gap: 36px; margin: 48px 0 24px; align-items: center; }
@media (min-width: 900px) { .potential { grid-template-columns: auto 1fr; gap: 72px; } }
.potential__scores { display: flex; align-items: center; gap: 24px; }
.potential__scores .label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.potential__arrow { color: var(--muted); }
.moves { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.moves li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.move small { display: block; color: var(--muted); font-size: .88rem; }
.gain { font-size: 1.35rem; font-weight: 600; color: var(--high); font-variant-numeric: tabular-nums; }

/* checks */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 8px 0; }
.checks .icon { color: var(--accent); margin-top: 3px; }

/* prices: FlatWatch's pattern: crossed-out price, €0, a badge on the edge */
.tiers { display: grid; gap: 28px 20px; margin-top: 56px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px 32px; display: flex; flex-direction: column; }
.tier--featured { border: 2px solid var(--accent); }
.tier__badge { position: absolute; top: -17px; right: 24px; background: #fbbf24; color: #1d1d1f; font-weight: 700; font-size: .88rem; padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgb(0 0 0 / .08); }
.tier__kind { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.tier h3 { font-size: 1.4rem; margin-bottom: 10px; }
.tier__price { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 22px; }
.tier__price s { font-size: 2rem; font-weight: 600; color: var(--muted); text-decoration-color: #d70015; text-decoration-thickness: 3px; margin-right: 8px; }
.tier__body { font-size: 1.08rem; line-height: 1.6; }
.tier__anchor { margin-top: auto; padding-top: 20px; border-top: 1.5px dashed var(--line); color: var(--muted); font-size: .95rem; }
.tier .btn { align-self: flex-start; margin-top: 8px; }

/* form */
.formbox { position: relative; max-width: 640px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (min-width: 720px) { .formbox { padding: 40px; } }
.formbox h2 { font-size: 1.9rem; padding-right: 44px; }
.formbox__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input[type="file"] { padding: 10px; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent { font-size: .85rem; color: var(--muted); }
.status { font-weight: 600; min-height: 1.6em; }
.status.is-error { color: var(--low); }
.hp { position: absolute; left: -9999px; }

dialog.modal { border: 0; padding: 0; background: transparent; width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); }
dialog.modal::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); }
dialog.modal .formbox { max-width: none; border: 0; }
html.modal-open { overflow: hidden; }

/* footer */
.footer { background: var(--paper-2); padding: 44px 0 60px; color: var(--muted); font-size: .88rem; }
.footer .brand { margin-bottom: 14px; }
.footer a { color: var(--ink); }
