/* zhao.lucidlakelabs.com, v2 "daylight" (owner, 2026-11-05).
   One quiet paper ground for every page; the photos carry the colour. Ink is the slate of the photos' shadows,
   the one accent is the cobalt of the sail. Serif for what a person says, sans for labels. No bands, no pills, no card boxes. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #FAFAF7;
  --ink: #13212C;
  --ink-2: #4D5B66;
  --ink-3: #6B7882;
  --rule: #DCE2E5;
  --accent: #1F4E8C;        /* the sail */
  --wash: #EAF2F5;          /* the sky, for the one highlighted box in the diagram */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plex Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F161C; --ink: #E7ECEE; --ink-2: #AEB9C0; --ink-3: #8B979F; --rule: #26323B; --accent: #8DB4E2; --wash: #16222C; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.55 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sans, figcaption, .meta, .kicker { font-family: var(--sans); }

/* Top bar: paper, a hairline, every page listed (also on a phone). */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.bar .name { font-size: 21px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: clamp(14px, 2.6vw, 30px); font: 400 15px/1 var(--sans); }
.bar nav a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
@media (max-width: 560px) { .bar .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; } .bar nav { gap: 20px; font-size: 14.5px; } }

/* Home: the opening. The sailing photo lies under the words like a watermark: washed out to paper behind the text,
   clearer on the right where the sailor is, fading into the page at the bottom. Text always sits on near-solid paper. */
.intro { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 9vw, 120px); min-height: min(78vh, 760px); display: flex; align-items: center; }
/* The whole frame on the right, about three quarters of the width, its edges feathered into the paper on every side
   and held at 70 % like a watermark: the sail and the boat read, the sailor stays life-size, the words sit on paper. */
.intro .bg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: max(74%, 760px); aspect-ratio: 2000 / 1155;
  background: url("img/hero-bg.jpg") center / cover no-repeat; opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%), linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%), linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.intro .wrap { position: relative; width: 100%; }
