/* ---------------------------------------------------------
   thatkidspoon.com — base stylesheet
   Palette, type, and layout tokens live at the top of this
   file. Change them here and they ripple through every page.
--------------------------------------------------------- */

:root{
  --bg: #EFE9DC;
  --bg-soft: #E6DFCE;
  --paper: #FBF9F3;
  --ink: #241F18;
  --ink-soft: #5B5648;
  --line: #D2C7AC;
  --accent: #B8862F;
  --accent-deep: #8C6420;
  --green: #3B5245;
  --green-soft: #4E695A;
  --max-width: 720px;
  --gutter: 1.5rem;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1{ font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3{ font-size: 1.15rem; font-weight: 600; }

p{ margin: 0 0 1.1em 0; }

a{ color: var(--green); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover{ color: var(--accent-deep); }

::selection{ background: var(--accent); color: var(--paper); }

/* Skip link for keyboard users */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

:focus-visible{
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */

.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner{
  max-width: 920px;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover{ color: var(--ink); }
.wordmark svg{ width: 26px; height: 26px; flex-shrink: 0; }

nav.main-nav{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav.main-nav a{
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
nav.main-nav a:hover{
  color: var(--ink);
  border-bottom-color: var(--accent);
}
nav.main-nav a[aria-current="page"]{
  color: var(--ink);
  border-bottom-color: var(--green);
}

.lock-tag{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.lock-tag svg{ width: 13px; height: 13px; opacity: 0.75; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 620px){
  nav.main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  nav.main-nav.open{ display: flex; }
  nav.main-nav a{ padding: 0.6rem 0; width: 100%; border-bottom: 1px solid var(--bg-soft); }
  .header-inner{ position: relative; flex-wrap: wrap; }
  .nav-toggle{ display: inline-block; }
}

/* ---------- Layout shells ---------- */

main{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose{
  max-width: var(--max-width);
}

section{
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type{ border-bottom: none; }

.eyebrow-note{
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

/* ---------- Home hero ---------- */

.hero{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.6rem;
}
.hero .spoon-art{ justify-self: end; }
.hero .spoon-art svg{ width: 100%; max-width: 220px; height: auto; }

@media (max-width: 700px){
  .hero{ grid-template-columns: 1fr; }
  .hero .spoon-art{ justify-self: start; order: -1; width: 90px; }
  .hero .spoon-art svg{ max-width: 90px; }
}

.tagline{
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--green-soft);
  font-size: 1.15rem;
  margin-top: -0.3em;
}

/* ---------- Explore list (home) ---------- */

.explore-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.explore-list li{
  border-left: 3px solid var(--line);
  padding: 0.9rem 0 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s ease;
}
.explore-list li:hover{ border-left-color: var(--accent); }
.explore-list a{
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.explore-list a:hover{ color: var(--accent-deep); }
.explore-list .teaser{
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---------- Entry list (music / apps) ---------- */

.entry-list{
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.entry{
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}
.entry:last-child{ border-bottom: none; padding-bottom: 0; }
.entry h3{ margin-bottom: 0.3em; }
.entry .meta{
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.6em;
}
.entry .placeholder-media{
  margin: 0.9rem 0;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: var(--paper);
}
.entry a.entry-link{
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */

.btn{
  display: inline-block;
  background: var(--green);
  color: var(--paper) !important;
  padding: 0.65rem 1.3rem;
  border-radius: 4px;
  text-decoration: none !important;
  border: none;
  font-size: 0.98rem;
  font-family: 'IBM Plex Sans', sans-serif;
  cursor: pointer;
}
.btn:hover{ background: var(--green-soft); }
.btn:disabled{ opacity: 0.6; cursor: not-allowed; }

/* ---------- Family lock ---------- */

.lock-screen{
  max-width: 420px;
  margin: 4rem auto;
  text-align: left;
  padding: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lock-screen svg{ width: 28px; height: 28px; margin-bottom: 1rem; }
.lock-form{
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.lock-form input[type="password"]{
  flex: 1;
  min-width: 160px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.lock-message{
  min-height: 1.4em;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--accent-deep);
}

.family-content{ display: none; }
.family-content.revealed{ display: block; }

.photo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}
.photo-grid .placeholder-media{
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ---------- Footer ---------- */

footer{
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer a{ color: var(--ink-soft); }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}
