:root {
  --ink: #182a2d;
  --ink-soft: #536568;
  --line: rgba(24, 42, 45, 0.18);
  --line-strong: rgba(24, 42, 45, 0.34);
  --mist: #edf3f1;
  --paper: #f8faf8;
  --aqua: #d9e9e6;
  --aqua-deep: #8db8b5;
  --lavender: #e4e4ee;
  --night: #183737;
  --night-soft: #285252;
  --yellow: #e5c966;
  --coral: #b85f49;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "STSong", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -100px;
  left: 12px;
  padding: 10px 14px;
  background: var(--night);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 10px;
  opacity: 1;
  pointer-events: auto;
}

body.panel-open,
body.menu-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--night-soft);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-width,
.header-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(24, 42, 45, 0.12);
  background: rgba(248, 250, 248, 0.88);
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 248, 0.96);
  box-shadow: 0 8px 24px rgba(24, 42, 45, 0.06);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--night-soft);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  border: 0;
  background: transparent;
}

.menu-button svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 82svh;
  align-items: stretch;
  overflow: hidden;
  background: var(--aqua);
}

.hero-art,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.72) brightness(1.02) contrast(0.92) hue-rotate(5deg);
  transform: scale(1.02);
  animation: settle-art 1800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-wash {
  background: linear-gradient(90deg, rgba(230, 242, 239, 0.48) 0%, rgba(230, 242, 239, 0.22) 56%, rgba(230, 242, 239, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 82svh;
  grid-template-columns: minmax(0, 1fr) 350px;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 44px;
  padding-top: 150px;
  padding-bottom: 46px;
}

.hero-copy {
  max-width: 690px;
  padding-bottom: 58px;
}

.hero-copy h1 {
  margin: 0;
  color: #173033;
  font-family: var(--serif);
  font-size: 6.25rem;
  font-weight: 700;
  line-height: 0.98;
  text-shadow: 0 2px 20px rgba(242, 249, 247, 0.78);
}

.hero-intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: #223d40;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.9;
  text-shadow: 0 1px 12px rgba(239, 247, 245, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.primary-action,
.text-action,
.read-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.primary-action {
  border: 1px solid var(--night);
  border-radius: 3px;
  padding: 12px 18px;
  background: var(--night);
  color: var(--white);
  transition: background-color 180ms ease, transform 180ms ease;
}

.primary-action:hover {
  background: var(--night-soft);
  transform: translateY(-2px);
}

.text-action {
  min-height: 44px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

.primary-action svg,
.text-action svg,
.read-action svg {
  width: 17px;
  height: 17px;
}

.latest-note {
  position: relative;
  display: grid;
  width: 100%;
  cursor: pointer;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-self: end;
  border: 1px solid rgba(24, 42, 45, 0.38);
  border-radius: 3px;
  padding: 22px;
  background: rgba(240, 247, 245, 0.82);
  text-align: left;
  backdrop-filter: blur(8px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.latest-note:hover {
  background: rgba(250, 252, 251, 0.95);
  transform: translateY(-3px);
}

.latest-label,
.latest-date,
.section-index,
.aside-title,
.tool-number,
.tool-state,
.fiction-copy small,
.game-stage-top,
.game-stage-bottom,
.panel-kicker {
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.latest-label {
  color: var(--ink-soft);
}

.latest-title {
  grid-column: 1;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.latest-date {
  grid-column: 1;
  color: var(--ink-soft);
}

.latest-note > svg {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 18px;
  height: 18px;
  align-self: center;
}

.art-caption {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(24, 42, 45, 0.72);
  font-size: 0.62rem;
  font-weight: 650;
}

.page-section {
  padding: 118px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  align-items: end;
  gap: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-strong);
}

.section-index {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.section-header h2,
.arcade-copy h2,
.about-layout h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 650;
  line-height: 1.08;
}

.section-header > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.75;
}

.blog-section {
  background: var(--paper);
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.archive-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.archive-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 9px 0;
  color: var(--ink);
  outline: none;
  background: transparent;
}

.archive-search input:focus {
  border-color: var(--teal);
}

.archive-filters {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.archive-filter {
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
}

.archive-filter:hover,
.archive-filter.is-active {
  border-color: var(--night);
  color: var(--white);
  background: var(--night);
}

.archive-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 70px;
  margin-top: 58px;
}

.blog-aside {
  grid-column: 2;
  grid-row: 1;
}

.content-status {
  grid-column: 1;
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.post-list {
  min-width: 0;
}

.post-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: center;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.post-feature-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--aqua);
}

.post-feature-art::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  content: "";
  pointer-events: none;
}

.post-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) brightness(1.04) hue-rotate(8deg);
  transition: transform 700ms ease;
}

.post-feature:hover .post-feature-art img {
  transform: scale(1.035);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-meta span {
  color: var(--coral);
}

.post-feature-copy h3 {
  margin: 22px 0 16px;
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 650;
  line-height: 1.2;
}

.post-feature-copy > p,
.post-row-copy p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.post-feature-copy > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
}

.read-action {
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0;
  background: transparent;
  margin-top: 28px;
}

.post-row {
  display: grid;
  min-height: 160px;
  grid-template-columns: 150px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.post-row-copy h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 650;
}

.post-row-copy p {
  margin: 0;
  font-size: 0.89rem;
}

.icon-action {
  display: grid;
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-action:hover {
  background: var(--night);
  color: var(--white);
  transform: rotate(4deg);
}

.icon-action svg {
  width: 16px;
  height: 16px;
}

.blog-aside {
  border-top: 1px solid var(--line-strong);
}

.aside-block {
  padding: 25px 0 28px;
  border-bottom: 1px solid var(--line);
}

.aside-title {
  display: block;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.03rem;
}

.quote-block svg {
  width: 20px;
  height: 20px;
  color: var(--aqua-deep);
}

.quote-block blockquote {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.8;
}

.archive-block p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.9rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e8176;
  box-shadow: 0 0 0 4px rgba(78, 129, 118, 0.12);
}

.archive-block a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.archive-block a svg {
  width: 14px;
  height: 14px;
}

.tools-section {
  background: var(--aqua);
}

.tools-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 92px;
}

.tools-heading {
  display: block;
  border: 0;
  padding: 0;
}

.tools-heading > p {
  margin-top: 24px;
}

.tool-ledger {
  border-top: 1px solid var(--line-strong);
}

.tool-row {
  display: grid;
  width: 100%;
  min-height: 112px;
  cursor: pointer;
  grid-template-columns: 36px 46px minmax(0, 1fr) 64px 24px;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 18px 0 0;
  background: transparent;
  text-align: left;
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.tool-row:hover {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.35);
}

.tool-row-featured {
  background: var(--night);
  color: var(--white);
}

.tool-row-featured:hover {
  background: var(--night-soft);
}

.tool-row-golden {
  background: #44391d;
}

.tool-row-golden:hover {
  background: #5b4a21;
}

.tool-row-golden .tool-icon {
  color: var(--yellow);
}

.tool-number,
.tool-state {
  opacity: 0.65;
}

.tool-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.tool-icon svg {
  width: 18px;
  height: 18px;
}

.tool-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.tool-copy strong {
  font-family: var(--serif);
  font-size: 1.32rem;
}

.tool-copy small {
  overflow: hidden;
  opacity: 0.7;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-row > svg {
  width: 18px;
  height: 18px;
}

.fiction-section {
  background: var(--lavender);
}

.fiction-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.25fr);
  gap: 82px;
  align-items: center;
}

