:root {
  color-scheme: light dark;

  --bg-cream: light-dark(#fffef6, #1a1a1b);
  --bg-white: light-dark(#ffffff, #252526);
  --ink-primary: light-dark(#1a1a1a, #e8e8e8);
  --ink-secondary: light-dark(#4a4a4a, #a0a0a0);
  --ink-tertiary: light-dark(#444444, #b0b0b0);
  --ink-muted: light-dark(#999999, #808080);
  --ink-secondary-border: light-dark(
    rgb(74 74 74 / 0.05),
    rgb(255 255 255 / 0.08)
  );
  --line-color: light-dark(#e0e0dc, #3a3a3a);
  --line-color-light: light-dark(#f6f5f2, #2d2d2d);
  --border-footer: light-dark(#eae8de, #2d2d2d);
  --surface-warm: light-dark(#faf9f1, #252526);
  --surface-warm-alt: light-dark(#eae8df, #2a2a2a);
  --surface-neutral: light-dark(#eeeeee, #333333);
  --surface-dark: light-dark(#212830, #18181b);
  --radio-border: light-dark(#aaaaaa, #555555);
  --status-available: #2dcc70;
  --shadow-soft: light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  --shadow-reveal: light-dark(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.4));
  --blur-overlay-bg: light-dark(rgba(255, 254, 246, 0.4), rgba(0, 0, 0, 0.5));
  --reveal-border-light: light-dark(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.12)
  );
  --reveal-text-on-dark: #dddddd;
  --spacing-unit: 0.5rem;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Base64 cursor dot (8px circle). Hot spot: 8 8. */
  --cursor-dot-light: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0iIzFhMWExYSIvPjwvc3ZnPg==")
    8 8;
  --cursor-dot-dark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0iI2U4ZThlOCIvPjwvc3ZnPg==")
    8 8;
  /* Hollow ring for link hover (1px stroke). Hot spot: 8 8. */
  --cursor-dot-ring-dark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMWExYTFhIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=")
    8 8;
  --cursor-dot-ring-light: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZThlOGU4IiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=")
    8 8;
  /* Circle with diagonal slash (e.g. disabled / not allowed). Hot spot: 8 8. */
  --cursor-dot-slash-light: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMWExYTFhIiBzdHJva2Utd2lkdGg9IjEiLz48bGluZSB4MT0iNCIgeTE9IjQiIHgyPSIxMiIgeTI9IjEyIiBzdHJva2U9IiMxYTFhMWEiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+")
    8 8;
  --cursor-dot-slash-dark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZThlOGU4IiBzdHJva2Utd2lkdGg9IjEiLz48bGluZSB4MT0iNCIgeTE9IjQiIHgyPSIxMiIgeTI9IjEyIiBzdHJva2U9IiNlOGU4ZTgiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+")
    8 8;
}

/* Cross-document view transitions (Chrome 126+, Safari 18.2+) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: view-transition-fade-out 0.2s ease-out both;
}

::view-transition-new(root) {
  animation: view-transition-fade-in 0.2s ease-in both;
}

@keyframes view-transition-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes view-transition-fade-in {
  from {
    opacity: 0;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom cursor (opt-in: add class="custom-cursor" to body and include .cursor-dot + script).
   For CSS-only cursor, use cursor: var(--cursor-dot), none and remove the .cursor-dot div. */
body.custom-cursor,
body.custom-cursor * {
  cursor: var(--cursor-dot-light), default;
}

body.custom-cursor a:hover,
body.custom-cursor button:hover,
body.custom-cursor .footer-link:hover,
body.custom-cursor .nav-item:hover {
  cursor: var(--cursor-dot-ring-light), pointer;
}

body.custom-cursor .action-btn:disabled:hover,
body.custom-cursor .footer-link.disabled:hover,
body.custom-cursor .footer-link.disabled:hover > * {
  cursor: var(--cursor-dot-slash-light), not-allowed;
}

::-moz-selection {
  /* Code for Firefox */
  color: black;
  background: #f6ae8f;
}

::selection {
  color: black;
  background: #f6ae8f;
}

* {
  outline-color: #f6ae8f;
}

@media (prefers-color-scheme: dark) {
  body.custom-cursor,
  body.custom-cursor * {
    cursor: var(--cursor-dot-dark), default;
  }
  body.custom-cursor a:hover,
  body.custom-cursor button:hover,
  body.custom-cursor .footer-link:hover,
  body.custom-cursor .nav-item:hover {
    cursor: var(--cursor-dot-ring-dark), pointer;
  }
  body.custom-cursor .action-btn:disabled:hover,
  body.custom-cursor .footer-link.disabled:hover,
  body.custom-cursor .footer-link.disabled:hover > * {
    cursor: var(--cursor-dot-slash-dark), not-allowed;
  }
}

.cursor-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--ink-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s, width 0.2s, height 0.2s, background-color 0.2s,
    border 0.2s;
}

body {
  background-color: var(--bg-cream);
  color: var(--ink-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  /* position: relative; */
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.flex-col {
  flex-direction: column;
}
.justify-between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.grid {
  display: grid;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.text-xl {
  font-size: 1.75rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.text-huge {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-left: -0.05em;
  color: var(--ink-primary);
}

.text-serif {
  font-family: "Times New Roman", serif;
  font-style: italic;
}

.opacity-60 {
  opacity: 0.6;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-8 {
  margin-top: 4rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--ink-primary);
}

header {
  padding: clamp(1.5rem, 2.5vw, 2.5rem) 0;
  position: sticky;
  top: 0;
  background: var(--bg-cream);
  z-index: 100;
  backdrop-filter: blur(0.625rem);
}

.container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 2.5vw, 2.5rem);
}

.hero {
  padding-block: clamp(6rem, 10vw, 8.5rem);
  position: relative;
}

.hero h1 {
  color: var(--ink-primary);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.hero-section {
  max-width: 56.25rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 31.25rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.nav-links {
  gap: 2rem;
}

.nav-item,
.footer-link {
  position: relative;
}
.nav-item::after,
.footer-link:not(.disabled)::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.0625rem;
  background: var(--ink-primary);
  transition: width 0.3s ease;
}
.nav-item:hover::after,
.nav-item.active::after,
.footer-link:hover::after,
.footer-link.active::after {
  width: 100%;
}

footer.container {
  padding: 5rem 2.5rem;
  border-top: 0.0625rem solid var(--border-footer);
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--ink-primary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--status-available);
  border-radius: 50%;
}

.footer-copyright {
  margin-top: 8rem;
  opacity: 0.4;
}
