/* The pages built ahead of time: comparisons, guides, questions, interview types, product pages, About and 404.
   The home page's paper and its voices: DeMAP speaks in Bricolage Grotesque, the interviewer's questions are set in
   Newsreader, the small print in IBM Plex Mono, and the pen writes in Reenie Beanie. Night is the home page's black room,
   where light appears only as real objects: the form and the example answers stay paper. */
:root { color-scheme: light;
  --base: #FBFAF6; --on-base: #101012; --ink-2: #55555C; --hair: rgba(16, 16, 18, .17); --rule-hard: #101012;
  --accent: #1B3FC4; --wash: #F1F3FB; --btn: #101012; --on-btn: #FFFFFF; --btn-hover: #1B3FC4;
  --ink: #101012; --pen: #1B3FC4; --green: #34D86C; --mist: #B6B6BE;
  --voice: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hand: 'Reenie Beanie', 'Bradley Hand', cursive;
  --m: max(20px, 6vw);
  --m-l: max(var(--m), env(safe-area-inset-left, 0px));
  --m-r: max(var(--m), env(safe-area-inset-right, 0px));
  --gap: clamp(30px, 5vw, 84px); }
:root[data-theme="dark"] { color-scheme: dark;
  --base: #000000; --on-base: #FFFFFF; --ink-2: #B6B6BE; --hair: rgba(255, 255, 255, .17); --rule-hard: #FFFFFF;
  --accent: #34D86C; --wash: rgba(255, 255, 255, .07); --btn: #FFFFFF; --on-btn: #000000; --btn-hover: #34D86C; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 82px; background: var(--base); }
body { margin: 0; background: var(--base); color: var(--on-base); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--voice); font-weight: 700; text-wrap: balance; }
.wrap { padding-left: var(--m-l); padding-right: var(--m-r); }

.btn { display: inline-block; padding: 13px 20px; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.btn:hover { background: var(--btn-hover); }
.lnk { text-decoration: none; border-bottom: 1px solid currentColor; }
.lnk:hover { color: var(--accent); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }

/* Day and Night, in the header's own type */
.tt { display: inline-flex; border: 1.5px solid currentColor; }
.tt button { border: 0; background: none; color: inherit; font: 500 13px/1 var(--body); padding: 6px 9px; cursor: pointer; }
.tt button[aria-pressed="true"] { background: var(--on-base); color: var(--base); }

/* The top: what the page says, and the page itself as a form on the desk */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(40px, 7vh, 84px); padding-bottom: clamp(30px, 5vh, 56px); }
.hero.solo { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(70px, 12vh, 140px); }
.crumbs { margin: 0 0 22px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.hero h1 { max-width: 14em; font-size: clamp(36px, 4.6vw, 78px); line-height: 1.04; letter-spacing: -.028em; }
.hero h1.asked { max-width: 12em; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 108px); line-height: 1; letter-spacing: -.03em; }
.lead { max-width: 34em; margin: 20px 0 0; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }

