:root {
  color-scheme: dark;
  --ground: #050708;
  --surface: #0a0d0f;
  --surface-raised: #101416;
  --ink: #f2f0eb;
  --muted: #b7babf;
  --dim: #81898e;
  --line: rgba(184, 200, 210, 0.17);
  --line-strong: rgba(212, 224, 229, 0.3);
  --action: #faf8f2;
  --action-ink: #101214;
  --measure: 76rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.site-header,
.site-footer,
main {
  width: min(calc(100% - 3rem), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 650; letter-spacing: -0.025em; text-decoration: none; }

main { flex: 1; }

.hero {
  position: relative;
  overflow: clip;
  min-height: 68vh;
  display: grid;
  align-content: center;
  padding-block: clamp(6rem, 14vw, 11rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18% -18% auto 58%;
  height: 22rem;
  border-radius: 50%;
  background: rgba(203, 213, 217, 0.08);
  filter: blur(90px);
  pointer-events: none;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.subheadline {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.button:hover { background: var(--surface-raised); transform: translateY(-1px); }
.button.primary { border-color: transparent; background: var(--action); color: var(--action-ink); box-shadow: 0 8px 30px -22px rgba(242,240,235,.9), inset 0 1px 0 rgba(255,255,255,.75); }
.button.primary:hover { background: #fff; }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.88; }

.availability { padding-bottom: clamp(6rem, 12vw, 10rem); }
.availability h2 { margin: 0 0 1.5rem; font-size: 1rem; font-weight: 500; color: var(--dim); }
.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.product-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.product-card h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; }
.status { color: var(--dim); font-size: 0.9rem; }

.simple-page {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: clamp(6rem, 14vw, 10rem);
}

.simple-page h1 { font-size: clamp(3rem, 7vw, 6rem); }
.simple-copy { border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--muted); }
.simple-copy p { margin: 0; }
.simple-copy a { display: inline-block; margin-top: 2rem; text-underline-offset: 0.22em; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.84rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

@media (max-width: 720px) {
  .hero { min-height: auto; }
  .product-list, .simple-page { grid-template-columns: 1fr; }
  .product-card { min-height: 13rem; }
  .site-footer { flex-direction: column; }
}

/* Keep every required front-door element within the homepage viewport. */
body.home {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.home .site-header,
.home .site-footer {
  flex: none;
}

.home main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.home .site-header { padding-block: clamp(0.7rem, 2vh, 1.15rem); }

.home .hero {
  min-height: 0;
  align-content: center;
  padding-block: clamp(1rem, 4vh, 3rem);
}

.home .availability { padding-bottom: clamp(0.6rem, 2.5vh, 1.5rem); }
.home .availability h2 { margin-bottom: clamp(0.55rem, 1.5vh, 1rem); }

.home .product-card {
  min-height: clamp(7.5rem, 16vh, 10rem);
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.home .site-footer { padding-block: clamp(0.65rem, 1.8vh, 1rem); }

@media (max-width: 720px) {
  .home .site-header { padding-block: 0.65rem; }

  .home .hero { padding-block: 0.75rem; }
  .home h1 { font-size: clamp(2.8rem, 15vw, 4rem); }

  .home .subheadline {
    margin-top: 0.75rem;
    font-size: clamp(0.95rem, 4.5vw, 1.15rem);
    line-height: 1.35;
  }

  .home .actions { gap: 0.5rem; margin-top: 1rem; }

  .home .button {
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
  }

  .home .availability { padding-bottom: 0.5rem; }
  .home .availability h2 { margin-bottom: 0.45rem; font-size: 0.78rem; }
  .home .product-list { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  .home .product-card {
    min-height: 6.5rem;
    padding: 0.85rem;
  }

  .home .product-card h3 { font-size: clamp(1.15rem, 6vw, 1.55rem); }
  .home .status { font-size: 0.72rem; }

  .home .site-footer {
    gap: 0.25rem;
    padding-block: 0.55rem 0.65rem;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .home .footer-links { gap: 0.75rem; }
}
