/*
Theme Name: Neitsytperunafestivaali
Theme URI: https://www.neitsytperunafestivaali.fi/
Author: Kaffeli ry
Description: Neitsytperunafestivaalin teema. Sivujen sisältö luodaan automaattisesti teeman aktivoinnin yhteydessä.
Version: 1.0.13
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: neitsytperuna
*/
/* ==========================================================================
   Neitsytperunafestivaali – tyylit
   ========================================================================== */
:root {
  --forest: #123a29;
  --forest-2: #1d4f38;
  --leaf: #4f8a54;
  --cream: #fbf5e6;
  --paper: #fffaf0;
  --gold: #e7b94a;
  --gold-2: #f6d884;
  --gold-dark: #a97a12;
  --terra: #c4512f;
  --ink: #1b2a21;
  --muted: #5b6a5f;
  --radius: 22px;
  --shadow: 0 18px 45px -18px rgba(18, 58, 41, .35);
  --shadow-sm: 0 8px 24px -12px rgba(18, 58, 41, .3);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --spud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23f6d884'/%3E%3Cstop offset='1' stop-color='%23d9a32e'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M18 48C14 26 40 8 66 10c28 2 50 14 52 36 2 24-24 40-52 38C40 82 22 70 18 48Z' fill='url(%23g)'/%3E%3Cg fill='%23a97a12' opacity='.75'%3E%3Ccircle cx='46' cy='36' r='3.5'/%3E%3Ccircle cx='78' cy='30' r='3'/%3E%3Ccircle cx='64' cy='58' r='3.5'/%3E%3Ccircle cx='92' cy='52' r='2.5'/%3E%3Ccircle cx='34' cy='56' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.75 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream) var(--grain);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#progress { position: fixed; inset: 0 auto auto 0; height: 4px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--gold), var(--terra)); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-header.solid { background: rgba(251, 245, 230, .93); backdrop-filter: blur(14px); color: var(--forest); box-shadow: 0 1px 0 rgba(18, 58, 41, .1); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-family: "Fraunces", serif; font-weight: 800; line-height: 1; }
