/* ==========================================================================
   pukkilan-pizzeria — theme: bistro-chalkboard (food-restaurant, skeleton S5
   card catalog — first live use of this theme; warm, homey, handwritten,
   distinct from kaiseki-quiet/street-poster/cafe-editorial already shipped)
   Palette: cream #FAF3E3 (bg) · chalk charcoal #2B2825 (text / ink) ·
            tomato #C4442A (accent, buttons) · tomato-text #A6371F (AA-safe
            tomato for real text) · olive #6B7042 (secondary accent) ·
            olive-text #565B33 (AA-safe olive for real text) · chalkboard-dark
            #2B2825 section for the lounas/day menu
   Type:    Caprasimo (display — chunky, warm) / Nunito Sans variable (body)
   ========================================================================== */

@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/caprasimo-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-var-latin.woff2") format("woff2-variations"), url("assets/fonts/nunito-sans-var-latin.woff2") format("woff2");
}

:root {
  --cream: #FAF3E3;         /* primary background */
  --white: #FFFFFF;         /* card background */
  --charcoal: #2B2825;      /* primary text / dark chalkboard sections — 13.26:1 on cream */
  --charcoal-dim: #5C564E;  /* secondary text on cream — 6.56:1 */
  --charcoal-line: #DCD2B8; /* hairline rules — decorative, non-text */
  --tomato: #C4442A;        /* decorative accent / button fill only */
  --tomato-text: #A6371F;   /* AA-safe tomato for real text — 5.96:1 on cream, 6.59:1 on white */
  --olive: #6B7042;         /* decorative accent only */
  --olive-text: #565B33;    /* AA-safe olive for real text — 6.46:1 on cream */
  --cream-dim: #C9C2B4;     /* secondary text on charcoal dark sections — 8.28:1 */
  --focus: #A6371F;
  --display: "Caprasimo", "Georgia", serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--tomato); color: var(--white); }

a { color: var(--tomato-text); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--tomato);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
}
.skip-link:focus-visible { left: 0.5rem; top: 0.5rem; }

/* ------------------------------------------------------------------ draft */

.draft-banner {
  display: block;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--tomato);
}
.draft-banner strong { color: #E8916F; font-weight: 800; }
.draft-banner:hover { color: var(--white); background: #17130f; }

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--charcoal);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.6rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--charcoal-dim);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--charcoal); }
.nav-phone {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--tomato);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 0.3rem;
  white-space: nowrap;
}
.nav-phone:hover { background: #a6371f; }

/* --------------------------------------------------------------- hero (S5) */

.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal-dim);
  margin-bottom: 1.1rem;
}
.kicker .mark { width: 1rem; height: 1rem; flex: none; }
.kicker .ref { color: var(--tomato-text); font-weight: 800; }
.kicker.light { color: var(--cream-dim); }
.kicker.light .ref { color: #E8916F; }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--tomato-text); }

.lede {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--charcoal-dim);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 2px solid var(--tomato);
  background: var(--tomato);
  color: var(--white);
  border-radius: 0.4rem;
}
.cta:hover { background: #a6371f; border-color: #a6371f; }
.cta.ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal-line); }
.cta.ghost:hover { border-color: var(--charcoal); }

/* -------------------------------------------- signature move: doodle marks */

.doodle-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 1rem;
}
.doodle { width: 56px; height: auto; flex: none; }
.doodle.fork { transform: rotate(-6deg); }
.doodle.steam { width: 78px; opacity: 0.85; transform: rotate(3deg); }

/* ------------------------------------------------------------ hard bands */

.band { background: var(--cream); }
.band.chalk { background: var(--charcoal); }

section { scroll-margin-top: 5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  margin: 0.4rem 0 1.2rem;
}
h2.on-chalk { color: var(--cream); }
.section-note { color: var(--charcoal-dim); max-width: 40rem; }
.section-note.on-chalk { color: var(--cream-dim); }
.split p { color: var(--charcoal-dim); max-width: var(--measure); margin-bottom: 1rem; }

