/* Shared styles for the fruit pages (/fruit/<name>/). Tokens match public/index.html. */
:root {
  color-scheme: light;
  --sun: #F7D117;
  --sun-soft: #FFF1A8;
  --ink: #2B1B30;
  --ink-soft: #5A4A5E;
  --haskap: #4B2A5C;
  --cherry: #C8262E;
  --leaf: #3F7A34;
  --leaf-soft: #E4F0D8;
  --sky: #DDEFF8;
  --paper: #FFFCF2;
  --white: #FFFFFF;
  --line: #EADFC4;
  --radius: 18px;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--haskap); }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--cherry); line-height: 1; display: block; margin-bottom: 6px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.02em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 3px solid var(--ink); color: var(--ink); background: var(--white);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn.red { background: var(--cherry); color: var(--white); }
.btn.yellow { background: var(--sun); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Header */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 252, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; }
.brand span { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cherry); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 8px 12px; border-radius: 999px; font-size: .98rem; }
.nav a:hover { background: var(--sun-soft); }
.topbar .btn { padding: 9px 18px; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 920px) {
  html { scroll-padding-top: 128px; }
  .topbar .wrap { flex-wrap: wrap; gap: 8px 20px; min-height: 64px; padding-top: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; padding-bottom: 8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: .92rem; padding: 6px 10px; }
}
@media (max-width: 460px) { .topbar .btn span { display: none; } .brand small { display: none; } }

/* Fruit hero */
.fhero { background: var(--tint); border-bottom: 3px solid var(--ink); }
.fhero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 40px 56px; }
@media (max-width: 860px) { .fhero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.crumb { display: inline-block; font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.crumb:hover { text-decoration: underline; }
.fhero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.fhero .aka { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; color: var(--cherry); line-height: 1; margin-top: 6px; }
.fhero .lede { color: var(--ink); margin-top: 18px; }
.quick { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.quick li { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 4px 0 var(--ink); }
.quick b { display: block; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cherry); }
.quick span { font-weight: 700; font-size: .98rem; line-height: 1.35; display: block; margin-top: 2px; }
.fhero-art { display: grid; justify-items: center; }
.fhero-art figure { margin: 0; width: 100%; max-width: 400px; }
.fhero-photo { border: 6px solid var(--white); border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 18px 40px rgba(43,27,48,.25); transform: rotate(2deg); background: var(--ink); }
.fhero-photo img { width: 100%; height: 100%; object-fit: cover; }
.fhero-art figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.fhero-art figcaption a { color: inherit; }
.big-icon { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; background: var(--white); border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(43,27,48,.18); display: grid; place-items: center; transform: rotate(-4deg); }
.big-icon svg { width: 64%; height: 64%; }

/* Body sections */
.about-fruit .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-fruit .wrap { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 16px; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; max-width: 64ch; }
.uses { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 0 var(--ink); }
.uses h3 { font-size: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.checklist li svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

.health { background: var(--leaf-soft); border-block: 3px solid var(--ink); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.benefits li { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.benefits b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--leaf); margin-bottom: 4px; }
.benefits span { color: var(--ink-soft); font-size: .98rem; }
.fine-note { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }

.recipes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .recipes-grid { grid-template-columns: minmax(0, 1fr); } }
.recipe { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 0 var(--ink); overflow: hidden; }
.recipe header { background: var(--sun); border-bottom: 3px solid var(--ink); padding: 20px 24px; }
.recipe header h3 { font-size: 1.6rem; }
.recipe header p { margin-top: 6px; font-size: .98rem; }
.recipe .makes { display: inline-block; margin-top: 10px; font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }
.recipe .body { padding: 20px 24px 26px; display: grid; gap: 16px; }
.recipe h4 { margin: 0; font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--cherry); line-height: 1; }
.recipe ul, .recipe ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.recipe li::marker { color: var(--cherry); font-weight: 800; }
.recipe .tip { background: var(--paper); border: 2px dashed var(--leaf); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }

.picking-tips { background: var(--sky); border-block: 3px solid var(--ink); }
.picking-tips .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .picking-tips .wrap { grid-template-columns: minmax(0, 1fr); } }
.tips { background: var(--white); border: 3px dashed var(--leaf); border-radius: var(--radius); padding: 26px; }
.tips h3 { color: var(--leaf); font-size: 1.5rem; }
.tips ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.tips li::marker { color: var(--cherry); }
.cta { display: grid; gap: 16px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.more-fruit ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.more-fruit a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.more-fruit a:hover { background: var(--sun-soft); }
.more-fruit svg { width: 28px; height: 28px; }

/* Footer */
footer { background: var(--ink); color: #E8DFEA; padding-block: 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer .brand { color: var(--white); margin-right: 0; }
footer .brand small { color: var(--sun); }
footer a { color: var(--sun); font-weight: 700; }
footer .fine { font-size: .9rem; }
