/*
 * Palette sampled from assets/tamago-logo.svg.
 * Contrast (WCAG 2.x): nori on white 13.2:1, on peach 10.1:1, on yolk 9.1:1;
 * muted on peach 5.8:1. Yolk is only ever a background (never text on light).
 */
:root {
  --yolk: #ffd23f;
  --yolk-deep: #f6c22a;
  --peach: #ffd9c7;
  --nori: #26332b;
  --muted: #4a5750;
  --cream: #fffbf5;
  --white: #ffffff;
  --radius: 14px;
  --max: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--nori);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--nori);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--nori);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--nori);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 42rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--nori);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons: yolk background, nori text (9.1:1) and a nori border so the
   button edge stays visible against light backgrounds. */
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--nori);
  border-radius: 999px;
  background: var(--yolk);
  color: var(--nori);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--nori);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background-color 0.1s ease;
}

.button:hover {
  background: var(--yolk-deep);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--nori);
}

.button-small {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 0 var(--nori);
}

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(38, 51, 43, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 64px;
  height: 64px;
  margin: -8px -4px; /* the logo artwork has generous built-in padding */
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.75rem;
  border: 2px solid var(--nori);
  border-radius: 999px;
  background: var(--yolk);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Features */
.features {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--peach);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: feature;
}

.feature-list li {
  position: relative;
  padding: 1.5rem;
  border: 2px solid var(--nori);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: feature;
}

.feature-list li::before {
  content: counter(feature);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border: 2px solid var(--nori);
  border-radius: 50%;
  background: var(--yolk);
  font-weight: 800;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

/* Audience and CTA */
.audience,
.cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.audience p {
  max-width: 38rem;
  font-size: 1.2rem;
}

.cta {
  border-top: 1px solid rgba(38, 51, 43, 0.12);
  text-align: center;
}

.cta-email {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--nori);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-style: normal;
}

.footer-name {
  font-weight: 700;
}

@media (max-width: 30rem) {
  .button-small {
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
  }

  .brand {
    gap: 0.25rem;
  }

  .brand span {
    font-size: 1rem;
  }
}

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