.intro .words { max-width: 600px; }
.dateline { font: 400 15px/1.4 var(--sans); color: var(--ink-3); margin-bottom: 26px; }
.intro h1 { font-size: clamp(40px, 5.8vw, 74px); font-weight: 380; line-height: 1.03; letter-spacing: -.022em; max-width: 15ch; text-wrap: balance; }
.intro .sub { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink-2); max-width: 36ch; margin: 28px 0 22px; }
.links { font: 400 16px/1.9 var(--sans); color: var(--ink-3); margin: 0; }
.links a { font-weight: 500; }
.links .nw { white-space: nowrap; }
.links .sep { margin: 0 .2em; color: var(--rule); }
/* Phone: the photo sits above the words and melts into the page under them. */
@media (max-width: 760px) {
  .intro { display: block; min-height: 0; padding-top: 300px; }
  .intro .bg { top: 0; transform: none; width: 100%; aspect-ratio: auto; height: 340px; background-position: 74% 62%; opacity: .8;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .intro .bg::after { background: linear-gradient(0deg, var(--paper) 8%, color-mix(in srgb, var(--paper) 55%, transparent) 42%, color-mix(in srgb, var(--paper) 18%, transparent) 100%); }
}

/* Section heads: a hairline and a plain word, no spaced capitals. */
section { padding: clamp(44px, 6vw, 80px) 0; }
.sec { font-size: clamp(28px, 3vw, 36px); padding-top: 18px; border-top: 1px solid var(--ink); margin-bottom: clamp(26px, 3.5vw, 44px); }
.run { font: 500 15px/1.4 var(--sans); color: var(--ink); margin-bottom: 12px; }
.run .meta { font-weight: 400; color: var(--ink-3); margin-left: .4em; }

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.now { padding-top: 0; padding-bottom: clamp(24px, 3vw, 40px); }
.now .cols { border-top: 1px solid var(--rule); padding-top: 28px; }
.lead { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.36; margin: 0; letter-spacing: -.008em; }
.now .before p { color: var(--ink-2); font-size: 18px; }
.now .before a { font: 500 16px var(--sans); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* Work: one feature, then a pair of different widths. Pictures square-cornered, words under them, no boxes. */
.kicker { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.work h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.work p { color: var(--ink-2); }
.more { font: 500 16px var(--sans); }
.feature + .feature { padding-top: clamp(36px, 5vw, 60px); }
.feature .media { margin-bottom: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(22px, 3.5vw, 48px); align-items: end; padding-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--rule); }
.play { position: relative; display: block; overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.play.on video { opacity: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px, 5vw, 60px); align-items: start; }
.media { position: relative; display: block; margin-bottom: 22px; }
.media img, .media svg { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag { z-index: 1; position: absolute; left: 0; bottom: 0; font: 400 12.5px/1 var(--sans); color: #fff; background: rgba(19,33,44,.62); padding: 7px 10px; }
@media (max-width: 860px) { .feature, .pair { grid-template-columns: 1fr; } }

/* Off hours: one photo across the page at its own shape, captions like a magazine. */
.off { padding-bottom: clamp(48px, 6vw, 88px); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); margin-bottom: clamp(28px, 4vw, 44px); }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.off .lead { max-width: 30ch; }
@media (max-width: 640px) { .photos { grid-template-columns: 1fr; } }
figcaption { font-size: 14px; color: var(--ink-3); padding-top: 10px; }

/* The invitation: the last thing on Home, said plainly. */
.invite { border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 96px) 0; }
.invite p:first-child { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 22px; text-wrap: balance; }
.invite .links { font-size: 17px; }

/* Reading pages: same paper; the head is just type and a rule. */
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-head .wrap > * { max-width: 760px; }
.page-head .dateline { margin-bottom: 18px; }
.page-head h1 { text-wrap: balance;  font-size: clamp(38px, 5.4vw, 64px); font-weight: 380; letter-spacing: -.02em; }
.page-head .lede { font-size: clamp(19px, 1.9vw, 22px); color: var(--ink-2); margin: 24px 0 0; }
.page-head + section { padding-top: 0; }
.label { font: 500 15px/1.4 var(--sans); color: var(--ink); padding-top: 14px; border-top: 1px solid var(--ink); margin-bottom: 26px; }

.context { max-width: 62ch; margin: 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: 18px; }
.context a { font: 500 16px var(--sans); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 44px; line-height: 1; font-weight: 300; color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 23px; margin-bottom: 6px; }
.steps p { font-size: 17px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; } .steps li::before { grid-row: span 2; font-size: 34px; } }

.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { max-width: 70ch; }
@media (max-width: 640px) { .diagram { overflow-x: auto; } .diagram svg { min-width: 600px; } }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 72px); }
.tile { border-top: 1px solid var(--rule); padding: 20px 0 26px; }
.tile h3 { font-size: 23px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 17.5px; margin: 0; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.note { font: 400 15px/1.5 var(--sans); color: var(--ink-3); margin-top: 18px; }

.prose { max-width: 64ch; }
.prose h2 { font-size: 30px; margin: 0 0 16px; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose + .prose { margin-top: 48px; }
.how { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stats { position: sticky; top: 96px; display: grid; gap: 26px; }
.stats div { border-top: 1px solid var(--rule); padding-top: 14px; }
.stats b { display: block; font-size: 46px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.stats span { font: 400 14.5px/1.4 var(--sans); color: var(--ink-3); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .stats { position: static; grid-template-columns: repeat(3, 1fr); order: -1; gap: 16px; } .stats b { font-size: 32px; } }

/* Builds: a dated log. */
.era { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--rule); }
.era h2 { font-size: 24px; }
.era .when { font: 400 14.5px/1.5 var(--sans); color: var(--ink-3); margin-top: 6px; }
.era ul { list-style: none; padding: 0; margin: 0; }
.era li { padding: 0 0 12px; font-size: 18px; }
.era li b { font: 500 16px var(--sans); }
.era li span { color: var(--ink-2); }
.era li > a { font: 500 15.5px var(--sans); white-space: nowrap; }
@media (max-width: 700px) { .era { grid-template-columns: 1fr; gap: 8px; } }

/* Footer: paper, a rule, the studio mark small. */
footer { border-top: 1px solid var(--rule); padding: 34px 0 44px; font: 400 14.5px/1.5 var(--sans); color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
footer .studio { display: flex; align-items: center; gap: 14px; }
footer .studio img { height: 22px; width: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
