@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/geist-mono-latin-600-normal.woff2") format("woff2");
}
  :root {
    --bg: #f5f8f6;
    --surface: #ffffff;
    --ink: #0e1714;
    --ink-soft: #5d6c66;
    --ink-faint: #97a39e;
    --line: #d7e1db;
    --accent: #087f6d;
    --accent-ink: #064f45;
    --accent-soft: #d7f2eb;
    --warn: #b8732a;
    --grid: rgb(14 23 20 / 0.038);
    --shadow: 0 22px 60px rgb(14 23 20 / 0.10);
  }
  [data-theme="dark"] {
    --bg: #0c1210;
    --surface: #121b18;
    --ink: #eaf3ee;
    --ink-soft: #94a59e;
    --ink-faint: #5a6a64;
    --line: #233029;
    --accent: #49d6bd;
    --accent-ink: #95f0dc;
    --accent-soft: #173d36;
    --warn: #d99a52;
    --grid: rgb(234 243 238 / 0.04);
    --shadow: 0 22px 60px rgb(0 0 0 / 0.4);
  }
  .skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--accent);
    color: #f7fffc;
    border-radius: 6px;
    font-size: 13px;
    transition: top 160ms ease;
  }
  .skip-link:focus { top: 12px; }

  a:focus-visible,
  button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-feature-settings: "calt" 0, "liga" 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
  }
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px);
    background-size: 100% 8px;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  .wrap { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

  /* -- nav -- */
  .nav {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; padding: 14px 0;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
  }
  .nav.scrolled { border-color: var(--line); }
  .prompt { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
  .prompt .gt { color: var(--accent); }
  .cursor {
    display: inline-block; width: 8px; height: 15px; margin-left: 2px;
    background: var(--accent); transform: translateY(2px);
    animation: blink 1.05s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }
  .nav-menu { display: flex; gap: 4px; font-size: 12.5px; letter-spacing: 0.04em; }
  .nav-menu a {
    padding: 7px 12px; color: var(--ink-soft);
    border: 1px solid transparent; border-radius: 4px;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  }
  .nav-menu a:hover { color: var(--accent-ink); border-color: var(--line); background: var(--surface); }

  /* -- hero -- */
  .hero { padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); position: relative; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: clamp(18px, 2.5vw, 26px);
    font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); text-transform: uppercase;
  }
  .eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
  .display {
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.92; letter-spacing: -0.045em; font-weight: 600;
    margin: 0; text-transform: uppercase; word-break: break-word;
  }
  .display .scram { white-space: pre; }
  .display .line2 { display: block; padding-left: clamp(0px, 7vw, 6rem); }
  .display .accent-mark { color: var(--accent); }

  .hero-bottom {
    margin-top: clamp(30px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
  }
  .hero-meta { display: grid; gap: 20px; align-content: end; }
  .hero-lede {
    margin: 0; font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    color: var(--ink-soft); line-height: 1.7; font-weight: 400; max-width: 42ch;
  }
  .hero-lede .kw { color: var(--ink); font-weight: 500; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 20px; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
    border-radius: 6px; border: 1px solid transparent; cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn .bracket { color: var(--ink-faint); transition: color 160ms ease; }
  .btn-primary { background: var(--accent); color: #f7fffc; }
  .btn-primary:hover { background: var(--accent-ink); }
  .btn-primary .bracket { color: rgb(255 255 255 / 0.55); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
  .btn-ghost:hover .bracket { color: var(--accent); }

  /* -- frame (asset window) -- */
  .frame {
    margin: 0; border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
  }
  .frame-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 13px; border-bottom: 1px solid var(--line);
    font-size: 11px; color: var(--ink-soft); letter-spacing: 0.03em;
    background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  }
  .frame-bar .path { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
  .frame-bar .path .ic { color: var(--accent); }
  .frame-bar .path .dir { color: var(--ink-faint); }
  .frame-bar .info { color: var(--ink-faint); white-space: nowrap; }
  .frame img { width: 100%; height: 100%; object-fit: cover; }
  .frame.hero-frame img { aspect-ratio: 4 / 3; }

  /* -- section -- */
  .section { padding: clamp(56px, 9vw, 108px) 0; border-top: 1px solid var(--line); }
  .section:first-of-type { border-top: none; }
  .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
  .sec-title {
    font-size: clamp(1.6rem, 3.8vw, 3rem); line-height: 1; letter-spacing: -0.035em;
    font-weight: 600; margin: 0; text-transform: uppercase;
  }
  .sec-title .mute { color: var(--ink-faint); }
  .sec-note { margin: clamp(20px, 3vw, 28px) 0 0; font-size: 13px; color: var(--ink-faint); max-width: 60ch; line-height: 1.7; }

  /* bento */
  .bento { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
  .bento .frame img { aspect-ratio: 16 / 11; }
  .bento .frame.tall img { aspect-ratio: 3 / 4; }

  /* log */
  .log-wrap { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .log { border-top: 1px solid var(--line); }
  .log-row {
    display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: baseline;
    padding: clamp(20px, 3vw, 28px) 0; border-bottom: 1px solid var(--line);
  }
  .log-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
  .log-tag.now { color: var(--accent); }
  .log-tag.next { color: var(--warn); }
  .log-tag.later { color: var(--ink-faint); }
  .log-body { margin: 0; font-size: clamp(1.02rem, 1.9vw, 1.42rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }
  .log-body .comment { color: var(--ink-faint); font-weight: 400; font-size: 0.78em; display: block; margin-top: 6px; }
  .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 8px; transform: translateY(-1px); animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
  .desk-frame img { aspect-ratio: 16 / 8; }

  /* -- footer -- */
  .foot {
    border-top: 1px solid var(--line); padding: 28px 0 44px;
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em;
  }
  .foot a:hover { color: var(--accent-ink); }

  .nav-right { display: flex; align-items: center; gap: 10px; }
  .theme-btn {
    font-family: inherit; font-size: 12px; letter-spacing: 0.03em;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--surface); color: var(--ink-soft); cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .theme-btn:hover { color: var(--accent-ink); border-color: var(--accent); }

  .menu-btn {
    display: none;
    font-family: inherit; font-size: 12px; letter-spacing: 0.03em;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--surface); color: var(--ink-soft); cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .menu-btn:hover { color: var(--accent-ink); border-color: var(--accent); }

  @media (max-width: 860px) {
    .hero-bottom { grid-template-columns: 1fr; align-items: start; }
    .bento { grid-template-columns: 1fr; }
    .bento .frame.tall img { aspect-ratio: 16 / 11; }
  }
  @media (max-width: 720px) {
    .menu-btn { display: inline-flex; }
    .nav-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 2px;
      min-width: 160px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: var(--shadow);
      display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 10px 12px; }
    .display .line2 { padding-left: 0; }
    .log-row { grid-template-columns: 1fr; gap: 8px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }
