:root {
  color-scheme: dark;
  --background: #101622;
  --surface: #172131;
  --surface-hover: #1c2b3e;
  --line: #304256;
  --ink: #f0f6ff;
  --muted: #b2c1d3;
  --accent: #b8e8fa;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --site-light-blue: #397ca866;
  --site-light-violet: #514d9661;
  --site-light-teal: #24717b45;
}
body, .quake-content {
  --site-background-lights:
    radial-gradient(ellipse min(66rem, 112vw) 40rem at 96% 3rem, var(--site-light-blue), transparent 76%),
    radial-gradient(ellipse min(57rem, 100vw) 34rem at 0% 46%, var(--site-light-violet), transparent 78%),
    radial-gradient(ellipse min(62rem, 100vw) 36rem at 100% 88%, var(--site-light-teal), transparent 76%),
    linear-gradient(145deg, #26354d24, transparent 40%, #25364c2e 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  background-image: var(--site-background-lights);
  color: var(--ink);
  font: 16px/1.65 "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
.frame { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; color: var(--background); background: var(--accent); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { background: #101622b8; border-bottom: 1px solid var(--line); }
.header-content, .brand, .site-header nav { display: flex; align-items: center; }
.header-content { min-height: 68px; justify-content: space-between; gap: 14px; }
.brand { gap: 10px; font: 600 14px var(--mono); }
.brand img { border: 1px solid #ffffff40; border-radius: 50%; object-fit: cover; }
.site-header nav { gap: clamp(16px, 4vw, 38px); color: var(--muted); font-size: 14px; font-weight: 650; }
.site-header nav a { padding-block: 12px; white-space: nowrap; }
.site-header nav .nav-pending { position: relative; }
.nav-pending span {
  position: absolute;
  inset: auto 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}
.site-header nav .nav-contact { min-height: 40px; padding: 5px 12px; }
.site-header nav .nav-contact:hover { color: #12202f; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 20% 40%, #273e55 0%, #18263a 40%, #111825 80%); }
.hero-content { min-height: 466px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5.5vw, 80px); align-items: center; padding-block: 38px; }
.portrait { position: relative; isolation: isolate; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.portrait::before, .portrait::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.portrait::before { inset: 1%; border: 1px solid #b8e8fa3b; background: radial-gradient(ellipse at center, #b8e8fa24, transparent 70%); }
.portrait::after { inset: 7%; border: 1px dashed #b8e8fa70; }
.portrait img { display: block; width: 74%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #d1f0fb; box-shadow: 0 0 42px #90d7f545, 0 14px 28px #0e172774; }
.intro { min-width: 0; container-type: inline-size; }
h1 { font-size: clamp(50px, 8.1vw, 108px); line-height: 1.1; letter-spacing: -.09em; font-weight: 850; }
.intro-copy { margin-top: 22px; color: var(--muted); font-size: clamp(11px, 2.1vw, 17px); font-size: min(17px, 4.25cqi); line-height: 1.9; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 8px 17px; border: 1px solid transparent; border-radius: 22px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.profile-social { gap: 7px; padding-inline: 13px; }
.primary { color: #12202f; background: var(--accent); }
.primary:hover { background: #ddf5ff; }
.secondary { color: var(--accent); border-color: #668396; }
.secondary:hover { background: #b8e8fa19; border-color: var(--accent); }

.section { padding-block: 40px 47px; scroll-margin-top: 12px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 21px; }
h2 { font-size: clamp(28px, 4vw, 39px); line-height: 1.2; letter-spacing: -.055em; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 650; }
.text-link span { margin-left: 4px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-status { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.project-status:empty { margin: 0; }
.project-group + .project-group { margin-top: 26px; }
.project-group h3 { margin-bottom: 10px; color: var(--accent); font-size: 18px; }
.project-empty { color: var(--muted); font-size: 14px; }
.update-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.update-toggle { margin-top: 14px; background: transparent; cursor: pointer; font-family: inherit; }
.update-toggle[hidden] { display: none; }
.update-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.update-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.update-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 13px 18px;
  border-radius: inherit;
  overflow-wrap: anywhere;
}
.update-link:hover { background: var(--surface-hover); }
.update-date { color: var(--muted); font: 600 13px var(--mono); white-space: nowrap; }
.update-tag {
  padding: 3px 10px;
  border-radius: 7px;
  color: var(--accent);
  background: #273a51;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.update-body { color: var(--muted); font-size: 14px; line-height: 1.55; }
.update-body strong { color: var(--ink); font-size: 15px; }
.update-arrow { color: var(--accent); font-size: 18px; }
@media (max-width: 640px) {
  .update-toggle { width: 100%; justify-content: center; }
  .update-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 6px;
    padding: 12px 14px;
  }
  .update-date { grid-area: 1 / 1; }
  .update-tag { grid-area: 1 / 2; justify-self: start; }
  .update-body { grid-area: 2 / 1 / 3 / 3; }
  .update-arrow { grid-area: 1 / 3 / 3 / 4; }
}
.project-grid { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.project { display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.project-link { display: block; border-radius: inherit; }
.project-link:hover { background: var(--surface-hover); }
.project-info { display: grid; grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 14px 18px; overflow-wrap: anywhere; }
.project-info .project-name { grid-area: 1 / 2; font-size: 17px; line-height: 1.45; }
.project-title-icon { display: inline-block; vertical-align: middle; margin-inline-end: .45em; }
.project-date { grid-column: 2; color: var(--muted); font-size: 13px; }
.project-info p { grid-column: 2; font-size: 14px; color: var(--muted); }
.project-info .project-type { grid-area: 1 / 1 / 3; justify-self: start; max-width: 100%; padding: 4px 10px; border-radius: 7px; color: var(--accent); background: #273a51; font: 650 12px/1.4 var(--mono); }
.project-arrow { grid-area: 1 / 3 / 3; color: var(--accent); font-size: 19px; }
.project-site, .project-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 18px; border-top: 1px solid var(--line); }
.project-site strong, .download-caption strong { display: block; color: var(--ink); font-size: 14px; }
.release-version { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.project-downloads ul { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.project-downloads li { min-width: 0; }
.project-site a, .project-downloads a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #668396; border-radius: 8px; color: var(--accent); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.project-site a:hover, .project-downloads a:hover { background: #b8e8fa19; border-color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.site-header nav .nav-pending[aria-current="page"] { text-underline-offset: 2px; }
.project-page main { min-height: min(68vh, 620px); padding-block: clamp(32px, 6vw, 80px); }
.project-page-heading { border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-bottom: 20px; }
.project-page-heading h1 { font-size: clamp(28px, 5.5vw, 52px); letter-spacing: -.055em; }
.project-page-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; }
.active-project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.project-detail-frame { max-width: 760px; }
.project-detail {
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.project-detail-frame h1 { overflow-wrap: anywhere; }
.project-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.project-detail-meta span { padding: 4px 10px; border-radius: 7px; background: #273a51; color: var(--accent); font-size: 13px; }
.project-detail-description { margin-top: 14px; white-space: pre-line; }
.daybook-view {
  --site-light-blue: #387eab73;
  --site-light-violet: #344f9161;
}

@media (forced-colors: active) {
  body, .quake-content { --site-background-lights: none; }
}
.daybook-page { max-width: 1120px; }
.daybook-page > .project-page-heading { margin-bottom: 16px; }
.daybook-section-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.daybook-page > .daybook-section-nav { margin-bottom: 20px; }
.daybook-section-nav a {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}
.daybook-section-nav a:hover { border-color: var(--accent); background: var(--surface-hover); }
.daybook-sync .daybook-sync-version {
  padding: 10px 14px;
  border-inline-start: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #263c50;
  color: var(--ink);
}
.daybook-sync-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 10px;
  margin-block: 18px;
}
.daybook-sync-data > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); }
.daybook-sync-data dt { font-weight: 700; }
.daybook-sync-data dd { margin: 6px 0 0; color: var(--muted); }
.daybook-policy { max-width: 820px; overflow-wrap: anywhere; }
.daybook-policy-intro { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.daybook-policy h1 { font-size: clamp(27px, 5.8vw, 44px); letter-spacing: -.045em; }
.daybook-policy .date { margin-block: 10px; color: var(--muted); font-size: 14px; }
.daybook-policy-toc { margin-block: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.daybook-policy h2 { font-size: clamp(18px, 3vw, 23px); letter-spacing: normal; line-height: 1.45; }
.daybook-policy-toc ol { columns: 2 235px; column-gap: 28px; padding-inline-start: 1.35rem; margin: 10px 0 0; }
.daybook-policy-toc li { break-inside: avoid; padding-block: 3px; color: var(--muted); }
.daybook-policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.daybook-policy-body h2 { margin-block: 32px 10px; scroll-margin-top: 16px; }
.daybook-policy-body h2:target { color: var(--accent); }
.daybook-policy-body p + p { margin-top: 10px; }
.daybook-policy-body ul { padding-inline-start: 1.4rem; }
.daybook-policy-body dt { font-weight: 700; }
.daybook-policy-body dd { margin: 4px 0 14px; color: var(--muted); }
.daybook-showcase { padding: 0; border: 0; background: transparent; }
.daybook-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 80% 0%, #28445e, var(--surface) 72%);
}
.daybook-hero::before, .daybook-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.daybook-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, #b8e8fa14 1px, transparent 1px),
    linear-gradient(#b8e8fa14 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(230deg, #000 5%, transparent 70%);
}
.daybook-hero::after {
  inset: -18% -5%;
  background: radial-gradient(ellipse at center, #7ccce146, #4a92bc19 38%, transparent 68%);
  opacity: .56;
  transform: translate(24%, -22%) rotate(-14deg);
}
.daybook-copy h2 { margin-top: 18px; }
.daybook-copy h2 span { display: inline-block; }
.daybook-copy p { margin-top: 10px; color: var(--muted); }
.daybook-actions { margin-block: 20px 12px; }
.daybook-platform-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.daybook-actions .button { white-space: normal; }
.daybook-actions p, .daybook-note, .daybook-figure figcaption { color: var(--muted); font-size: 13px; }
.daybook-preview { align-self: center; min-width: 0; }
.daybook-figure { margin: 0; }
.daybook-figure figcaption { margin-top: 6px; }
.daybook-shot { display: block; border: 1px solid var(--line); border-radius: 10px; }
.daybook-shot:hover { border-color: var(--accent); }
.daybook-shot img, .daybook-mini img { display: block; width: 100%; height: auto; border-radius: inherit; }
.daybook-light, .daybook-mini img.daybook-light, .daybook-theme { display: none; }
.daybook-mini { margin-bottom: 12px; }
.daybook-agenda { max-width: 328px; }
.daybook-taskbar-shot { max-width: 531px; }
.daybook-section { margin-top: clamp(28px, 5vw, 52px); }
.daybook-section > h2 { margin-bottom: 16px; }
.daybook-features, .daybook-setup { display: grid; gap: 12px; }
.daybook-features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.daybook-setup { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); scroll-margin-top: 12px; }
.daybook-feature {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.daybook-feature time { color: var(--accent); font: 650 13px var(--mono); }
.daybook-feature h3 { margin-top: 6px; }
.daybook-feature > p { margin-block: 8px 14px; color: var(--muted); }
.daybook-section > .daybook-note { margin-top: 12px; }
.daybook-feature-details { display: grid; gap: 16px; margin-top: 20px; }
.daybook-topic h3, .daybook-release-feature h3 { margin-top: 0; }
.daybook-topic ul, .daybook-release-feature ul { padding-inline-start: 1.35rem; }
.daybook-topic li + li, .daybook-release-feature li + li { margin-top: 6px; }
.daybook-topic .daybook-specs { margin-top: 12px; }
.daybook-topic [id], .daybook-release-feature h3 { scroll-margin-top: 80px; }
#daybook-latest-notice-link[hidden], .daybook-versions-more[hidden] { display: none; }
.daybook-release-notice-content { display: grid; gap: 16px; }
.daybook-notice-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  background: radial-gradient(ellipse at 100% 0%, #28445e, var(--surface) 70%);
}
.daybook-notice-summary > p { flex: 1 1 24rem; margin: 0; }
.daybook-release-page .daybook-hero { grid-template-columns: minmax(0, 1fr); }
.daybook-release-page .daybook-hero .project-detail-meta { margin-top: 18px; }
.daybook-release-page h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 5vw, 48px); }
.daybook-release-page h1 img { width: clamp(35px, 7vw, 64px); height: auto; }
.daybook-release-page .daybook-section-nav { margin-block: 20px; }
.daybook-release-page h2 { margin: 0; scroll-margin-top: 80px; font-size: clamp(19px, 3vw, 26px); }
.daybook-versions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.daybook-versions > .daybook-feature:not([hidden]) { display: flex; flex-direction: column; }
.daybook-versions h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 24px; }
.daybook-versions h3 span { padding: 3px 9px; border-radius: 7px; color: var(--accent); background: #273a51; font-size: 12px; }
.daybook-versions .daybook-feature > p { margin-bottom: 0; }
.daybook-versions dl { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-block: auto 14px; padding-top: 14px; color: var(--muted); font-size: 14px; }
.daybook-versions dd { margin: 0; color: var(--ink); }
.daybook-versions .button { align-self: flex-start; }
.daybook-versions-more { margin-top: 14px; background: transparent; cursor: pointer; }
.daybook-section > .daybook-note code { overflow-wrap: anywhere; }
.daybook-feature ol { padding-inline-start: 1.3rem; }
.daybook-feature li + li { margin-top: 6px; }
.daybook-steps li::marker { color: var(--accent); font-weight: 700; }
.daybook-steps li + li { margin-top: 12px; }
.daybook-steps p { margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.daybook-steps a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.daybook-specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin-bottom: 0; }
.daybook-specs dt { font-weight: 650; }
.daybook-specs dd { margin: 0; color: var(--muted); }
@media (max-width: 730px) {
  .daybook-hero { grid-template-columns: minmax(0, 1fr); }
}
@supports selector(:has(*)) {
  .daybook-theme {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
  }
  .daybook-theme legend { margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 13px; }
  .daybook-theme label { position: relative; cursor: pointer; }
  .daybook-theme input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .daybook-theme span {
    display: block;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    font-size: 13px;
  }
  .daybook-theme input:checked + span { border-color: var(--accent); color: var(--background); background: var(--accent); }
  .daybook-theme input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
  .daybook-showcase:has(#daybook-light:checked) .daybook-dark { display: none; }
  .daybook-showcase:has(#daybook-light:checked) .daybook-light { display: block; }
}
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }
.site-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
}
.daybook-player {
  overflow: hidden;
  border: 1px solid #496382;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 40px #070e1a66;
}
.daybook-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: clamp(12px, 2.5vw, 20px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--surface), #223b56);
}
.daybook-player-bar h2 {
  font-size: clamp(1.15rem, 3.3vw, 1.6rem);
  letter-spacing: normal;
}
.daybook-audio-button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 24px;
  background: var(--accent);
  color: var(--background);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.daybook-audio-button[data-sound="on"] {
  background: #101622;
  color: var(--accent);
}
.daybook-audio-button:hover {
  filter: brightness(1.12);
}
.daybook-audio-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.daybook-player .site-video {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.button-tooltip {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  max-width: min(300px, calc(100% - 20px));
  padding: 7px 11px;
  border: 1px solid #668396;
  border-radius: 8px;
  background: #203148;
  color: var(--ink);
  box-shadow: 0 6px 18px #070c1566;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .frame { width: calc(100% - 48px); }
  .hero-content { min-height: 370px; grid-template-columns: .8fr 1.2fr; gap: 24px; }
}
@media (max-width: 570px) {
  .frame { width: calc(100% - 36px); }
  .header-content { min-height: 60px; }
  .site-header nav { gap: 10px; font-size: 13px; }
  .site-header nav .nav-contact { padding-inline: 8px; font-size: inherit; }
  .hero { background: radial-gradient(ellipse at 50% 16%, #283f56 0%, #18263a 43%, #111825 82%); }
  .hero-content { min-height: auto; grid-template-columns: 1fr; gap: 14px; padding-block: 25px 39px; text-align: center; }
  .portrait { width: min(68vw, 254px); }
  h1 { font-size: clamp(48px, 12vw, 64px); }
  .intro-copy { margin-top: 14px; }
  .actions { justify-content: center; margin-top: 19px; }
  .section { padding-block: 28px 35px; }
  .section-head { margin-bottom: 16px; }
  .project-info { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .project-info .project-type { grid-area: 1 / 1; }
  .project-info .project-name { grid-area: 2 / 1; }
  .project-info p, .project-date { grid-column: 1; }
  .project-arrow { grid-area: 1 / 2 / 4; }
}
@media (max-width: 480px) {
  .header-content { flex-wrap: wrap; gap: 4px; padding-block: 10px; }
  .site-header nav { width: 100%; flex-wrap: wrap; justify-content: space-between; row-gap: 4px; }
}
@media (max-width: 350px) {
  .site-header nav { column-gap: 5px; font-size: 12px; }
  .site-header nav .nav-contact { padding-inline: 5px; }
}
@media (max-width: 570px) {
  :is(.project-page, .quake-view) .frame { width: calc(100% - 32px); }
  :is(.project-page, .quake-view) .header-content {
    display: grid;
    justify-content: stretch;
    gap: 6px;
    padding-block: 12px 8px;
  }
  :is(.project-page, .quake-view) .site-header nav {
    justify-content: space-between;
    gap: 4px 8px;
    font-size: 14px;
  }
  :is(.project-page, .quake-view) .site-header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-block: 6px;
  }
  :is(.project-page, .quake-view) .site-header nav .nav-pending {
    flex-direction: column;
    line-height: 1.25;
  }
  :is(.project-page, .quake-view) .nav-pending span { position: static; font-size: .75rem; }

  .project-page main { padding-block: 24px 36px; }
  .project-page-heading { margin-bottom: 16px; padding-bottom: 12px; }
  .project-page-heading h1 { line-height: 1.25; }
  .active-project-grid { gap: 12px; }
  .active-project-grid .project-info { padding: 14px; }
  .active-project-grid .project-arrow { align-self: center; grid-row: 1 / span 4; }

  .daybook-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daybook-section-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .daybook-hero { padding: 14px; }
  .daybook-copy h2 { margin-top: 14px; font-size: clamp(1.5rem, 6.15vw, 1.875rem); }
  .daybook-copy h2 span { display: inline; }
  .daybook-actions .button, .daybook-versions .button {
    width: 100%;
    justify-content: center;
    gap: 8px;
    white-space: normal;
    text-align: center;
  }
  .daybook-copy .text-link, .daybook-theme span {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .daybook-copy .text-link span { margin-left: 4px; }
  .daybook-theme span { font-size: .875rem; }
  .daybook-versions-more { width: 100%; justify-content: center; }
  .daybook-specs { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .daybook-specs dd { margin-bottom: 10px; overflow-wrap: anywhere; }
  .daybook-specs dd:last-child { margin-bottom: 0; }
  .daybook-policy-toc { padding: 12px 14px; }
  .daybook-policy-toc ol { columns: auto; }
  .daybook-policy-toc li { padding: 0; }
  .daybook-policy-toc a { display: block; min-height: 44px; padding-block: 8px; }
}
@media (max-width: 360px) {
  :is(.project-page, .quake-view) .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Use the workspace layout when the viewport has room and a fine pointer is available. */
@media (min-width: 1024px) and (any-hover: hover) and (any-pointer: fine) {
  :root {
    --desktop-gutter: clamp(24px, 3vw, 72px);
    --desktop-width: min(1800px, calc(100% - 2 * var(--desktop-gutter)));
    --header-height: 68px;
  }

  html { scroll-padding-top: calc(var(--header-height) + 20px); }
  .site-header { position: sticky; top: 0; z-index: 1; }
  .site-header .frame, .site-footer .frame { width: var(--desktop-width); }

  .sections.frame { width: var(--desktop-width); }
  .works { padding-block: 40px 34px; }
  .section { scroll-margin-top: 0; }
  .section-head { margin-bottom: 20px; }

  #project-groups:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 28px);
    align-items: start;
  }

  .project-group {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #121b29;
    padding: clamp(12px, 1.1vw, 20px);
  }

  .project-group + .project-group { margin-top: 0; }
  .project-group h3 { margin-bottom: 14px; }
  .project-grid { gap: 10px; }
  .project-info {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
    row-gap: 4px;
    padding: 14px;
  }

  .project-info .project-name { grid-area: 1 / 1; }
  .project-info .project-type { grid-area: 1 / 2; }
  .project-info p, .project-date { grid-column: 1 / 3; }
  .project-arrow { grid-area: 1 / 3; line-height: 1; }
  .project-site, .project-downloads { padding-inline: 14px; }

}
@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-out: cubic-bezier(.2, .75, .24, 1);
    --interaction-duration: 320ms;
  }

  .daybook-hero::after { animation: daybook-light-drift 8.5s ease-in-out infinite alternate; }
  .daybook-policy-intro { animation: content-in 700ms var(--ease-out) both; }
  .daybook-policy-toc { animation: card-in 850ms var(--ease-out) 120ms both; }
  .daybook-policy-toc:focus-within { animation: none; }
  .daybook-policy-body h2:target { animation: daybook-heading-highlight 1.55s ease-out; }
  .daybook-section-nav a {
    transition: background-color 240ms ease, border-color 240ms ease,
      translate 260ms var(--ease-out), box-shadow 260ms ease;
  }
  .daybook-feature {
    transition: border-color var(--interaction-duration), box-shadow var(--interaction-duration),
      translate var(--interaction-duration) var(--ease-out);
  }
  .daybook-versions .daybook-feature:first-child h3 span {
    animation: tag-pulse 2.8s ease-in-out infinite;
  }
  .daybook-hero::before { animation: daybook-grid-in 1.8s var(--ease-out) both; }
  .daybook-copy { animation: content-in 930ms var(--ease-out) 100ms both; }
  .daybook-preview { animation: card-in 1.15s var(--ease-out) 240ms both; }
  .daybook-copy:focus-within, .daybook-preview:focus-within { animation: none; }
  .daybook-shot, .daybook-theme span {
    transition: border-color 240ms ease, background-color 240ms ease, box-shadow 300ms ease,
      translate 300ms var(--ease-out);
  }
  .daybook-shot img, .daybook-mini img { animation: daybook-screen-in 560ms var(--ease-out) both; }
  .daybook-preview .daybook-shot { position: relative; overflow: clip; }
  .daybook-preview .daybook-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(112deg, transparent 32%, #e1f5ff35 48%, transparent 65%) 100% 0 / 240% 100%;
    pointer-events: none;
    animation: button-sheen 900ms ease-out both;
  }
  :is(#daybook-start, #daybook-whats-new, #daybook-latest-notice, #daybook-versions):target h2 {
    animation: daybook-heading-highlight 1.55s ease-out 250ms;
  }
  @media (hover: hover) {
    .daybook-shot:hover { translate: 0 -3px; box-shadow: 0 8px 24px #071221a6; }
    .daybook-theme label:hover span { border-color: var(--accent); }
    .daybook-section-nav a:hover { translate: 0 -2px; box-shadow: 0 6px 16px #07122170; }
    .daybook-feature:hover {
      translate: 0 -2px;
      border-color: #4f6b88;
      box-shadow: 0 10px 24px #070c1566;
    }
  }
  @supports (animation-timeline: view()) and (animation-range: entry 5% entry 85%) {
    .daybook-feature {
      animation: card-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 85%;
    }
    .daybook-feature:focus-within { animation: none; }
    .daybook-steps li {
      animation: daybook-step-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 92%;
    }
    .daybook-steps li:focus-within { animation: none; }
    .daybook-section > h2::after {
      content: "";
      display: block;
      width: 48px;
      height: 2px;
      margin-top: 10px;
      border-radius: 2px;
      background: var(--accent);
      transform-origin: left;
      animation: progress-fill linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }

  .button-tooltip:not([hidden]) {
    --tooltip-offset: 4px;
    animation: tooltip-in 220ms var(--ease-out) both;
  }
  .button-tooltip[data-placement="below"] { --tooltip-offset: -4px; }

  .header-content { animation: header-in 950ms var(--ease-out) both; }
  .hero { position: relative; isolation: isolate; }
  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12%;
    background: radial-gradient(ellipse at 40% 50%, #80c6ef42, transparent 62%);
    pointer-events: none;
    animation: hero-light 10s ease-in-out infinite alternate;
  }
  .portrait { animation: portrait-in 1.45s var(--ease-out) both; }
  .portrait img { animation: portrait-float 5.5s ease-in-out 1.45s infinite; }
  .portrait::before {
    border-color: #b8e8fa40 #d8f5ffad #b8e8fa40 #83b9e26b;
    animation: orbit-turn 12s linear infinite, orbit-glow 4.6s ease-in-out infinite;
  }
  @supports (mask-image: radial-gradient(black, transparent)) {
    .portrait::before {
      border: 0;
      background: conic-gradient(from -55deg, #b8e8fa3b, #91cfff, #e3f9ff 24%,
        #b8e8fa3b 29% 62%, #829de8af 73%, #b8e8fa3b 79%);
      mask-image: radial-gradient(circle closest-side, transparent calc(100% - 3px),
        black calc(100% - 2px) calc(100% - 1px), transparent);
    }
  }
  .portrait::after {
    border-color: #b8e8fa70 #b8e8fa70 #b8e8fada #a0b5ec80;
    animation: orbit-turn 22s linear infinite reverse;
  }

  .intro h1 { animation: content-in 1.25s var(--ease-out) 140ms both, title-glow 6s ease-in-out 1.4s infinite; }
  .intro-copy { animation: content-in 1.3s var(--ease-out) 390ms both; }
  .nav-pending span { animation: pending-breathe 3.4s ease-in-out infinite; }
  .brand { transition: color var(--interaction-duration); }
  .actions .button { animation: content-in 1.15s var(--ease-out) 540ms both; }
  .actions .button:nth-child(2) { animation-delay: 660ms; }
  .actions .button:nth-child(3) { animation-delay: 780ms; }
  .actions .button:nth-child(4) { animation-delay: 900ms; }
  .project-page-heading { animation: content-in 1.35s var(--ease-out) 140ms both; }
  .project-page-empty { animation: content-in 1.2s var(--ease-out) both; }

  .button, .project-site a, .project-downloads a {
    position: relative;
    transition: background-color var(--interaction-duration), border-color var(--interaction-duration),
      box-shadow var(--interaction-duration), translate var(--interaction-duration) var(--ease-out),
      scale var(--interaction-duration) var(--ease-out);
  }
  .update-item {
    animation: update-in 760ms var(--ease-out) both;
    transition: border-color var(--interaction-duration), box-shadow var(--interaction-duration),
      translate var(--interaction-duration) var(--ease-out);
  }
  .update-item:nth-child(2) { animation-delay: 120ms; }
  .update-item:nth-child(3) { animation-delay: 240ms; }
  .update-item:nth-child(4) { animation-delay: 360ms; }
  .update-link { position: relative; transition: background-color var(--interaction-duration); }
  .update-link::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 420ms var(--ease-out);
  }
  .update-tag {
    transition: color 300ms, background-color 300ms, scale 300ms var(--ease-out), box-shadow 300ms ease;
  }
  .update-item:first-child .update-tag { animation: tag-pulse 2.8s ease-in-out infinite; }
  .update-arrow {
    display: inline-block;
    transition: translate var(--interaction-duration) var(--ease-out);
  }
  .update-link:focus-visible::before { transform: scaleY(1); }
  .update-link:focus-visible .update-tag { background: var(--accent); color: var(--background); scale: 1.06; }
  .update-link:focus-visible .update-arrow { translate: 5px 0; }
  .project-group { transition: border-color 360ms ease, box-shadow 360ms ease; }
  .project {
    animation: card-in 1.1s var(--ease-out) both;
    transition: border-color var(--interaction-duration), box-shadow var(--interaction-duration),
      translate var(--interaction-duration) var(--ease-out);
  }
  .project-title-icon {
    transition: scale 340ms var(--ease-out), rotate 340ms var(--ease-out);
  }
  .project-link { position: relative; transition: background-color var(--interaction-duration); }
  .site-header nav a { transition: color var(--interaction-duration); }
  .site-header nav .nav-contact {
    transition: background-color var(--interaction-duration), box-shadow var(--interaction-duration),
      translate var(--interaction-duration) var(--ease-out), scale var(--interaction-duration) var(--ease-out);
  }
  :is(.button, .text-link, .project-site a, .project-downloads a, .site-footer a) span[aria-hidden],
  .project-arrow {
    display: inline-block;
    transition: translate var(--interaction-duration) var(--ease-out);
  }

  .site-header nav a:not(.nav-contact), .site-footer a { position: relative; }
  :is(.site-header nav a:not(.nav-contact, .nav-pending, [aria-current]), .site-footer a)::after {
    content: "";
    position: absolute;
    inset: auto 0 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 460ms var(--ease-out);
  }
  .site-footer a::after { bottom: -3px; }
  .brand img, .portrait img {
    transition: scale 600ms var(--ease-out), box-shadow 600ms ease;
  }
  .project-link::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 460ms var(--ease-out);
  }
  .project-info .project-type {
    transition: color 320ms, background-color 320ms, scale 320ms var(--ease-out);
  }
  :is(.button, .project-site a, .project-downloads a)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(108deg, transparent 35%, #ffffff4d 50%, transparent 65%) 100% 0 / 230% 100%;
    opacity: 0;
    pointer-events: none;
  }
  :is(.button, .project-site a, .project-downloads a):focus-visible::after {
    animation: button-sheen 700ms ease-out;
  }
  .project-link:focus-visible::before { transform: scaleY(1); }
  .project-link:focus-visible .project-type { background: var(--accent); color: var(--background); scale: 1.06; }
  :is(.site-header nav a:not(.nav-contact, .nav-pending, [aria-current]), .site-footer a):focus-visible::after {
    transform: scaleX(1);
  }
  .brand:focus-visible img { scale: 1.09; box-shadow: 0 0 16px #b8e8fa66; }

  @media (hover: hover) {
    :is(.button, .project-site a, .project-downloads a):hover {
      translate: 0 -3px;
      box-shadow: 0 5px 20px #82d9f32b;
    }
    :is(.button, .project-site a, .project-downloads a):hover::after {
      animation: button-sheen 700ms ease-out;
    }
    .update-item:hover {
      translate: 0 -2px;
      border-color: #668396;
      box-shadow: 0 10px 24px #070c1570;
    }
    .update-link:hover::before { transform: scaleY(1); }
    .update-link:hover .update-tag { background: var(--accent); color: var(--background); scale: 1.06; }
    .update-link:hover .update-arrow { translate: 5px 0; }
    .project-group:hover { border-color: #46617d; box-shadow: 0 12px 28px #060b1455; }
    .project:hover { translate: 0 -3px; border-color: #668396; box-shadow: 0 12px 28px #070c1570; }
    .project-link:hover .project-title-icon { scale: 1.1; rotate: -4deg; }
    :is(.profile-social, .text-link, .project-site a):hover span[aria-hidden],
    .project-link:hover .project-arrow { translate: 4px -4px; }
    :is(.actions .primary, .project-downloads a):hover span[aria-hidden] { translate: 0 4px; }
    .site-footer a:hover span[aria-hidden] { translate: 0 -4px; }
    :is(.site-header nav a:not(.nav-contact, .nav-pending, [aria-current]), .site-footer a):hover::after {
      transform: scaleX(1);
    }
    .brand:hover { color: var(--accent); }
    .brand:hover img { scale: 1.09; box-shadow: 0 0 16px #b8e8fa66; }
    .portrait:hover img {
      scale: 1.045;
      box-shadow: 0 0 68px #90d7f57a, 0 14px 28px #0e172774;
    }
    .project-link:hover::before { transform: scaleY(1); }
    .project-link:hover .project-type { background: var(--accent); color: var(--background); scale: 1.06; }
  }
  :is(.button, .project-site a, .project-downloads a):active {
    translate: 0 2px;
    scale: .97;
    transition-duration: 90ms;
  }
  :is(#updates, #ongoing, #works):target .section-head {
    animation: section-highlight 1.65s ease-out 300ms;
  }
  body:target .brand img { animation: brand-highlight 1.5s ease-out 300ms; }

  @supports (animation-timeline: scroll(root block)) {
    body::before {
      content: "";
      position: fixed;
      z-index: 3;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, #589ad3, var(--accent));
      pointer-events: none;
      transform: scaleX(0);
      transform-origin: left;
      animation: progress-fill linear both;
      animation-timeline: scroll(root block);
    }
  }
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 24%) {
    .section-head h2, .project-group h3 {
      animation: content-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
    :is(.section-head h2, .project-group h3)::after {
      content: "";
      display: block;
      width: 34px;
      height: 2px;
      margin-top: 6px;
      border-radius: 2px;
      background: var(--accent);
      transform-origin: left;
      animation: progress-fill linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .update-item {
      animation: update-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
    .project {
      animation: card-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
  .header-content:focus-within, .actions:focus-within .button,
  .update-item:focus-within, .project:focus-within { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root) { animation: page-exit 150ms ease-in both; }
  ::view-transition-new(root) { animation: page-enter 260ms var(--ease-out) both; }

  .motion-entered { animation: site-arrive 540ms var(--ease-out); }
  .motion-entered:focus-within { animation-duration: 1ms; }

  .project-page .active-project-grid .project:not(:focus-within) {
    animation: site-arrive 520ms var(--ease-out) var(--project-delay, 0ms) both;
  }
  .active-project-grid .project:nth-child(2n) { --project-delay: 90ms; }

  .daybook-section-nav a:not([hidden]) {
    animation: site-arrive 400ms var(--ease-out) both;
    animation-delay: var(--nav-delay, 0ms);
  }
  .daybook-section-nav a:nth-child(2n) { --nav-delay: 45ms; }
  .daybook-section-nav a:nth-child(n + 5) { --nav-delay: 95ms; }
  .daybook-section-nav a:focus-visible { animation: none; }
  .daybook-section-nav a:active, .daybook-theme label:active span {
    translate: 0 1px;
    transition-duration: 85ms;
  }

  .footer-content > :first-child { transition: color 220ms ease; }
  .footer-content:focus-within > :first-child { color: var(--accent); }
  @media (hover: hover) {
    .footer-content:hover > :first-child { color: var(--accent); }
  }
}

@keyframes site-arrive {
  from { opacity: .78; transform: translateY(11px); }
  to { opacity: 1; transform: none; }
}

@keyframes page-exit { to { opacity: 0; } }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes header-in {
  from { opacity: .75; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-light {
  0% { opacity: .28; transform: translate(-10%, -4%) scale(.96); }
  50% { opacity: .82; transform: translate(4%, 4%) scale(1.05); }
  100% { opacity: .38; transform: translate(12%, -3%) scale(1.02); }
}

@keyframes portrait-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 28px #9adcf738; }
}

@keyframes pending-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #b8e8fa00; }
  50% { box-shadow: 0 0 0 4px #b8e8fa2e; }
}

@keyframes update-in {
  from { opacity: .45; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes portrait-in {
  from { opacity: .12; transform: translateY(22px) scale(.89); }
  to { opacity: 1; transform: none; }
}

@keyframes orbit-turn {
  to { transform: rotate(1turn); }
}

@keyframes orbit-glow {
  0%, 100% { opacity: .66; }
  50% { opacity: 1; }
}

@keyframes tooltip-in {
  from { opacity: 0; translate: 0 var(--tooltip-offset); }
  to { opacity: 1; translate: none; }
}

@keyframes daybook-light-drift {
  from { opacity: .2; transform: translate(-23%, 15%) rotate(-24deg); }
  55% { opacity: 1; }
  to { opacity: .56; transform: translate(24%, -22%) rotate(-14deg); }
}

@keyframes daybook-grid-in {
  from { opacity: 0; clip-path: inset(0 0 75% 70%); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes daybook-step-in {
  from { opacity: .68; translate: -6px 0; }
  to { opacity: 1; translate: none; }
}

@keyframes daybook-screen-in {
  from { opacity: .48; transform: scale(.989); }
  to { opacity: 1; transform: none; }
}

@keyframes daybook-heading-highlight {
  30% { color: var(--accent); text-shadow: 0 0 20px #a7e6f768; }
}

@keyframes button-sheen {
  0% { background-position: 100% 0; opacity: 0; }
  24% { opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}

@keyframes content-in {
  from { opacity: .62; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes card-in {
  from { opacity: .62; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes section-highlight {
  0% { box-shadow: 0 0 0 8px transparent; }
  22% { box-shadow: 0 0 0 8px #74c7ef29; }
  100% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes brand-highlight {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  24% { box-shadow: 0 0 0 5px #b8e8fa59; }
  62% { box-shadow: 0 0 0 11px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
