:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #181a1f;
  --muted: #666f7a;
  --line: #d9d3c5;
  --surface: #ffffff;
  --surface-2: #ede8dc;
  --green: #205843;
  --red: #a23b2a;
  --blue: #263f73;
  --gold: #a98037;
  --shadow: 0 20px 50px rgba(31, 28, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(32, 88, 67, 0.12), transparent 32rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 44%, #f1eee7 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(24, 26, 31, 0.08);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a.active {
  color: var(--ink);
  font-weight: 800;
}

.private-link {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 72px);
  padding: clamp(3rem, 8vw, 6rem) 5vw;
}

.domain {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 38rem;
  color: #3f454d;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.mood-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  transform: rotate(-2deg);
}

.mood-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(9rem, 18vw, 15rem);
  padding: 1.2rem;
  border: 1px solid rgba(24, 26, 31, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.mood-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
}

.mood-card strong {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.tennis {
  background: linear-gradient(135deg, #1f5a43, #78a35d);
}

.speed {
  background: linear-gradient(135deg, #16181d, #9b3028);
}

.quiet {
  background: linear-gradient(135deg, #263f73, #8796b7);
}

.future {
  background: linear-gradient(135deg, #342c4f, #a98037);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
  border-top: 1px solid rgba(24, 26, 31, 0.08);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.section-heading p,
.about-section p,
.private-note p {
  color: var(--muted);
}

.entry-list {
  display: grid;
  gap: 1rem;
}

.entry {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.entry time {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.entry h3 {
  margin-bottom: 0.3rem;
}

.entry p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-shell {
  width: min(74rem, 90vw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.page-hero {
  max-width: 54rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.page-hero h1 {
  max-width: 10ch;
}

.page-links {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.route-card {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

.route-card span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.route-card h3 {
  margin: auto 0 0.5rem;
  font-size: 1.55rem;
}

.route-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.private-route {
  background: #181a1f;
  color: #fff;
}

.private-route span,
.private-route p {
  color: rgba(255, 255, 255, 0.72);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.sticky-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.likes-grid article,
.private-note {
  min-height: 13rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.likes-grid span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.likes-grid h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.45rem;
}

.likes-grid h2 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.7rem;
}

.likes-grid p {
  color: var(--muted);
}

.page-grid {
  margin-bottom: 2rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 2rem;
  align-items: start;
}

.about-section > div p {
  max-width: 48rem;
  font-size: 1.2rem;
}

.private-note code {
  font-size: 0.94em;
}

.private-note a {
  font-weight: 750;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-layout article {
  min-height: 16rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.about-layout p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 5vw;
  color: var(--muted);
  font-size: 0.9rem;
}

.private-page {
  min-height: 100vh;
}

.private-shell {
  width: min(64rem, 90vw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.private-shell h1 {
  max-width: 14ch;
}

.private-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.private-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.private-card span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.private-card h2 {
  margin-top: 1.4rem;
  font-size: 2rem;
}

.draft-box {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px dashed var(--green);
  border-radius: 8px;
  background: rgba(32, 88, 67, 0.08);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .about-section,
  .route-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .mood-panel {
    transform: none;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .mood-panel,
  .likes-grid,
  .private-grid {
    grid-template-columns: 1fr;
  }

  .entry {
    grid-template-columns: 1fr;
  }
}