.fiction-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 22px 26px 0 rgba(113, 129, 145, 0.14);
}

.fiction-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  filter: saturate(0.58) brightness(0.82) hue-rotate(8deg);
}

.fiction-art span {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.fiction-header {
  display: block;
  padding-bottom: 28px;
}

.fiction-header > p {
  margin-top: 18px;
}

.fiction-list {
  border-top: 0;
}

.fiction-row {
  display: grid;
  width: 100%;
  min-height: 146px;
  cursor: pointer;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 25px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 0;
  background: transparent;
  text-align: left;
  transition: transform 180ms ease;
}

.fiction-row:hover {
  transform: translateX(7px);
}

.fiction-row.is-muted {
  opacity: 0.62;
}

.fiction-number {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
}

.fiction-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.fiction-copy small {
  color: #6b5871;
}

.fiction-copy strong {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.fiction-copy > span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiction-row > svg {
  width: 17px;
  height: 17px;
}

.arcade-section {
  background: var(--night);
  color: var(--white);
}

.arcade-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 90px;
}

.arcade-copy .section-index {
  color: rgba(255, 255, 255, 0.58);
}

.arcade-copy > p:not(.section-index) {
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--serif);
  line-height: 1.85;
}

.light-action {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--night);
}

.light-action:hover {
  background: #efd77a;
}

