:root {
  /* Yukon Gold skin */
  --yukon: #E3C16F;
  --yukon-light: #F2DC9B;
  --yukon-dark: #C9A24D;
  /* Russet skin */
  --russet: #8B5A2B;
  --russet-light: #B07D4F;
  --russet-dark: #5C3A1E;
  /* Potato flesh */
  --cream: #FBF3DC;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--russet-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--russet); }
a:hover, a:focus-visible { color: var(--russet-dark); }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--russet);
  border-bottom: 6px solid var(--yukon);
}
.site-header a { color: var(--cream); text-decoration: none; }
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: .02em;
}
.site-header nav a {
  font-weight: 600;
  padding: 6px 14px;
  border: 2px solid var(--yukon);
  border-radius: 999px;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { background: var(--yukon); color: var(--russet-dark); }

main { flex: 1; }

/* Hero */
.hero {
  min-height: calc(100svh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 16px;
  text-align: center;
}
.tagline {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: var(--russet);
}

/* The potato */
.potato {
  position: relative;
  width: min(70vw, 320px);
  aspect-ratio: 1.45;
  border-radius: 52% 48% 45% 55% / 58% 50% 50% 42%;
  background:
    radial-gradient(circle at 22% 62%, rgba(176,125,79,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(176,125,79,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 75%, rgba(176,125,79,.3) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 38% 40%, rgba(176,125,79,.3) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 58%, rgba(176,125,79,.35) 0 2px, transparent 3px),
    radial-gradient(ellipse at 30% 25%, var(--yukon-light) 0%, var(--yukon) 45%, var(--yukon-dark) 100%);
  box-shadow:
    inset -14px -18px 30px rgba(139,90,43,.35),
    inset 10px 10px 24px rgba(255,255,255,.35),
    0 28px 24px -18px rgba(92,58,30,.45);
  transform: rotate(-8deg);
  animation: wobble 4s ease-in-out infinite;
}
.eye {
  position: absolute;
  width: 10px;
  height: 6px;
  border-radius: 50%;
  background: var(--russet-light);
  box-shadow: inset 1px 1px 2px var(--russet-dark);
  opacity: .8;
}
.e1 { top: 28%; left: 24%; transform: rotate(20deg); }
.e2 { top: 22%; left: 62%; transform: rotate(-15deg); width: 8px; }
.e3 { top: 55%; left: 46%; transform: rotate(5deg); }
.e4 { top: 66%; left: 76%; transform: rotate(-30deg); width: 7px; height: 5px; }
.e5 { top: 70%; left: 16%; transform: rotate(40deg); width: 8px; height: 5px; }

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-6px); }
}

/* Inventory */
.inventory {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}
.inventory div {
  min-width: 140px;
  padding: 10px 16px;
  background: var(--yukon-light);
  border: 2px solid var(--russet);
  border-radius: 12px;
}
.inventory dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--russet);
}
.inventory dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

/* About */
.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  scroll-margin-top: 16px;
}
.about h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--russet);
  border-bottom: 4px solid var(--yukon);
  display: inline-block;
  margin: 0 0 16px;
}

/* Footer */
.site-footer {
  padding: 16px;
  text-align: center;
  font-size: .9rem;
  background: var(--russet-dark);
  color: var(--yukon-light);
}
.site-footer p { margin: 0; }

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