/* sillbrowser.io — one day at Sill's window. The home page opens on the room (its wall, the
   window, the sill); scrolling passes through the window into a live landscape whose light
   follows the page from morning to night and back to dawn. Words are set on the sky itself,
   like type laid over a photograph; the product is drawn as an object in the view. */

:root {
  /* the room */
  --wall: #e9e1d6;
  --wall-shade: #d9cfc1;
  --trim: #f3ede5;
  --sill-top: #f6f0e8;
  --sill-face: #d5cabc;
  /* ink: by day on a light sky, and at night */
  --ink: #12151b;
  --ink-2: rgba(18, 21, 27, 0.68);
  --ink-3: rgba(18, 21, 27, 0.46);
  --night: #ffffff;
  --night-2: rgba(255, 255, 255, 0.74);
  --night-3: rgba(255, 255, 255, 0.5);
  --button: #1b1916;
  --button-ink: #faf6f0;
  --accent: #2f6fe8;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shared */

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px 14px 20px; border-radius: 999px;
  background: var(--button); color: var(--button-ink);
  font: 600 16px/1 var(--text); letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 22px rgba(24, 18, 10, 0.24);
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.35), box-shadow 0.3s;
}
.button:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 28px rgba(24, 18, 10, 0.3); }
.button:active { transform: scale(0.96); transition-duration: 0.08s; }
.button svg { width: 16px; height: 16px; margin-top: -2px; }
.button.light { background: #fff; color: #12151b; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.fine { font-size: 13px; letter-spacing: 0.01em; color: var(--ink-3); }
.fine a { text-underline-offset: 3px; text-decoration-color: currentColor; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 19px/1 var(--display); letter-spacing: -0.035em; text-decoration: none;
}
.wordmark img { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- the room (home) */

.sky {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
  background: linear-gradient(#8fb0d6, #e2d7cd 62%, #7d766c 63%, #2f302a);
}
/* the air low in the valley, which the words above it read against: pale by day, deep at night */
.haze { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.haze::before, .haze::after { content: ""; position: absolute; inset: 0; transition: opacity 0.2s linear; }
.haze::before { background: linear-gradient(to top, rgba(238, 234, 228, 0.72), rgba(238, 234, 228, 0.36) 30%, rgba(238, 234, 228, 0) 58%); opacity: var(--day, 1); }
.haze::after { background: linear-gradient(to top, rgba(8, 10, 22, 0.7), rgba(8, 10, 22, 0.3) 32%, rgba(8, 10, 22, 0) 60%); opacity: calc(1 - var(--day, 1)); }
.hero { position: relative; z-index: 2; height: 190vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.room { position: absolute; inset: 0; transform-origin: 50% 37%; will-change: transform, opacity; }
.room-header {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--gutter-r) 0 var(--gutter);
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.room-header nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.room-header nav a { text-decoration: none; color: var(--ink-2); }
.room-header nav a:hover { color: var(--ink); }
.window {
  position: absolute; left: 50%; top: 14%;
  width: min(60vw, 960px, 112vh);
  aspect-ratio: 1.55;
  transform: translateX(-50%);
  border: clamp(12px, 1.45vw, 20px) solid var(--trim);
  border-bottom: 0;
  border-radius: clamp(36px, 4vw, 58px) clamp(36px, 4vw, 58px) 0 0;
  box-shadow: 0 0 0 300vmax var(--wall), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.window::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.02) 50%, transparent 62%);
}
.room-light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 40%, rgba(255, 234, 210, 0.3), rgba(255, 234, 210, 0) 70%),
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(48, 34, 22, 0.2) 100%);
}
.sill {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: calc(min(60vw, 960px, 112vh) + clamp(80px, 9vw, 128px));
  height: clamp(30px, 3.3vw, 46px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.07), transparent 2.5%, transparent 97.5%, rgba(0, 0, 0, 0.07)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0, transparent 14%),
    linear-gradient(180deg, var(--sill-top) 0 58%, #fbf8f3 60%, #e3d9cc 66%, var(--sill-face) 72%, #c4b8a8 100%);
  box-shadow: 0 6px 10px rgba(40, 30, 20, 0.15), 0 22px 40px rgba(40, 30, 20, 0.1);
}
.sill::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 58%; border-radius: 8px 8px 0 0;
  background: radial-gradient(50% 120% at 50% 0%, rgba(255, 214, 170, 0.5), rgba(255, 214, 170, 0));
}
.on-sill { position: absolute; left: 50%; transform: translate(-50%, -78%); pointer-events: none; }
.hero-title {
  position: absolute; left: 50%; top: 14%;
  width: min(60vw, 960px, 112vh); aspect-ratio: 1.55; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(30px, 7%, 76px); text-align: center; pointer-events: none;
}
.hero-title h1 { margin: 0; font: 500 clamp(66px, 9.4vw, 140px)/0.9 var(--display); letter-spacing: -0.048em; }
.hero-title p { margin: 16px 0 0; font: 400 clamp(17px, 1.6vw, 23px)/1.3 var(--text); letter-spacing: -0.012em; color: var(--ink-2); }
.hero-cta {
  position: absolute; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.hero-cta .fine { color: rgba(30, 25, 20, 0.55); }

/* ---------------------------------------------------------------- Sill, drawn */

/* the bar: Liquid Glass over whatever's under it — here, as a thing on the sill */
.bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 26px rgba(30, 24, 18, 0.18);
  font: 500 13px/1 var(--text); color: #1d1f24; white-space: nowrap;
}
.space-disc {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #86b4ff, #2f6fe8 70%);
  box-shadow: 0 0 10px rgba(47, 111, 232, 0.45);
}
.space-disc svg { width: 14px; height: 14px; fill: #fff; }
.tab { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; }
.tab i { width: 14px; height: 14px; border-radius: 4px; display: block; flex: none; }
.tab.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

/* a Sill window: the page edge to edge, the expanded bar floating at its foot */
.mac {
  position: relative; width: 100%; aspect-ratio: 1.5; border-radius: 14px; overflow: hidden;
  background: #fbfaf7;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 40px 80px rgba(16, 20, 32, 0.35), 0 12px 24px rgba(16, 20, 32, 0.18);
}
.mac .article { position: absolute; inset: 0; overflow: hidden; }
.mac .article img { width: 100%; height: 52%; object-fit: cover; }
.mac .article .copy { padding: 4.5% 9% 0; }
.mac .article .kicker { font: 600 10px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: #b4562d; }
.mac .article h4 { margin: 8px 0 6px; font: 700 clamp(15px, 2vw, 24px)/1.1 var(--display); letter-spacing: -0.02em; color: #15171c; }
.mac .article p { margin: 0; font-size: clamp(9px, 0.95vw, 12.5px); line-height: 1.5; color: #4a4d55; max-width: 46em; }
.xbar {
  position: absolute; left: 50%; bottom: 3.4%; transform: translateX(-50%);
  width: 72%; border-radius: clamp(14px, 1.8vw, 24px);
  padding: 7px 8px; display: grid; gap: 6px;
  background: rgba(255, 255, 255, 0.66);
  border: 0.5px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: 0 0.5px 0 #fff inset, 0 10px 26px rgba(20, 24, 34, 0.2);
  font: 500 clamp(8px, 0.85vw, 11.5px)/1 var(--text); color: #1d1f24; white-space: nowrap;
}
.xbar .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.xbar .navs { display: flex; gap: 2px; color: #555a63; }
.xbar .navs svg { width: clamp(12px, 1.2vw, 16px); height: clamp(12px, 1.2vw, 16px); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xbar .address {
  flex: 1; min-width: 0; padding: clamp(5px, 0.6vw, 8px) 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.05); color: #33363d; overflow: hidden; text-overflow: ellipsis;
}
.xbar .address b { font-weight: 600; color: #15171c; }
.xbar .divider { width: 1px; align-self: stretch; margin-block: 4px; background: rgba(0, 0, 0, 0.12); }
.xbar .chip { display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.xbar .chip .space-disc { width: clamp(18px, 1.9vw, 24px); height: clamp(18px, 1.9vw, 24px); }
.xbar .chip .space-disc svg { width: 9px; height: 9px; }
.xbar .tab { padding: clamp(4px, 0.55vw, 7px) 10px clamp(4px, 0.55vw, 7px) 8px; }
.xbar .tab i { width: clamp(9px, 0.95vw, 12px); height: clamp(9px, 0.95vw, 12px); border-radius: 3px; }
.xbar .plus { margin-left: auto; color: #555a63; font-size: 1.3em; padding-right: 6px; }

/* spaces, as things you keep */
.tokens { display: flex; gap: clamp(22px, 4vw, 56px); align-items: flex-end; flex-wrap: wrap; }
.token { display: grid; justify-items: center; gap: 14px; }
.token .disc {
  width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 34px var(--glow), 0 18px 30px rgba(16, 20, 32, 0.22);
}
.token .disc svg { width: 38%; height: 38%; fill: #fff; }
.token b { font: 600 15px/1 var(--text); letter-spacing: -0.01em; }
.token span { font: 400 13px/1 var(--text); color: var(--ink-2); }

/* the trackpad */
.trackpad {
  position: relative; width: 100%; aspect-ratio: 1.42; border-radius: clamp(18px, 2vw, 26px);
  background: linear-gradient(160deg, #f7f6f4 0%, #e8e6e2 55%, #dcd9d4 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 0 #fff inset, 0 -2px 0 rgba(0, 0, 0, 0.05) inset,
              0 30px 60px rgba(16, 20, 32, 0.3), 0 8px 16px rgba(16, 20, 32, 0.12);
}
.trackpad i {
  position: absolute; width: 8%; aspect-ratio: 1; margin: -4%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 45%, rgba(47, 111, 232, 0.35) 70%);
  box-shadow: 0 0 0 1px rgba(47, 111, 232, 0.35), 0 0 22px rgba(47, 111, 232, 0.45);
  opacity: 0;
}
.gesture-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gesture-list li {
  display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; align-items: baseline;
  padding: 10px 0; color: var(--ink-3); transition: color 0.4s;
}
.gesture-list li .key { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.gesture-list li b { font: 600 19px/1.25 var(--text); letter-spacing: -0.015em; display: block; }
.gesture-list li span { font-size: 15px; }
.gesture-list li.on { color: var(--ink); }
.gesture-list li.on .key { color: var(--accent); }

/* ---------------------------------------------------------------- the day (home) */

.day { position: relative; z-index: 3; }
.chapter {
  min-height: 112vh;
  padding: 16vh var(--gutter-r) 18vh var(--gutter);
  display: grid; align-content: start;
}
.chapter.night { color: var(--night); }
.measure { width: min(1180px, 100%); margin-inline: auto; }
.time { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.night .time { color: var(--night-3); }
.chapter h2 {
  margin: 14px 0 0;
  font: 500 clamp(44px, 6.2vw, 92px)/0.96 var(--display);
  letter-spacing: -0.045em; text-wrap: balance;
}
.lede { margin: 22px 0 0; max-width: 34rem; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.night .lede { color: var(--night-2); }

.pair { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pair.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.pair .object { margin-top: clamp(0px, 4vh, 48px); min-width: 0; }

.built { margin-top: clamp(40px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); row-gap: 40px; }
.built > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 6px; align-content: start; }
.built svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-row: span 2; margin-top: 1px; }
.built b { font: 600 18px/1.25 var(--text); letter-spacing: -0.015em; }
.built span { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.night .built span { color: var(--night-2); }
.built small { grid-column: 2; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.arc { text-align: center; justify-items: center; align-content: center; }
.arc h2 { font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.05em; }
.arc h2 span { display: block; }
.arc .lede { margin-inline: auto; }
.arc .brings { margin-top: 30px; font: 500 12.5px/1.8 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-3); }

.dawn { text-align: center; justify-items: center; align-content: center; min-height: 100vh; }
.dawn h2 { font-size: clamp(60px, 10vw, 150px); letter-spacing: -0.05em; }
.dawn .cta { margin-top: 36px; display: grid; justify-items: center; gap: 16px; }

.site-foot {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding: 26px var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 30px) var(--gutter);
  font-size: 13.5px; color: var(--ink-2);
}
.site-foot nav { display: flex; gap: 22px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- the changelog */

.page {
  min-height: 100vh;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 238, 216, 0.55), rgba(255, 238, 216, 0) 70%),
    var(--wall);
}
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) max(32px, env(safe-area-inset-right, 0px)) 0 max(32px, env(safe-area-inset-left, 0px));
}
.page-header nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.page-header nav a { text-decoration: none; color: var(--ink-2); }
.page-header nav a[aria-current] { color: var(--ink); }
.log { width: min(760px, 100%); margin: 0 auto; padding: 12vh var(--gutter-r) 14vh var(--gutter); }
.log h1 { margin: 0; font: 500 clamp(48px, 7vw, 84px)/0.95 var(--display); letter-spacing: -0.045em; }
.log > p { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.release { margin-top: 72px; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; }
.release .when { font: 500 12.5px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--ink-3); padding-top: 9px; }
.release h2 { margin: 0; font: 600 28px/1.15 var(--display); letter-spacing: -0.03em; }
.release h2 a { text-decoration: none; }
.release p { margin: 10px 0 0; color: var(--ink-2); }
.release ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.release li { position: relative; padding-left: 22px; }
.release li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--wall-shade); box-shadow: inset 0 0 0 1.5px rgba(18, 21, 27, 0.35); }
.release .req { font-size: 14px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 404 */

.lost { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter-r) 0 var(--gutter); color: #fff; position: relative; z-index: 2; }
.lost h1 { margin: 0; font: 500 clamp(56px, 9vw, 110px)/0.95 var(--display); letter-spacing: -0.05em; }
.lost p { margin: 16px 0 34px; font-size: 19px; color: var(--night-2); }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 960px) {
  .pair, .pair.flip { grid-template-columns: minmax(0, 1fr); }
  .built { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { min-height: auto; padding-block: 14vh 16vh; }
}
@media (max-width: 600px) {
  .window, .hero-title { width: 86vw; }
  .sill { width: calc(86vw + 36px); }
  .on-sill .tab:not(.on) { display: none; }
  .room-header nav { gap: 18px; font-size: 14px; }
  .room-header nav .wide { display: none; }
  .built { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .release .when { padding-top: 0; }
  .xbar { width: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
