:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #17231d;
  --accent: #d95c37;
  --sage: #c8d0b1;
  --line: rgba(23, 35, 29, 0.18);
  --muted: #657067;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  min-height: 84px; padding: 20px clamp(24px, 5vw, 80px); display: flex;
  align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: .84rem; }
nav a, .footer-links a { border-bottom: 1px solid transparent; }
nav a:hover, .footer-links a:hover { border-color: currentColor; }

.hero { min-height: 690px; padding: clamp(70px, 10vw, 140px) clamp(24px, 8vw, 130px); position: relative; overflow: hidden; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; margin: 0 0 28px; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 790px; margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(4rem, 10vw, 9rem); font-weight: 400; line-height: .91; letter-spacing: -.065em; }
.hero-copy { max-width: 540px; margin: 45px 0 34px; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 2; }
.primary-link { display: inline-flex; align-items: center; gap: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: .9rem; font-weight: 700; }
.hero-orbit { position: absolute; right: -70px; top: 110px; width: clamp(260px, 34vw, 470px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; animation: drift 20s linear infinite; }
.orbit-dot { position: absolute; left: 10%; top: 16%; width: 80px; height: 80px; background: var(--accent); border-radius: 50%; }
.orbit-label { position: absolute; right: 18%; bottom: 18%; font-family: Georgia, serif; font-style: italic; }
@keyframes drift { to { transform: rotate(360deg); } }

.timer-section, .apps-section, .about-section { padding: clamp(70px, 10vw, 130px) clamp(24px, 8vw, 130px); border-top: 1px solid var(--line); }
.timer-section { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(440px, 1.2fr); gap: clamp(50px, 9vw, 140px); background: var(--ink); color: var(--paper); }
h2 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
.timer-card { align-self: center; }
.timer-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-button { padding: 10px 14px; color: var(--paper); background: transparent; border: 1px solid rgba(245,241,232,.3); border-radius: 999px; cursor: pointer; }
.mode-button.active { background: var(--paper); color: var(--ink); }
.timer-display { display: flex; justify-content: center; margin: 48px 0 30px; font-family: Georgia, serif; font-size: clamp(5rem, 15vw, 11rem); font-variant-numeric: tabular-nums; line-height: .8; letter-spacing: -.06em; }
.timer-colon { color: var(--accent); transform: translateY(-.05em); }
.timer-progress { height: 3px; background: rgba(245,241,232,.2); overflow: hidden; }
.timer-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transition: transform .4s linear; }
.timer-actions { display: flex; gap: 12px; margin-top: 30px; }
.start-button, .reset-button { min-width: 130px; padding: 15px 22px; border: 1px solid var(--paper); cursor: pointer; }
.start-button { background: var(--paper); color: var(--ink); }
.reset-button { background: transparent; color: var(--paper); }
.timer-status { min-height: 1.5em; margin: 22px 0 0; color: rgba(245,241,232,.7); }

.apps-section { background: var(--sage); }
.apps-section .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 80px; }
.app-grid { border-top: 1px solid var(--ink); }
.app-item { min-height: 190px; display: grid; grid-template-columns: 70px 1fr auto; gap: 30px; align-items: center; padding: 35px 0; border-bottom: 1px solid rgba(23,35,29,.45); }
.app-number { font-family: Georgia, serif; font-style: italic; font-size: 1.6rem; }
.app-state { margin: 0 0 8px; font-size: .65rem; font-weight: 700; letter-spacing: .15em; }
.app-item h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 400; }
.app-item p:last-child { margin: 0; color: #49554d; }
.app-item > a { padding-bottom: 5px; border-bottom: 1px solid; font-weight: 700; }
.muted { color: var(--muted); }

.about-section { min-height: 580px; }
.about-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 10vw, 160px); align-items: end; }
.about-layout p { margin: 0 0 1.4em; font-size: 1.08rem; line-height: 2; }

footer { padding: 55px clamp(24px, 5vw, 80px); background: var(--accent); color: #fff7ee; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 25px; font-size: .82rem; }
footer p { margin: 0; font-size: .75rem; }

.content-page { min-height: 65vh; max-width: 850px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) 24px; }
.content-page h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); }
.content-page h2 { margin: 2em 0 .6em; font-size: 1.7rem; font-family: inherit; font-weight: 700; letter-spacing: -.02em; }
.content-page p, .content-page li { line-height: 1.9; }
.content-page a { text-decoration: underline; text-underline-offset: 4px; }
.notice { margin-top: 45px; padding: 22px; border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 780px) {
  nav a:not(:first-child) { display: none; }
  .hero { min-height: 610px; padding-top: 95px; }
  .hero-orbit { opacity: .45; top: 250px; right: -150px; }
  .timer-section, .about-layout { grid-template-columns: 1fr; }
  .timer-section { gap: 70px; }
  .apps-section .section-heading { display: block; }
  .app-item { grid-template-columns: 42px 1fr; }
  .app-item > a, .app-item > .muted { grid-column: 2; justify-self: start; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit { animation: none; }
}