/* ------------------------------------------ signature move: dish cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.dish-card {
  background: var(--white);
  border: 1px solid var(--charcoal-line);
  border-radius: 0.6rem;
  padding: 1.4rem 1.5rem 1.6rem;
}
.dish-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.dish-card p { color: var(--charcoal-dim); font-size: 0.95rem; }
.dish-card .price {
  margin-top: 0.9rem;
  font-family: var(--body);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--tomato-text);
}
.table-foot {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--charcoal-dim);
}
.table-foot.on-chalk { color: var(--cream-dim); }

/* -------------------------------------------- signature move: chalkboard */

.chalkboard {
  margin-top: 2.2rem;
  background: #221f1c;
  border: 1px dashed rgba(250, 243, 227, 0.28);
  border-radius: 0.5rem;
  padding: 1.8rem 2rem 2rem;
  max-width: 46rem;
}
.chalk-flag {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E8916F;
  margin-bottom: 1.2rem;
}
.chalk-menu { list-style: none; display: grid; gap: 0.95rem; }
.chalk-menu li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px dotted rgba(250, 243, 227, 0.22);
  padding-bottom: 0.8rem;
}
.chalk-menu li:last-of-type { border-bottom: none; padding-bottom: 0; }
.chalk-day {
  font-family: var(--display);
  font-size: 1.1rem;
  color: #E8916F;
  transform: rotate(-1.5deg);
}
.chalk-dish {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
}
.chalk-price {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream-dim);
}
.chalk-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
  font-style: italic;
}

/* -------------------------------------------------- signature move: quote */

.kitchen-quote {
  margin: 1.6rem 0;
  padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 3px solid var(--tomato);
  max-width: 40rem;
}
.kitchen-quote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.kitchen-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--charcoal-dim);
}

/* ------------------------------------------------------------- figures */

.pizza-figure { display: flex; justify-content: center; }
.pizza-figure svg { width: 100%; max-width: 260px; height: auto; }

/* -------------------------------------------------------------- photo note */

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  border-left: 3px solid var(--olive);
  background: var(--white);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--charcoal-dim);
  border-radius: 0 0.4rem 0.4rem 0;
}
.photo-note strong { color: var(--charcoal); }

/* -------------------------------------------- signature move: tomato CTA */

.cta-band {
  background: var(--tomato);
  color: var(--white);
}
.cta-inner {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.cta-kicker {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(2rem, 5.6vw, 3.2rem);
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
  font-size: 1.1rem;
  padding: 1.05rem 2.1rem;
}
.cta-big:hover { background: #17130f; border-color: #17130f; }

/* ----------------------------------------------------------- yhteystiedot */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.visit-block {
  border-top: 3px solid var(--tomato);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 0 0.3rem 0.3rem 0;
}
.visit-block h3 {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.96rem; color: var(--cream); }
.visit-block .small { font-size: 0.86rem; color: var(--cream-dim); margin-top: 0.4rem; }
.text-link { font-weight: 700; color: #E8916F; }
.text-link:hover { color: var(--white); }

/* --------------------------------------------------------------- footer */

.footer { border-top: 2px solid var(--tomato); background: var(--charcoal); }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.footer-cell { min-width: 0; }
.footer-label {
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.94rem; color: var(--cream); overflow-wrap: break-word; }
.footer-value a { color: #E8916F; }
.footer-meta {
  padding-bottom: 2rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  text-align: center;
  border-top: 1px solid rgba(250, 243, 227, 0.14);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------ animation */

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-phone, a, .text-link { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .doodle-wrap { justify-content: flex-start; padding-top: 0.5rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chalk-menu li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.6rem; }
}

@media (max-width: 26rem) {
  .hero-actions .cta { width: 100%; text-align: center; }
}