.form { margin-top: 6px; color: var(--ink); background: #FFFFFF; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(16, 16, 18, .06); transform: rotate(.5deg); }
.f-head { display: grid; grid-template-columns: 1fr 1fr; }
.f-head div { min-width: 0; padding: 8px 12px 6px; border-bottom: 1px solid rgba(16, 16, 18, .17); }
.f-head div:nth-child(odd) { border-right: 1px solid rgba(16, 16, 18, .17); }
.f-head div:nth-last-child(-n+2) { border-bottom: 0; }
.f-head small { display: block; font-family: var(--mono); font-size: 11.5px; color: #55555C; }
.f-head strong { display: block; font-family: var(--hand); font-weight: 400; font-size: 31px; line-height: 1.02; color: var(--pen); }
.f-list { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.f-list a { display: grid; grid-template-columns: 30px 1fr 22px; gap: 4px; align-items: center; padding: 7px 12px; border-bottom: 1px solid rgba(16, 16, 18, .17); font-size: 16.5px; line-height: 1.28; text-decoration: none; }
.f-list li:last-child a { border-bottom: 0; }
.f-list a:hover { background: #F1F3FB; }
.f-list em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #55555C; }
.tick { position: relative; width: 17px; height: 17px; border: 1.3px solid var(--ink); }
.tick svg { position: absolute; left: -3px; top: -9px; width: 28px; height: 28px; opacity: 0; transition: opacity .25s; }
.seen .tick svg { opacity: 1; }

/* Sections: the heading on the left, the text in a reading column, and pictures, tables and lists across the page */
.sec, .pre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); column-gap: var(--gap); align-items: start; }
.sec { margin-top: clamp(46px, 7vh, 84px); padding-top: 18px; border-top: 1.5px solid var(--rule-hard); }
.sec > h2 { grid-column: 1; padding-bottom: 18px; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.sec > .col, .pre > .col { grid-column: 2; min-width: 0; }
.sec > .shot, .sec > .tw, .sec > .rows { grid-column: 1 / -1; }
.pre { margin-top: 6px; }
.pre > .col { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.45; color: var(--ink-2); }

.col > * { max-width: 40em; }
.col p, .col ul, .col ol { margin: 0 0 16px; }
.col > :last-child { margin-bottom: 0; }
.col h3 { margin: 30px 0 6px; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.2; letter-spacing: -.012em; }
.col > h3:first-child { margin-top: 4px; }
.col a, .pre a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.col a:hover, .pre a:hover { color: var(--on-base); }
.col strong { font-weight: 650; }
.col ul { padding: 0; list-style: none; }
.col ul > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.col ul > li::before { content: "–"; position: absolute; left: 0; color: var(--ink-2); }
.col ol { padding: 0; list-style: none; counter-reset: step; }
.col ol > li { position: relative; padding-left: 34px; margin-bottom: 10px; counter-increment: step; }
.col ol > li::before { content: counter(step); position: absolute; left: 0; top: .28em; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* An example answer: a sheet of paper in the candidate's voice, marked as an example in pen */
.col blockquote { position: relative; margin: 24px 0 18px; padding: 36px 22px 20px; color: var(--ink); background: #FFFFFF; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(16, 16, 18, .06); transform: rotate(-.3deg); font-family: var(--voice); font-weight: 500; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; letter-spacing: -.008em; }
.col blockquote::before { content: "an example"; position: absolute; right: 16px; top: 6px; font-family: var(--hand); font-weight: 400; font-size: 28px; line-height: 1; color: var(--pen); transform: rotate(-3deg); }
.col blockquote p { margin: 0 0 12px; }
.col blockquote strong { font-weight: 700; }

/* Tables: the pricing sheet's ruling */
.tw { max-width: 1500px; margin: 8px 0 30px; overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16.5px; line-height: 1.42; font-variant-numeric: tabular-nums; }
th { padding: 10px 18px 12px 0; text-align: left; vertical-align: bottom; font-family: var(--voice); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; border-top: 1.5px solid var(--rule-hard); border-bottom: 1.5px solid var(--rule-hard); }
td { padding: 11px 18px 11px 0; vertical-align: top; border-bottom: 1px solid var(--hair); }
td:first-child { font-weight: 600; }
td a { color: var(--accent); text-underline-offset: 3px; }

/* A real app window on a colour plate, at or below the size it was captured */
.shot { margin: 8px 0 32px; }
.plate { display: flex; justify-content: center; align-items: center; padding: clamp(20px, 5vw, 84px) clamp(14px, 5vw, 84px); background: #1C2233 center / cover no-repeat; }
.plate.amber { background-image: url(/story/wall/amber.webp); }
.plate.teal { background-image: url(/story/wall/teal.webp); }
.plate.rose { background-image: url(/story/wall/rose.webp); }
.plate.dusk { background-image: url(/story/wall/dusk.webp); }
.plate img { display: block; width: min(100%, var(--iw), calc(min(78vh, 1000px) * var(--ar))); height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 30px 80px rgba(0, 0, 0, .45); }
.shot figcaption { margin-top: 10px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* A list of pages: the home page's two-sided rows, each one a link */
.rows { margin: 6px 0 12px; padding: 0; list-style: none; border-top: 2px solid var(--rule-hard); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 22px; gap: 6px var(--gap); align-items: baseline; padding: 17px 0 19px; border-bottom: 1px solid var(--hair); text-decoration: none; transition: background-color .15s, padding .15s; }
.rows a::after { content: "→"; justify-self: end; color: var(--ink-2); }
.rows strong { font-family: var(--voice); font-weight: 700; font-size: clamp(21px, 2vw, 31px); line-height: 1.12; letter-spacing: -.016em; }
.rows .qv strong { font-family: var(--serif); font-weight: 300; font-size: clamp(23px, 2.3vw, 35px); letter-spacing: -.012em; }
.rows span { font-size: 17.5px; line-height: 1.4; color: var(--ink-2); }
.rows a:hover { padding-inline: 12px; background: var(--wash); }
.rows a:hover strong, .rows a:hover::after { color: var(--accent); }

/* Common questions: each one asked in the interviewer's serif */
.faq h3 { margin: 0; padding-top: 14px; border-top: 1px solid var(--hair); font-family: var(--serif); font-weight: 300; font-size: clamp(23px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -.014em; }
.faq .col > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.faq h3 + p { margin: 8px 0 24px; color: var(--ink-2); }


/* The ending: the home page's "Your turn.", with the visitor's own day and time */
.bookend { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 18px; margin-top: clamp(70px, 11vh, 130px); padding: clamp(80px, 13vh, 150px) var(--m-r) clamp(70px, 11vh, 130px) var(--m-l); overflow: hidden; text-align: center; color: #FFFFFF; background: #05070E; }
.bookend::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/story/wall/dusk.webp) center / cover no-repeat; opacity: .38; }
.bookend h2 { font-size: clamp(54px, 8vw, 150px); line-height: 1.02; letter-spacing: -.035em; }
.bookend p { max-width: 32em; margin: 0; font-size: clamp(18px, 1.4vw, 22px); color: rgba(255, 255, 255, .86); }
.bookend .now { font-family: var(--mono); font-size: clamp(16px, 1.25vw, 23px); color: var(--green); font-variant-numeric: tabular-nums; }
.bookend .acts { justify-content: center; margin-top: 10px; }
.bookend .btn { background: #FFFFFF; color: #000000; }
.bookend .btn:hover { background: var(--green); }
.bookend .lnk:hover { color: var(--green); }

/* The home page's footer */
.foot { padding: 34px 0 26px; font-size: 14.5px; line-height: 1.5; color: var(--mist); background: #000000; }
:root[data-theme="dark"] .foot { border-top: 1px solid rgba(255, 255, 255, .17); }
.foot .fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 20px; }
.foot .brand { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; font-family: var(--voice); font-weight: 800; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
.foot .brand img { width: 26px; height: 26px; }
.fg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .17); }
.fg strong { display: block; margin-bottom: 6px; font-weight: 600; color: #FFFFFF; }
.fg ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.fg a { text-decoration: none; }
.fg a:hover { color: #FFFFFF; }
.fb { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .17); font-size: 13.5px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .form { max-width: 640px; transform: none; }
}
@media (max-width: 860px) {
  .sec, .pre { grid-template-columns: minmax(0, 1fr); }
  .sec > h2, .sec > .col, .pre > .col { grid-column: 1; }
  .rows a { grid-template-columns: minmax(0, 1fr) 20px; }
  .rows strong, .rows span { grid-column: 1; }
  .rows a::after { grid-column: 2; grid-row: 1; }
  .fg { grid-template-columns: 1fr 1fr; }
}
/* A phone shows a table's rows one under another, each value under its column's name */
@media (max-width: 640px) {
  .tw { overflow: visible; }
  .tw table, .tw tbody, .tw tr, .tw td { display: block; }
  .tw table { min-width: 0; }
  .tw thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tw tbody { border-top: 1.5px solid var(--rule-hard); }
  .tw tr { padding: 12px 0 14px; border-bottom: 1px solid var(--hair); }
  .tw td { padding: 0; border: 0; }
  .tw td:first-child { margin-bottom: 4px; font-family: var(--voice); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
  .tw td + td { margin-top: 8px; }
  .tw td + td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .acts .btn { width: 100%; text-align: center; }
  .f-head strong { font-size: 27px; }
  .tt button { padding: 6px 7px; }
}

/* The owner's 2560 by 1440 screen and others like it: read at a distance, as the home page is */
@media (min-width: 2000px) {
  body { font-size: 20px; }
  .crumbs, .shot figcaption { font-size: 15px; }
  .btn { font-size: 19px; padding: 15px 24px; }
  .f-head small { font-size: 13.5px; }
  .f-head strong { font-size: 36px; }
  .f-list a { font-size: 19px; padding-block: 9px; }
  .f-list em { font-size: 14px; }
  table { font-size: 19px; }
  th { font-size: 21px; }
  .rows span { font-size: 20px; }
  .foot { font-size: 17px; }
  .fb { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .rows a, .tick svg { transition: none; }
}
