  /* Night is the default here. Daylight is a choice you make,
     and the page shows you something different when you make it. */
  :root {
    --bg: #0C0C10;
    --ink: #ECECEA;
    --gray: #8C8C97;
    --line: #23232B;
    --accent: #7A8CFF;   /* the one accent colour, brightened for the dark */
    --soft: #15151B;     /* a slightly lifted surface */
    --veil: rgba(12, 12, 16, 0.90);   /* what lies over the wallpaper */
    --on-accent: #0C0C10;
    --lumen: 0;          /* how much daylight is in the room */
  }

  :root[data-theme="light"] {
    --bg: #FFFFFF;
    --ink: #101010;
    --gray: #757575;
    --line: #E9E9E9;
    --accent: #2F45FF;
    --soft: #F6F6F4;
    --veil: rgba(246, 246, 244, 0.93);
    --on-accent: #FFFFFF;
    --lumen: 1;
  }

  :root { color-scheme: dark; }
  :root[data-theme="light"] { color-scheme: light; }

  html, body { background: var(--bg); }

  /* the theme changes without a jolt */
  body, nav, .exhibit, .door, #garden, .btn88, .links a {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    body, nav, .exhibit, .door, #garden, .btn88, .links a { transition: none; }
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
  }

  .wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }

  .mono { font-family: "IBM Plex Mono", monospace; }

  /* ---------- top nav ---------- */
  nav {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
  }

  .nav-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-logo {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    text-decoration: none;
  }

  .nav-logo .dot { color: var(--accent); }

  .nav-links { display: flex; gap: 4px; flex-wrap: wrap; }

  .nav-links a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: var(--gray);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); background: var(--soft); }

  /* ---------- hero ---------- */
  .hero {
    min-height: 74vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .greeting {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 24px;
  }

  .big-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(64px, 14vw, 128px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
  }

  .big-name .dot { color: var(--accent); }

  /* the blue dot is a door. it looks like nothing but a period. */
  button.dot {
    background: none;
    border: none;
    font: inherit;
    color: var(--accent);
    cursor: text; /* never advertise that it is pressable */
    padding: 0;
  }

  button.dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  /* ---------- the door ---------- */
  .door {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 26px;
    max-width: 420px;
  }

  .door-riddle { font-size: 13px; color: var(--gray); margin-bottom: 14px; line-height: 1.9; }

  .door-form { display: flex; gap: 8px; }

  .door-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink);
    background: var(--bg);
  }

  .door-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

  .door-form button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .door-form button:hover { background: var(--accent); border-color: var(--accent); }

  .door-msg { font-size: 12px; color: var(--gray); margin-top: 10px; min-height: 1em; }

  /* ---------- secret garden ---------- */
  /* garden wallpaper: garden_wallpaper_1998.jpg
     — it remembers more than it shows. ask its metadata, politely. */
  #garden {
    background:
      linear-gradient(var(--veil), var(--veil)),
      url("garden_wallpaper_1998.jpg");
    border-radius: 12px;
    padding: 48px 36px;
    border: 1px solid var(--line);
    margin: 60px 0;
  }

  /* the television in the garden */
  .g-tv {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 8px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #000;
  }

  #garden .sec-head { margin-bottom: 20px; }

  .garden-inner { max-width: 36em; }

  .garden-inner p { margin-bottom: 14px; }

  .g-title { font-size: 15px; color: var(--ink); }

  .g-sign { font-size: 12px; color: var(--gray); }

  .tagline {
    font-size: clamp(17px, 2.4vw, 20px);
    max-width: 30em;
    margin-bottom: 22px;
  }

  .status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: var(--gray);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    width: fit-content;
  }

  .status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* ---------- sections ---------- */
  section { padding: 60px 0; border-top: 1px solid var(--line); }

  .sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
  }

  .sec-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gray);
  }

  
  .sec-label .ja {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gray);
    opacity: 0.7;
    margin-left: 10px;
    text-transform: none;
  }

  .sec-note {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--gray);
  }

  /* ---------- profile ---------- */
  .profile {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
  }

  /* to use a photo, swap the .avatar div for <img class="avatar" src="me.jpg" alt="YUME"> */
  .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--accent);
    object-fit: cover;
  }

  .profile-facts {
    list-style: none;
    margin-top: 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: var(--gray);
  }

  .profile-facts li { display: flex; gap: 10px; }
  .profile-facts .k { min-width: 90px; color: var(--ink); }

  /* ---------- news ---------- */
  .news { list-style: none; font-size: 15px; }

  .news li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
  }

  .news li:last-child { border-bottom: none; }

  .news time {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: var(--gray);
    padding-top: 3px;
  }

  .news .tag {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0 6px;
    margin-right: 8px;
    vertical-align: 2px;
  }

  /* ---------- now ---------- */
  .now-list { list-style: none; max-width: 36em; }

  .now-list li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
  }

  .now-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
  }

  /* ---------- little museum ---------- */
  .museum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .exhibit {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 18px 18px;
    background: var(--soft);
    transition: border-color 0.3s ease, transform 0.3s ease;
  }

  .exhibit:hover { border-color: var(--accent); transform: translateY(-2px); }

  .exhibit .emoji { font-size: 26px; display: block; margin-bottom: 12px; }

  .exhibit .what {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 6px;
  }

  /* the list inside each exhibit card */
  .exhibit ul { list-style: none; }

  .exhibit li {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.9;
    padding-left: 14px;
    position: relative;
  }

  .exhibit li::before {
    content: "-";
    position: absolute;
    left: 0;
  }

  /* ---------- links ---------- */
  .links { display: flex; flex-wrap: wrap; gap: 12px; }

  .links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }

  .links a:hover,
  .links a:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
  }

  .links a::after { content: "↗"; font-size: 12px; }
  .links a.no-arrow::after { content: none; }

  /* ---------- changelog ---------- */
  .changelog { list-style: none; font-size: 14px; }

  .changelog li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
  }

  .changelog li:last-child { border-bottom: none; }

  .changelog time {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: var(--gray);
  }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }

  .buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

  .btn88 {
    width: 88px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.02em;
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    background: var(--bg);
  }

  .btn88.blue { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .btn88.soft { background: var(--soft); }

  a.btn88:hover, a.btn88:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  .foot-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
  }

  a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  /* a soft arrival. no flashing, nothing sudden. */
  @media (prefers-reduced-motion: no-preference) {
    .hero > * {
      opacity: 0;
      transform: translateY(12px);
      animation: rise 0.9s ease forwards;
    }
    .hero > *:nth-child(2) { animation-delay: 0.1s; }
    .hero > *:nth-child(3) { animation-delay: 0.2s; }
    .hero > *:nth-child(4) { animation-delay: 0.3s; }
  }

  @keyframes rise { to { opacity: 1; transform: none; } }

  /* small screens */
  @media (max-width: 620px) {
    .museum { grid-template-columns: 1fr; }
    .changelog li, .news li { grid-template-columns: 1fr; gap: 0; }
    .profile { grid-template-columns: 72px 1fr; gap: 16px; }
    .avatar { width: 72px; height: 72px; font-size: 24px; }
    .nav-links a { padding: 4px 7px; }
  }

  /* ---------- the switch between night and day ---------- */
  .theme-toggle {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .theme-toggle:hover,
  .theme-toggle:focus-visible { color: var(--ink); border-color: var(--ink); }

  /* Some inks are the exact colour of the room they are written in.
     Turn the lights on and they have nowhere left to hide. */
  .lumen {
    margin: 22px 0 18px;
    max-width: 44em;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    line-height: 1.9;
    color: var(--bg);
    user-select: text;
    transition: color 0.8s ease;
  }

  :root[data-theme="light"] .lumen { color: var(--gray); }

  .lumen::before {
    content: "\2600  ";
    opacity: var(--lumen);
    transition: opacity 0.8s ease;
  }

  .about-more { margin-top: 14px; }