.brand:hover { color: inherit; }
.brand svg { width: 46px; height: 34px; flex: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); transition: transform .4s; }
.brand:hover svg { transform: rotate(-10deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; font-size: 1.2rem; }
.brand-text small { font: 600 .66rem/1.2 "Inter", sans-serif; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.menu { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { display: block; color: inherit; text-decoration: none; font-weight: 500; font-size: .9rem; padding: .5rem .8rem; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.menu a:hover { background: rgba(231, 185, 74, .3); color: inherit; }
.menu a[aria-current="page"], .menu .current-menu-item > a, .menu .current-menu-ancestor > a { background: var(--gold); color: #3a2a00; }
.menu .cta-link { background: var(--gold); color: #3a2a00; margin-left: .35rem; font-weight: 600; }
.menu .cta-link:hover { background: var(--gold-2); color: #3a2a00; }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; list-style: none; margin: 0; padding: .5rem; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { color: var(--ink); border-radius: 10px; }
.sub a:hover { background: var(--cream); color: var(--forest); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 95; color: inherit; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: currentColor; border-radius: 3px; transition: .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
body.menu-open .burger { color: #fff; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: transparent; backdrop-filter: none; box-shadow: none; color: #fff; }
  .menu {
    position: fixed; inset: 0; z-index: 90; flex-direction: column; justify-content: center; align-items: stretch; gap: .15rem;
    padding: 5.5rem 2rem 2rem; background: radial-gradient(900px 500px at 90% 0, rgba(231, 185, 74, .22), transparent 60%), var(--forest);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s; overflow-y: auto;
  }
  body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu a { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 700; color: #fff; padding: .4rem .5rem; border-radius: 12px; }
  .menu a:hover { background: transparent; color: var(--gold); }
  .menu a[aria-current="page"] { background: transparent; color: var(--gold); }
  .menu .cta-link { margin: .5rem 0 0; background: transparent; color: #fff; font-weight: 700; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 1rem; display: grid; }
  .sub a { color: rgba(255, 255, 255, .8); font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 500; }
  .sub a:hover { background: transparent; color: var(--gold); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; background: var(--forest); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background: center / cover no-repeat; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 500px at 85% 15%, rgba(231, 185, 74, .28), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(79, 138, 84, .35), transparent 60%),
  linear-gradient(180deg, rgba(10, 36, 24, .55), rgba(10, 36, 24, .9)); }
.hero .container { padding: 8.5rem 0 8rem; position: relative; }
.badge { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); padding: .45rem 1.05rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(231, 185, 74, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(231, 185, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 185, 74, 0); } }
.hero h1 { font-size: clamp(3.1rem, 12.5vw, 10rem); line-height: .92; margin: 1.1rem 0 1.4rem; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.5rem); max-width: 34ch; opacity: .95; animation: fadeUp 1s .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: .95; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; animation: fadeUp 1s .7s both; }
.chip { display: flex; align-items: center; gap: .75rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); padding: .7rem 1.15rem; border-radius: 18px; }
.chip b { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; line-height: 1.15; }
.chip small { display: block; opacity: .8; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.chip .ico { font-size: 1.6rem; }
a.chip { color: inherit; text-decoration: none; transition: background .25s, transform .25s; }
a.chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: fadeUp 1s .9s both; }
.scroll-cue { position: absolute; left: 50%; bottom: 5.5rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 100px); display: block; }
.wave path { fill: var(--cream); }
.wave.paper path { fill: var(--paper); }
.wave.forest path { fill: var(--forest); }

.spud { display: none !important; }
.spud { position: absolute; background: var(--spud) center / contain no-repeat; pointer-events: none; z-index: -1; opacity: .95; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); translate: 0 var(--py, 0px); animation: float 9s ease-in-out infinite; }
.spud.s1 { width: clamp(90px, 14vw, 220px); aspect-ratio: 4/3; right: 6%; top: 18%; --r: 14deg; }
.spud.s2 { width: clamp(60px, 8vw, 130px); aspect-ratio: 4/3; right: 22%; bottom: 20%; --r: -22deg; animation-delay: -3s; filter: hue-rotate(-10deg) drop-shadow(0 14px 16px rgba(0, 0, 0, .35)); }
.spud.s3 { width: clamp(50px, 6vw, 100px); aspect-ratio: 4/3; right: 40%; top: 14%; --r: 30deg; animation-delay: -5s; opacity: .7; }
.spud.s4 { width: clamp(70px, 10vw, 150px); aspect-ratio: 4/3; left: 3%; bottom: 14%; --r: -8deg; animation-delay: -2s; opacity: .8; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 6deg)); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 999px; font: 600 1rem/1 "Inter", sans-serif; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, box-shadow .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: #3a2a00; box-shadow: 0 10px 25px -8px rgba(231, 185, 74, .8); }
.btn-gold:hover { background: var(--gold-2); color: #3a2a00; }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); color: #fff; }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: #fff; }

/* ---------- Marquee ---------- */
.marquee { display: none !important; }
.marquee { background: var(--gold); color: #3a2a00; overflow: hidden; white-space: nowrap; transform: rotate(-1.2deg); margin: -1.2rem -2% 0; position: relative; z-index: 5; box-shadow: var(--shadow-sm); }
.marquee .track { display: inline-flex; animation: scroll 32s linear infinite; padding: .85rem 0; }
.marquee span { font-family: "Fraunces", serif; font-weight: 800; font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.9rem); padding: 0 1.4rem; }
.marquee span::after { content: "🥔"; font-style: normal; margin-left: 2.8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; padding: 11rem 0 7.5rem; background: var(--forest); isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img, none) center / cover no-repeat; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(700px 400px at 90% 0, rgba(231, 185, 74, .3), transparent 60%),
  linear-gradient(180deg, rgba(18, 58, 41, .6), rgba(18, 58, 41, .95)); }
.crumbs { font-size: .85rem; letter-spacing: .06em; opacity: .85; margin-bottom: 1rem; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 900; margin-bottom: .3em; letter-spacing: -.025em; }
.page-hero h1 em { color: var(--gold); font-weight: 600; }
.page-hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 48ch; opacity: .92; margin: 0; }
.page-hero .spud { z-index: -1; }
.page-hero .spud.s1 { right: 8%; top: 28%; }
.page-hero .spud.s2 { right: 26%; bottom: 14%; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section.alt { background: var(--paper) var(--grain); }
.section.dark { background: var(--forest) var(--grain); color: #f2eddd; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--gold-2); }
.section.dark .kicker { color: var(--gold); }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font: 700 .78rem/1 "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.title { font-size: clamp(2rem, 5.2vw, 3.6rem); color: var(--forest); }
.title em { font-style: italic; font-weight: 600; color: var(--terra); }
.dark .title em { color: var(--gold); }
.lead-p { font-size: 1.2rem; color: var(--muted); }
.dark .lead-p { color: rgba(242, 237, 221, .85); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 1fr; } .split.rev > :first-child { order: 2; } }
.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mt { margin-top: 3rem; }

/* ---------- Frames / photos ---------- */
.frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--leaf), var(--forest-2)); box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.frame.cover { aspect-ratio: var(--ar, 4/3); }
.frame.cover img { height: 100%; object-fit: cover; }
.frame:hover img { transform: scale(1.05); }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; font-size: .88rem; line-height: 1.4; color: #fff; background: linear-gradient(transparent, rgba(8, 28, 18, .85)); }
.frame.broken { min-height: 180px; }
.frame.broken::before { content: ""; position: absolute; inset: 0; background: var(--spud) center / 34% no-repeat; opacity: .6; }
.stack { position: relative; padding: 0 0 3rem; }
.stack .p1 { width: 82%; transform: rotate(-2.5deg); border: 10px solid #fff; border-radius: 10px; }
.stack .p2 { position: absolute; width: 52%; right: 0; bottom: 0; transform: rotate(4deg); border: 10px solid #fff; border-radius: 10px; }
.stack .frame { border-radius: 10px; }
.stack .p1, .stack .p2 { box-shadow: var(--shadow); background: #fff; }
.stack .p1 .frame, .stack .p2 .frame { box-shadow: none; }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(231, 185, 74, .75); z-index: 3; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.stat { background: #fff; border-radius: 20px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); border-top: 5px solid var(--gold); }
.stat b { display: block; font-family: "Fraunces", serif; font-size: 2.6rem; line-height: 1; color: var(--forest); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-size: 1.7rem; margin-bottom: 1.1rem; transform: rotate(-6deg); }
.card h3 { font-size: 1.45rem; color: var(--forest); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card.green { background: var(--forest-2); color: #eef3e8; }
.card.green h3 { color: #fff; }
.card.green p { color: rgba(238, 243, 232, .85); }

/* news */
.news { display: flex; flex-direction: column; padding: 0; }
.news .frame { border-radius: 0; box-shadow: none; aspect-ratio: 16/10; }
.news .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.tag { font: 700 .72rem/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: .7rem; }
.news h3 a { color: var(--forest); text-decoration: none; }
.news h3 a:hover { color: var(--terra); }
.more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(5px); }

/* ---------- Feature (2026) ---------- */
.feature { position: relative; border-radius: 32px; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); color: #fff; padding: clamp(2rem, 6vw, 4.5rem); overflow: hidden; box-shadow: var(--shadow); }
.feature::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 185, 74, .4), transparent 65%); }
.feature .spud { position: absolute; right: 4%; bottom: -30px; width: clamp(120px, 20vw, 260px); aspect-ratio: 4/3; z-index: 0; opacity: .9; }
.feature > * { position: relative; z-index: 1; }
.feature .date { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1; color: var(--gold); margin-bottom: .4rem; }
.feature p { max-width: 56ch; }
.feature .poem { font-family: "Fraunces", serif; font-style: italic; font-size: 1.25rem; color: var(--gold-2); border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 1.5rem 0; }

/* ---------- Quote ---------- */
.quote { position: relative; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 28em; font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.3; position: relative; }
.quote blockquote::before { content: "”"; display: block; font-size: 8rem; line-height: .6; color: var(--gold); font-style: normal; font-weight: 900; margin-bottom: 1rem; }
.quote cite { display: block; margin-top: 1.5rem; font: 600 .9rem/1.4 "Inter", sans-serif; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 3rem 0 1rem; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: linear-gradient(var(--gold), var(--leaf)); transform: translateX(-50%); }
.t-item { position: relative; width: 50%; padding: 0 3.2rem 2.6rem 0; text-align: right; }
.t-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.6rem 3.2rem; text-align: left; }
.t-item::before { content: ""; position: absolute; right: -11px; top: 1.3rem; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 5px solid var(--cream); box-shadow: 0 0 0 3px var(--gold); }
.t-item:nth-child(even)::before { right: auto; left: -11px; }
.t-card { background: #fff; border-radius: 20px; padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); display: inline-block; text-align: left; max-width: 100%; }
.t-year { font-family: "Fraunces", serif; font-weight: 900; font-size: 2.2rem; color: var(--gold-dark); line-height: 1; display: block; margin-bottom: .3rem; }
.t-card h3 { font-size: 1.15rem; margin-bottom: .35rem; color: var(--forest); }
.t-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.t-card .frame { margin-top: .9rem; border-radius: 14px; box-shadow: none; }
.t-item.off .t-card { background: transparent; border: 2px dashed rgba(18, 58, 41, .3); box-shadow: none; }
.t-item.off::before { background: var(--cream); box-shadow: 0 0 0 3px rgba(18, 58, 41, .3); }
.t-item.now .t-card { background: var(--forest); color: #fff; }
.t-item.now .t-card h3, .t-item.now .t-year { color: var(--gold); }
.t-item.now .t-card p { color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) {
  .timeline::before { left: 14px; }
  .t-item, .t-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2rem 3rem; text-align: left; }
  .t-item::before, .t-item:nth-child(even)::before { left: 4px; right: auto; }
}

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 1.1rem; margin-top: 2rem; }
.gallery .frame { break-inside: avoid; margin: 0 0 1.1rem; cursor: zoom-in; border-radius: 18px; }
.gallery .frame figcaption { opacity: 0; transform: translateY(8px); transition: .3s; }
.gallery .frame:hover figcaption, .gallery .frame:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery .frame figcaption { opacity: 1; transform: none; } }
.year-head { display: flex; align-items: baseline; gap: 1rem; margin-top: 4.5rem; }
.year-head:first-of-type { margin-top: 0; }
.year-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--forest); margin: 0; }
.year-head span { color: var(--muted); }
.year-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(8, 24, 16, .94); padding: 3rem 1rem; }
.lb.open { display: grid; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb img { max-height: 82vh; max-width: min(1200px, 94vw); width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb p { color: #fff; text-align: center; margin: 1rem auto 0; max-width: 60ch; font-size: .95rem; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--gold); color: #3a2a00; }
.lb .x { top: 1.2rem; right: 1.2rem; } .lb .pv { left: 1rem; top: 50%; } .lb .nx { right: 1rem; top: 50%; }

/* ---------- Restaurants ---------- */
.resto { display: grid; gap: 1.5rem; background: #fff; border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); margin-bottom: 1.6rem; }
@media (min-width: 820px) { .resto { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.resto h3 { font-size: 1.7rem; color: var(--forest); margin-bottom: .2rem; }
.resto .meta { font-size: .88rem; color: var(--terra); font-weight: 600; margin-bottom: 1rem; }
.resto .dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.resto .dishes figure { margin: 0; }
.resto .dishes .frame { border-radius: 16px; }
.resto .dishes figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; line-height: 1.45; }
.price { display: inline-flex; align-items: center; gap: .6rem; background: var(--gold); color: #3a2a00; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; }

/* ---------- People / partners ---------- */
.person { text-align: center; }
.avatar { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 800; font-size: 1.9rem; color: var(--forest); background: radial-gradient(circle at 30% 25%, var(--gold-2), var(--gold)); box-shadow: 0 10px 22px -8px rgba(169, 122, 18, .7); }
.person h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.person .role { color: var(--terra); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.person a { word-break: break-word; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 190px; gap: .9rem; }
.partner img { max-height: 70px; width: auto; object-fit: contain; }
.partner h3 { font-size: 1.15rem; margin: 0; }
.partner .mono { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; font-family: "Fraunces", serif; font-weight: 900; font-size: 1.6rem; color: var(--forest); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.thanks { columns: 2 260px; column-gap: 2rem; padding: 0; list-style: none; }
.thanks li { padding: .45rem 0 .45rem 2rem; position: relative; break-inside: avoid; }
.thanks li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 14px; background: var(--spud) center / contain no-repeat; }

/* ---------- Article / prose ---------- */
.prose { font-size: 1.12rem; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--forest); margin-top: 2.2em; }
.prose h3 { color: var(--forest); font-size: 1.4rem; margin-top: 1.8em; }
.prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.6rem; border-left: 5px solid var(--gold); background: #fff; border-radius: 0 18px 18px 0; font-family: "Fraunces", serif; font-style: italic; font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.prose .verse { white-space: pre-line; font-family: "Fraunces", serif; font-style: italic; text-align: center; padding: 1.4rem; background: var(--cream); border-radius: 18px; border: 1px dashed rgba(18, 58, 41, .3); line-height: 1.6; }
.haiku { text-align: center; margin: 2rem auto; padding: 1.8rem; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: var(--gold-2); border-radius: 24px; font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; line-height: 1.5; white-space: pre-line; box-shadow: var(--shadow); }
.speech { background: #fff; border-radius: 30px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-sm); margin-bottom: 3rem; }
.speech header { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; margin-bottom: 1.5rem; border-bottom: 2px solid var(--cream); padding-bottom: 1rem; }
.speech header h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--forest); }
.speech header .yr { font-family: "Fraunces", serif; font-weight: 900; font-size: 2.4rem; color: var(--gold-dark); line-height: 1; }
.speech .frame { max-width: 420px; margin: 2rem auto 0; }
.callout { display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow-sm); border: 2px solid var(--gold); }
.callout .big { font-size: 2.4rem; line-height: 1; }
.fee { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.fee > div { background: #fff; border-radius: 24px; padding: 1.8rem; text-align: center; box-shadow: var(--shadow-sm); border-top: 6px solid var(--gold); }
.fee b { display: block; font-family: "Fraunces", serif; font-size: 3.4rem; line-height: 1; color: var(--forest); }
.fee span { color: var(--muted); font-weight: 500; }
.note { font-size: .9rem; color: var(--muted); background: rgba(231, 185, 74, .18); border-radius: 12px; padding: .7rem 1rem; display: inline-block; }
.judge-grid { counter-reset: j; }
.judge { position: relative; }
.judge::before { counter-increment: j; content: counter(j); position: absolute; right: 1.2rem; top: .6rem; font-family: "Fraunces", serif; font-weight: 900; font-size: 4rem; color: rgba(231, 185, 74, .35); line-height: 1; }
.map-link { display: inline-flex; gap: .5rem; align-items: center; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: .5rem 0; border-bottom: 1px solid rgba(18, 58, 41, .1); }
.list-clean li:last-child { border: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #0d2a1d var(--grain); color: #c9d6cb; padding: 6rem 0 2rem; margin-top: -1px; }
.site-footer .wave { top: -1px; bottom: auto; transform: rotate(180deg); }
.site-footer .wave path { fill: var(--cream); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot-grid h4 { font: 700 .78rem/1 "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .55rem; }
.site-footer a { color: #e8efe9; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-brand { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 1.8rem); color: #fff; line-height: 1.1; margin-bottom: 1rem; overflow-wrap: anywhere; }
.foot-brand em { color: var(--gold); font-weight: 600; }
.foot-grid .social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.foot-grid .social li { margin: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #e8efe9; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #3a2a00; text-decoration: none; transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.foot-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
#totop { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gold); color: #3a2a00; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
#totop.show { opacity: 1; transform: none; pointer-events: auto; }
#totop:hover { background: var(--gold-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .hero .container { padding: 7rem 0 7rem; }
  .scroll-cue { display: none; }
  .stack .p1 { width: 90%; }
  .page-hero { padding: 9rem 0 6rem; }
}
@media print {
  .site-header, #progress, #totop, .wave, .marquee, .spud { display: none !important; }
  .page-hero, .hero { background: none; color: #000; min-height: 0; padding: 1rem 0; }
  .reveal { opacity: 1; transform: none; }
}