.game-stage {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #102829;
}

.game-stage-top,
.game-stage-bottom {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.58);
}

.game-stage-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.game-stage-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.game-stage-top strong {
  color: var(--yellow);
  font-weight: 750;
}

#constellation-game {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  cursor: crosshair;
}

.about-section {
  background: var(--mist);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  gap: 110px;
  align-items: start;
}

.about-layout h2 {
  font-size: 3.35rem;
}

.about-copy > p {
  margin: 5px 0 44px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.9;
}

.garden-notes {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.garden-notes > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.garden-notes dt {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.garden-notes dd {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #102829;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 30px;
}

.footer-inner > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.footer-inner strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-inner span,
.footer-inner p,
.footer-inner a {
  font-size: 0.66rem;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-inner a svg {
  width: 14px;
  height: 14px;
}

.footer-inner .footer-filing {
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 12px;
  line-height: 1.6;
}

.panel-backdrop[hidden] {
  display: none;
}

.panel-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(10, 28, 29, 0.58);
  backdrop-filter: blur(7px);
}

.detail-panel {
  position: relative;
  width: min(680px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 78px 74px 70px;
  background: var(--paper);
  box-shadow: -20px 0 70px rgba(10, 28, 29, 0.22);
  animation: panel-enter 280ms ease both;
}

.panel-close {
  position: absolute;
  top: 24px;
  right: 26px;
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
}

.panel-close svg {
  width: 18px;
  height: 18px;
}

.panel-kicker {
  color: var(--ink-soft);
}

.detail-panel h2 {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 650;
  line-height: 1.2;
}

.panel-intro {
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
}

.panel-body {
  margin-top: 34px;
  color: #2e4144;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 2;
}

.panel-body p {
  margin: 0 0 1.4em;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-copy-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.panel-divider {
  width: 48px;
  height: 1px;
  margin: 34px 0;
  background: var(--line-strong);
}

.timer-demo {
  margin-top: 36px;
}

.timer-display {
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  text-align: center;
}

.timer-controls,
.color-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.panel-action {
  display: inline-flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--night);
  border-radius: 3px;
  padding: 10px 16px;
  background: var(--night);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-action.secondary {
  background: transparent;
  color: var(--ink);
}

.panel-action svg {
  width: 16px;
  height: 16px;
}

.color-tool {
  margin-top: 32px;
}

.color-preview {
  display: grid;
  min-height: 155px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #8db8b5;
  color: #102829;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.color-controls {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  margin-top: 14px;
}

.color-controls input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0 12px;
  background: var(--white);
}

.color-controls input[type="color"] {
  width: 92px;
  padding: 4px;
}

.swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.color-swatch {
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.notes-tool {
  margin-top: 30px;
}

.notes-tool textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 18px;
  background: var(--white);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.8;
}

.notes-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes settle-art {
  from { opacity: 0.65; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
  .page-width,
  .header-inner {
    width: min(100% - 48px, 780px);
  }

  .hero-inner {
    grid-template-columns: 1fr 290px;
  }

  .hero-copy h1 {
    font-size: 5rem;
  }

  .blog-layout,
  .tools-layout,
  .fiction-layout,
  .arcade-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .blog-layout,
  .tools-layout,
  .fiction-layout,
  .arcade-layout,
  .about-layout {
    gap: 54px;
  }

  .blog-aside {
    display: grid;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .aside-block {
    min-height: 210px;
    border-right: 1px solid var(--line);
    padding: 24px;
  }

  .aside-block:last-child {
    border-right: 0;
  }

  .fiction-art {
    aspect-ratio: 16 / 8;
  }

  .arcade-copy {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .page-width,
  .header-inner {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-subtitle {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: calc(100svh - 64px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 32px 18px;
    background: var(--mist);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 18px 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.55rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 79svh;
  }

  .hero-art {
    object-position: 60% center;
  }

  .hero-wash {
    background: linear-gradient(180deg, rgba(228, 240, 237, 0.28) 0%, rgba(228, 240, 237, 0.62) 78%, rgba(228, 240, 237, 0.74) 100%);
  }

  .hero-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-top: 104px;
    padding-bottom: 24px;
  }

  .hero-copy {
    margin-top: auto;
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 4.3rem;
  }

  .hero-intro {
    max-width: 430px;
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 28px;
  }

  .latest-note {
    padding: 16px;
  }

  .art-caption {
    display: none;
  }

  .page-section {
    padding: 72px 0;
  }

  .section-header {
    display: block;
    padding-bottom: 26px;
  }

  .section-header h2,
  .arcade-copy h2,
  .about-layout h2 {
    font-size: 3rem;
  }

  .section-header > p {
    margin-top: 16px;
  }

  .blog-layout {
    gap: 42px;
    margin-top: 38px;
  }

  .archive-tools {
    grid-template-columns: 1fr auto;
  }

  .archive-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .post-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post-feature-copy h3 {
    font-size: 2rem;
  }

  .post-row {
    min-height: 0;
    grid-template-columns: 1fr 40px;
    gap: 16px;
    padding: 26px 0;
  }

  .post-row .post-meta {
    grid-column: 1 / -1;
  }

  .post-row-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-aside {
    grid-template-columns: 1fr;
  }

  .aside-block {
    min-height: auto;
    border-right: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .tools-layout,
  .fiction-layout,
  .arcade-layout,
  .about-layout {
    gap: 42px;
  }

  .tool-row {
    min-height: 104px;
    grid-template-columns: 28px 38px minmax(0, 1fr) 20px;
    gap: 12px;
    padding-right: 0;
  }

  .tool-row:hover {
    padding-left: 6px;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
  }

  .tool-state {
    display: none;
  }

  .tool-copy strong {
    font-size: 1.15rem;
  }

  .tool-copy small {
    font-size: 0.71rem;
  }

  .fiction-art {
    aspect-ratio: 4 / 3;
    box-shadow: 12px 14px 0 rgba(113, 129, 145, 0.14);
  }

  .fiction-row {
    min-height: 132px;
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 14px;
  }

  .fiction-copy strong {
    font-size: 1.35rem;
  }

  #constellation-game {
    aspect-ratio: 4 / 3;
  }

  .about-copy > p {
    margin-top: 0;
    font-size: 1.1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }

  .detail-panel {
    padding: 72px 24px 46px;
  }

  .detail-panel h2 {
    padding-right: 40px;
    font-size: 2.2rem;
  }

  .timer-display {
    font-size: 4rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 3.7rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .text-action {
    width: 100%;
  }

  .text-action {
    justify-content: space-between;
  }

  .post-feature-copy h3 {
    font-size: 1.75rem;
  }

  .fiction-copy > span {
    white-space: normal;
  }

  .garden-notes > div {
    grid-template-columns: 70px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
