:root {
  --choco: #4E342E; --choco-2: #6b4a42; --milk: #D9C3A8; --milk-soft: #EFE2D2;
  --taro: #E7B6C0; --matcha: #A7B892; --cream: #FDF6F0; --white: #fffdfb;
  --radius: 24px; --shadow: 0 10px 30px #4e342e14;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--choco); font: 17px/1.65 "Nunito", system-ui, sans-serif; }
a { color: var(--choco); }
h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.2; }
.hand { font-family: "Patrick Hand", cursive; } /* Caveat misplaces the macron on Latvian ā */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* nav */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--milk-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 1.5rem; text-decoration: none; }
.top nav { display: flex; gap: 20px; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: #7d9466; }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--matcha); }
.hero.hero-full { min-height: calc(100svh - 64px); padding-block: 24px; max-width: 1320px; gap: 56px; }
.hero.hero-full .hand { font-size: clamp(2.8rem, 4.5vw + 1rem, 4.8rem); }
.hero.hero-full p { font-size: clamp(1.2rem, 1vw + .9rem, 1.55rem); }
.hero.hero-full .btn { font-size: 1.15rem; padding: 18px 40px; }
.hero.hero-full .motto { font-size: .95rem; }
.page-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin: 4px 0 16px; }
.center { text-align: center; margin-top: 36px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding: 32px 16px 56px; }
.hero img { width: 100%; height: auto; display: block; border-radius: 36px; } /* logo keeps its own cream background, so forced dark mode shows a clean card instead of halo edges */
.hero .hand { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.hero p { font-size: 1.15rem; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--choco); color: var(--cream); border: 0; border-radius: 999px; padding: 14px 34px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--choco-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--choco); box-shadow: inset 0 0 0 2px var(--choco); margin-left: 8px; }
.btn.ghost:hover { background: var(--milk-soft); }
.motto { letter-spacing: .3em; font-size: .8rem; font-weight: 700; text-transform: uppercase; opacity: .7; margin-top: 28px; }

/* sections */
section { padding: 64px 0; }
.eyebrow { text-align: center; letter-spacing: .25em; font-size: .8rem; font-weight: 700; text-transform: uppercase; color: #7d9466; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; margin: 4px 0 16px; }
.lead { max-width: 640px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 36px; }
.card { border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .ico { font-size: 2rem; display: block; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.card p { margin: 0; }
.c1 { background: var(--milk); } .c2 { background: var(--matcha); } .c3 { background: var(--taro); }

.drinks { background: var(--white); border-block: 1px solid var(--milk-soft); }
.drinks .drink { max-width: 360px; margin: 24px auto 32px; }
.drink { text-align: center; padding: 24px 16px; border-radius: var(--radius); background: var(--cream); }
.drink .dot { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; box-shadow: inset 0 -8px 0 #0000000f; }
.drink h3 { margin: 0 0 4px; }
.drink p { margin: 0; font-size: .95rem; opacity: .8; }

/* survey */
.survey-logo { display: block; width: 200px; height: auto; margin: 0 auto 16px; border-radius: 28px; }
.survey { max-width: 720px; margin: 32px auto 0; background: var(--white); border-radius: 32px; padding: clamp(20px, 5vw, 40px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend, .q { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; display: block; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--cream); border: 2px solid var(--milk); cursor: pointer; transition: background .15s, border-color .15s; user-select: none; }
.chip span:hover { border-color: var(--choco-2); }
.chip input:checked + span { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--matcha); outline-offset: 2px; }
.rate span { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.rate input:checked + span { background: var(--taro); border-color: var(--choco); color: var(--choco); }
.scale { display: flex; justify-content: space-between; max-width: 300px; font-size: .85rem; opacity: .7; margin-top: 6px; }
input[type=text], input[type=password], textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--milk); border-radius: 16px; font: inherit; color: inherit; background: var(--cream); }
input[type=text]:focus-visible, input[type=password]:focus-visible, textarea:focus-visible, .btn:focus-visible { outline: 3px solid var(--matcha); outline-offset: 2px; }
.msg { max-width: 720px; margin: 24px auto 0; border-radius: 20px; padding: 16px 20px; font-weight: 700; text-align: center; }
.ok { background: var(--matcha); } .err { background: var(--taro); }

footer { text-align: center; padding: 40px 16px; background: var(--choco); color: var(--cream); }
footer .hand { font-size: 1.8rem; display: block; }
footer small { opacity: .7; letter-spacing: .25em; text-transform: uppercase; }

/* motion */
.hero img { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.card, .drink { transition: transform .2s; }
.card:hover, .drink:hover { transform: translateY(-6px) rotate(-.5deg); }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px); } }
}

.hp { position: absolute; left: -9999px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero img { max-width: 360px; margin: 0 auto; }
  .top nav { gap: 12px; font-size: .9rem; }
  .brand { font-size: 1.25rem; }
  .btn.ghost { margin: 10px 0 0; }
  /* phone: the whole banner, buttons included, fits the first screen */
  .hero.hero-full { gap: 8px; padding-block: 8px 16px; align-content: center; }
  .hero.hero-full img { width: auto; max-width: 100%; max-height: 36svh; }
  .hero.hero-full .hand { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: 6px; }
  .hero.hero-full p { font-size: 1rem; margin-bottom: 14px; }
  .hero.hero-full .btn { font-size: 1rem; padding: 12px 26px; }
  .hero.hero-full .btn { margin: 4px; }
  .hero.hero-full .motto { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* admin */
.admin h1 { margin: 32px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { border-radius: 20px; padding: 18px 20px; }
.stat b { display: block; font-family: "Fredoka", sans-serif; font-size: 2rem; line-height: 1.1; }
.stat ul { margin: 6px 0 0; padding-left: 18px; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 48px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--milk-soft); vertical-align: top; }
th { background: var(--milk); white-space: nowrap; }
tbody tr:hover { background: var(--cream); }
