/* The display face echoes a harbour timetable. Body and app labels use the system face. */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f4f2ed;   /* page */
  --sheet: #fbfaf7;   /* raised */
  --step:  #e9e6df;   /* desk, plates */
  --ink:   #1c1b19;   /* primary text  15.4:1 on paper */
  --ink-2: #55524c;   /* secondary      7.0:1 */
  --ink-3: #6f6b64;   /* muted, meta    4.7:1 */
  --rule:  rgba(28, 27, 25, .10);
  --rubric: #b23a22;  /* accent, white on it 5.96:1 */
  --rubric-press: #9e3520;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", var(--sans);
  /* The recreated macOS interface uses the visitor's own system font, as the app does. */
  --mac: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Navigation */
.nav { height: 64px; }
.nav-in { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 8px; font: 500 17px/1 var(--sans); }
.brand svg { width: 24px; height: 18px; }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 8px; font: 500 15px/1 var(--sans); white-space: nowrap; transition: background-color .16s var(--ease), transform .16s var(--ease); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .tab:focus-visible { outline: 2px solid var(--rubric); outline-offset: 2px; }
.btn-primary { background: var(--rubric); color: #fff; }
.btn-primary:hover { background: var(--rubric-press); }
.btn-quiet { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(28,27,25,.05); }
.btn-quiet:hover { background: #fff; }
.btn-s { height: 36px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font: 500 14px/1 var(--sans); color: var(--ink); }

/* Hero */
.hero-in { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 472px 1fr; column-gap: 72px; align-items: center; padding-bottom: 32px; }
.runhead { margin: 0 0 24px; font-size: 13px; line-height: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.runhead a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
h1 { margin: 0; font: 600 64px/1.04 var(--display); letter-spacing: -.01em; }
h1 span { display: block; }
.sub { margin: 24px 0 0; max-width: 30rem; font-size: 19px; line-height: 30px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Signature: the size frame. Trim marks extend the edges of the shared rectangle. */
.frame { position: relative; }
.tm { position: absolute; width: 0; height: 0; }
.tm::before, .tm::after { content: ""; position: absolute; background: var(--ink-3); }
.tm::before { width: 16px; height: 1px; }
.tm::after  { width: 1px; height: 16px; }
.tl { left: 0; top: 0; }      .tl::before { left: -28px; top: 0; }   .tl::after { left: 0; top: -28px; }
.tr { right: 0; top: 0; }     .tr::before { left: 12px; top: 0; }    .tr::after { left: -1px; top: -28px; }
.bl { left: 0; bottom: 0; }   .bl::before { left: -28px; top: -1px; } .bl::after { left: 0; top: 12px; }
.br { right: 0; bottom: 0; }  .br::before { left: 12px; top: -1px; }  .br::after { left: -1px; top: 12px; }
.slug { position: absolute; left: 12px; top: -28px; margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }

/* Recreated Folio group: borderless 36 pt strip above the real app window */
.group { position: relative; width: 100%; filter: drop-shadow(0 20px 28px rgba(28,27,25,.14)) drop-shadow(0 1px 2px rgba(28,27,25,.14)); font-family: var(--mac); color: rgba(0,0,0,.85); }
.strip { height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; background: #ececec; box-shadow: inset 0 -1px 0 rgba(0,0,0,.1); }
.lights { display: flex; gap: 8px; flex: none; margin-right: 4px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #d5d4d2; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.lights.on i:nth-child(1) { background: #ff5f57; } .lights.on i:nth-child(2) { background: #febc2e; } .lights.on i:nth-child(3) { background: #28c840; }
.tabs { flex: 1; min-width: 0; display: flex; gap: 2px; overflow: hidden; }
.tab { flex: none; max-width: 192px; height: 28px; display: flex; align-items: center; padding: 0 0 0 8px; border: 0; border-radius: 6px; background: transparent; font: 400 12px/16px var(--mac); color: rgba(0,0,0,.85); cursor: default; }
.tab.sel { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); font-weight: 600; }
.tab .t { margin-left: 8px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .x { width: 24px; height: 28px; display: grid; place-items: center; flex: none; color: rgba(0,0,0,.5); }
.tab .x svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.ico { width: 16px; height: 16px; flex: none; display: block; }
.strip-r { display: flex; align-items: center; gap: 4px; flex: none; padding-left: 18px; color: rgba(0,0,0,.62); }
.ctl { height: 24px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.ctl.plus { width: 24px; }
.ctl svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.vr { width: 1px; height: 16px; background: rgba(0,0,0,.1); }

.win { position: relative; background: #fff; border-radius: 10px; overflow: hidden; aspect-ratio: 1180 / 760; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.pane { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pane[hidden] { display: none; }
.tbar { height: 28px; flex: none; display: flex; align-items: center; padding: 0 8px; background: #f3f3f3; box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); position: relative; }
.tbar .ttl { position: absolute; left: 0; right: 0; text-align: center; font: 600 13px/16px var(--mac); color: rgba(0,0,0,.78); pointer-events: none; }
.tbar.tall { height: 40px; gap: 16px; }

/* Pane 1: design app with the poster, the page's one bright moment */
.canvas-app { flex: 1; display: flex; min-height: 0; }
.layers { width: 148px; flex: none; padding: 8px; background: #f6f6f6; box-shadow: inset -1px 0 0 rgba(0,0,0,.08); font: 400 11px/24px var(--mac); color: rgba(0,0,0,.72); }
.layers b { display: block; font-weight: 600; color: rgba(0,0,0,.5); padding: 0 8px; }
.layers span { display: block; padding: 0 8px; border-radius: 4px; }
.layers span.on { background: #e2e2e2; color: rgba(0,0,0,.85); }
.canvas { flex: 1; display: grid; place-items: center; background: #e5e4e1; }
.poster { height: 86%; aspect-ratio: 3 / 4; display: block; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.1); }

/* Pane 2: browser */
.addr { flex: 1; max-width: 300px; margin: 0 auto; height: 24px; border-radius: 6px; background: #e6e6e6; display: flex; align-items: center; justify-content: center; font: 400 12px/16px var(--mac); color: rgba(0,0,0,.7); }
.page { flex: 1; padding: 24px 32px; font-family: var(--mac); }
.page h4 { margin: 0; font: 600 20px/28px var(--mac); color: #1d3b52; }
.page .d { margin: 4px 0 16px; font-size: 13px; line-height: 20px; color: rgba(0,0,0,.6); }
.tide { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.tide td { padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); }
.tide td:last-child { text-align: right; }
/* Pane 3: notes */
.note { flex: 1; padding: 20px 28px; font: 400 13px/22px var(--mac); color: rgba(0,0,0,.82); }
.note p { margin: 0 0 8px; }
.note .h { font-size: 20px; line-height: 28px; font-weight: 600; }

/* Section 2: one size */
.size { padding: 128px 0 128px; }
.s-head { display: grid; grid-template-columns: 472px 1fr; column-gap: 72px; align-items: start; }
h2 { margin: 0; font: 600 44px/1.08 var(--display); letter-spacing: -.01em; }
.s-head p { margin: 4px 0 0; max-width: 34rem; color: var(--ink-2); }
.plates { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-top: 64px; }
.plate { margin: 0; }
.desk { position: relative; height: 512px; border-radius: 16px; background: var(--step); overflow: hidden; }
.plate figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.mini { position: absolute; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 12px 24px rgba(28,27,25,.12); font-family: var(--mac); }
.mini .mb { height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #f3f3f3; box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); font: 600 11px/16px var(--mac); color: rgba(0,0,0,.72); }
.mini .mb i { width: 8px; height: 8px; border-radius: 50%; background: #d5d4d2; flex: none; }
.mini .mb i:last-of-type { margin-right: 4px; }
.mini .body { position: absolute; inset: 24px 0 0 0; }
.ln { height: 6px; border-radius: 3px; background: #e7e6e3; margin: 0 16px 10px; }
.desk .frame { position: absolute; left: 50%; top: 50%; width: 600px; transform: translate(-50%, -46%); }

/* Optional entrance, shown with #motion: one fade and rise for the hero copy */
.motion .copy > * { animation: rise .44s var(--ease) both; }
.motion .copy > :nth-child(2) { animation-delay: .05s; } .motion .copy > :nth-child(3) { animation-delay: .1s; } .motion .copy > :nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .motion .copy > * { animation: none; } }

/* Small screens */
@media (max-width: 1180px) {
  .wrap { padding: 0 48px; }
  .hero-in, .s-head { grid-template-columns: 1fr; row-gap: 48px; }
  .hero-in { padding: 48px 0 64px; min-height: 0; }
  .plates { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav { height: 56px; }
  .links, .nav .btn-s { display: none; }
  .menu-btn { display: block; }
  .hero-in { padding: 40px 0 0; row-gap: 56px; align-items: start; }
  .runhead { font-size: 12px; line-height: 16px; margin-bottom: 20px; }
  h1 { font-size: 42px; line-height: 1.06; }
  .sub { font-size: 17px; line-height: 26px; margin-top: 20px; }
  .actions { margin-top: 32px; gap: 8px; }
  .btn { height: 44px; padding: 0 16px; }
  .actions .btn svg { display: none; }
  .stage { margin-left: 8px; }
  .hero .frame { width: 560px; }
  .layers { display: none; }
  .poster .small { display: none; }
  .size { padding: 96px 0; }
  h2 { font-size: 32px; }
  .s-head { row-gap: 20px; }
  .plates { margin-top: 40px; }
  .desk { height: 400px; }
  .desk .frame { width: 460px; left: 32px; transform: translateY(-46%); }
  .mess-design { width: 220px !important; height: 156px !important; }
  .mess-browser { left: 150px !important; width: 150px !important; height: 196px !important; }
  .mess-notes { left: 64px !important; top: 196px !important; width: 168px !important; height: 116px !important; }
}
/* Editorial page and interactive proof. */
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--rubric);outline-offset:3px}
.skip{position:absolute;z-index:5;background:var(--sheet);padding:8px 16px;transform:translateY(-110%)}
.skip:focus{transform:none}
.nav{height:76px;border-bottom:1px solid var(--rule);position:relative;z-index:3}
.brand,.word{font:600 32px/1 var(--display);letter-spacing:0}
.brand svg{width:30px;height:25px}
.wrap{padding-inline:clamp(20px,5vw,76px)}
.hero-in{grid-template-columns:minmax(0,0.83fr) minmax(0,1.17fr);gap:clamp(32px,4vw,64px);min-height:0;padding-block:clamp(80px,8vw,124px)}
h1{font-size:clamp(44px,4.85vw,70px);line-height:1.04;letter-spacing:-.012em;text-wrap:balance}
.copy h1 span{display:block}.copy h1 span:last-child{color:var(--rubric)}
.sub{font-size:clamp(16px,1.35vw,20px);line-height:1.5;max-width:37ch}
.btn{border-radius:5px}.btn-primary{background:var(--ink)}.btn-primary:hover{background:var(--rubric)}
.btn-quiet{background:transparent;box-shadow:inset 0 0 0 1px #c6c2b9}
.runhead,.eyeline,.demo-caption,.call-top{font-size:13px;line-height:1.5}
.eyeline{margin:0 0 16px;color:var(--ink-3)}
.hero .frame{width:100%}.tabs .tab{flex:1 1 0;min-width:0;cursor:pointer}.tabs .tab:hover{background:#fafafa}.tabs .tab:focus-visible{outline-offset:-2px}
.short{display:none}.tab .x{width:14px}.strip-r{padding-left:2px}.strip{border-radius:8px 8px 0 0}
.win{aspect-ratio:1.52}.layers{width:20%}
.canvas{min-width:0;min-height:0;position:relative}.poster{position:absolute;max-width:88%;width:auto}
.demo-caption{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:20px 0 0;color:var(--ink-2)}
.demo-caption span{color:var(--rubric)}.br::after,.br::before{background:var(--rubric)}
.film-band{background:#23231f;color:#f5f3eb;padding:64px 0}
.film-layout,.share-grid,.s-head{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(32px,7vw,108px);align-items:center}
.film-layout p:not(.eyeline),.share-grid p:not(.eyeline){max-width:38ch}.film-band p{color:#d3cfc3}
video{display:block;width:100%;aspect-ratio:16/9;background:#171814;object-fit:contain;border:1px solid #51524a}
h2{font-size:clamp(34px,3.8vw,56px);letter-spacing:-.008em;line-height:1.08;text-wrap:balance}
.spread,.sharing,.end{padding:clamp(64px,7.4vw,112px) 0;border-bottom:1px solid var(--rule)}
.s-head{align-items:start}.s-head .eyeline{margin:0 0 16px}.method{display:grid;grid-template-columns:repeat(3,1fr);margin-top:56px;border-top:1px solid var(--ink)}
.method article{padding:24px 24px 0 0}.method article+article{border-left:1px solid var(--rule);padding-left:24px}
h3{font:500 28px/1.15 var(--display);letter-spacing:0;margin:0}.method p,.share-grid p,.document p,.faq p{color:var(--ink-2)}
kbd{white-space:nowrap;font:500 .86em var(--sans);border:1px solid #c9c5bb;background:var(--sheet);border-radius:4px;padding:2px 5px}
.sharing{background:#e6e3db}.share-note{font-size:13px;margin:32px 0 8px}.share-buttons{display:flex;gap:4px}
button{cursor:pointer}.share-buttons button,.close-dialog{font:500 14px var(--sans);border:1px solid #b8b3a7;background:transparent;border-radius:4px;color:var(--ink);padding:10px 14px}.share-buttons button[aria-pressed=true]{background:var(--ink);color:var(--sheet)}
.call{background:#33342e;padding:12px;border-radius:8px;box-shadow:0 12px 32px #2222}.call-top{display:flex;justify-content:space-between;gap:8px;color:#f5f4ea;padding:0 4px 12px}.call-top span{color:#c4c7b9}
.call-stage{height:clamp(240px,28vw,380px);display:grid;place-items:center;background:#cac7bf}.call-stage svg{height:82%;width:auto;box-shadow:0 3px 10px #2222}
.call-stage:has(#share-notes:not([hidden])){background:var(--sheet)}.call-stage.paused{background:#161713}
.faq details{border-top:1px solid #c9c5ba;padding:16px 0}.faq summary{cursor:pointer;font-weight:500}.faq a,.document p a,.formats small a,dialog p a{text-decoration:underline;text-underline-offset:3px}
.end{background:var(--sheet)}.end .wrap,.foot{display:flex;align-items:center;justify-content:space-between;gap:24px}.end p:last-child{margin-bottom:0}
footer{padding:32px 0}.foot{font-size:13px;flex-wrap:wrap}.foot span{margin-right:auto}.foot nav{display:flex;gap:20px}.foot a:hover{text-decoration:underline}
.document{max-width:900px;margin:auto;padding-block:72px 96px}.document h1{margin:28px 0 48px}.document h2{font-size:36px;margin:40px 0 12px}.document code{overflow-wrap:anywhere}.document li{margin:8px 0}.back{font-size:14px;color:var(--ink-2)}
dialog{border:1px solid #bdb9b0;background:var(--paper);color:var(--ink);padding:40px;border-radius:12px;max-width:min(560px,calc(100% - 24px));max-height:90vh}
dialog::backdrop{background:#1a1916aa}dialog h2{font-size:clamp(34px,5vw,44px)}.close-dialog{position:absolute;right:12px;top:12px;font-size:22px;line-height:1;padding:5px 10px}.formats{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0}.formats small{display:block;font-size:12px;margin-top:5px}
@media(max-width:1050px){.strip-r{display:none}.layers{width:24%}.hero-in{gap:32px}.tab .x{display:none}}
@media(max-width:840px){.hero-in{grid-template-columns:1fr;gap:56px;padding-block:56px 52px}.copy{max-width:600px}.stage{max-width:620px;width:100%;justify-self:center}.s-head,.share-grid,.film-layout{grid-template-columns:1fr;gap:28px}.sub{max-width:44ch}.film-layout p:not(.eyeline),.share-grid p:not(.eyeline){max-width:52ch}.film-band h2 br{display:none}.s-head p{max-width:56ch}.actions{margin-top:24px}}
@media(max-width:720px){.nav{height:60px}.nav-in{gap:16px}.nav .btn-s{display:inline-flex;height:34px}.menu-btn{margin-left:0}.nav .brand{margin-right:auto}.nav .links.open{display:flex;position:absolute;left:0;right:0;top:100%;padding:16px 20px;background:var(--sheet);box-shadow:0 8px 12px #0001;flex-wrap:wrap;gap:16px}.hero-in{padding-block:44px 40px}.hero .frame{width:100%}.stage{margin:0}.win{aspect-ratio:1.35}.layers{display:none}.hero .strip{padding-inline:5px}.hero .strip .lights{display:none}.tab .t{display:none}.tab .short{display:inline;overflow:hidden;text-overflow:ellipsis;margin-inline:5px}.tab{justify-content:center}.tab .x{display:none}.win .poster .small{display:block}.demo-caption{margin-top:16px}.hero .page{padding:12px 16px}.hero .tide td{padding:3px 0}.hero .note{padding:12px 16px}.method{grid-template-columns:1fr;margin-top:32px}.method article,.method article+article{padding:20px 0;border:0;border-bottom:1px solid var(--rule)}.method p{margin-bottom:0}.film-band{padding:48px 0}.end .wrap{align-items:start;flex-direction:column}.foot{gap:16px}.foot nav{width:100%;flex-wrap:wrap}.nav .btn{padding-inline:12px}.tm::before{width:8px}.tm::after{height:8px}.tl::before,.bl::before{left:-16px}.tr::before,.br::before{left:8px}.tl::after,.tr::after{top:-16px}.bl::after,.br::after{top:8px}.document{padding-block:44px}dialog{padding:28px 20px}.poster{height:89%}}
.portrait-link{display:inline-block;margin-top:12px;font-size:14px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:720px){.hero .stage{display:flex;flex-direction:column}.hero .demo-caption{order:-1;justify-content:flex-start;margin:0 0 38px}.hero .demo-caption span{display:none}}
