/* Ainsdale Apiaries brand layer */
:root {
  --background: #373737;
  --background-deep: #2d2d2d;
  --background-soft: #414141;
  --foreground: #ffffff;
  --accent: #f5cb6e;
  --text: #ffffff;
  --text-dark: #000000;
  --muted: #d6d6d6;
  --border: rgba(245, 203, 110, 0.28);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.20);
  --shadow-md: 0 22px 60px rgba(0,0,0,.30);
  --honey: var(--accent);
  --honey-deep: var(--accent);
  --cream: var(--background);
  --paper: var(--foreground);
  --soft: var(--background-deep);
  --ink: var(--text);
  --slate: var(--text);
  --green: var(--accent);
  --green-dark: var(--background-deep);
}

html { background: var(--background); }
body { position: relative; isolation: isolate; background: var(--background); color: var(--text); }

body::before {
  content: "";
  position: fixed;
  inset: -12vh -8vw;
  z-index: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='312' viewBox='0 0 360 312'%3E%3Cg fill='none' stroke='%23f5cb6e' stroke-width='2.2'%3E%3Cpath d='M90 2h90l45 78-45 78H90L45 80z'/%3E%3Cpath d='M270 2h90l45 78-45 78h-90l-45-78z'/%3E%3Cpath d='M180 158h90l45 78-45 78h-90l-45-78z'/%3E%3Cpath d='M0 158h90l45 78-45 78H0l-45-78z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 312px;
  background-position: center top;
  transform: translate3d(-1.5%, -3%, 0) scale(1.08);
  animation: honeycomb-parallax linear both;
  animation-timeline: scroll(root block);
  will-change: transform;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
@keyframes honeycomb-parallax { from { transform: translate3d(-1.5%, -3%, 0) scale(1.08); } to { transform: translate3d(1.5%, 4%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; transform: none; } }

a { color: var(--accent); }
a:hover, a:focus { color: #fff; }
h1, h2, h3 { color: #fff; }
small, .muted, .section-heading p { color: var(--muted); }
.eyebrow, .kicker { color: var(--accent); }
.lead { color: #f4f4f4; }

.site-header { background: rgba(55,55,55,.94); border-bottom-color: var(--border); }
.header-inner { padding-block: .8rem; }
.site-brand, .logo { display: inline-flex; align-items: center; gap: .85rem; color: #fff; font-weight: 850; font-size: 1.18rem; letter-spacing: -.02em; white-space: nowrap; }
.site-brand:hover, .site-brand:focus, .logo:hover, .logo:focus { color: var(--accent); }
.site-brand-icon { display: none !important; }
.site-brand::before { content: ""; display: block; width: 4.2rem; height: 4.2rem; flex: 0 0 4.2rem; background: url("assets/Brandmark-Icon.svg") center / contain no-repeat; }
.nav-list a { color: #fff; }
.nav-list a:hover, .nav-list a:focus, .nav-list a[aria-current="page"] { background: var(--accent); color: #000; }
.nav-list .nav-auction { border-color: rgba(245,203,110,.60); }

.hero, .auction-hero { background: radial-gradient(circle at 12% 12%, rgba(245,203,110,.12), transparent 28rem), linear-gradient(135deg, rgba(55,55,55,.97) 0%, rgba(45,45,45,.96) 100%); border-bottom: 1px solid var(--border); }
.hero::before { border-color: rgba(245,203,110,.16); }
.hero-figure { background: #fff; }
.hero-figure figcaption { background: #fff; color: #4b4b4b; }
.page-hero { background: radial-gradient(circle at 85% 0%, rgba(245,203,110,.12), transparent 20rem), rgba(45,45,45,.96); border-bottom-color: var(--border); }
.page-hero p { color: var(--muted); }

.button-primary { background: var(--accent); color: #000; }
.button-primary:hover, .button-primary:focus { background: #fff; color: #000; }
.button-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.button-secondary:hover, .button-secondary:focus { background: #fff; color: #000; }
.button-quiet { background: transparent; color: var(--accent); border-color: var(--border); }
.button-quiet:hover, .button-quiet:focus { background: var(--accent); color: #000; }

.feature-band { background: rgba(45,45,45,.93); border-color: var(--border); }
.split-copy p { color: var(--muted); }
.stat-card, .card, .content-card, .timeline-card, .table-card, .auction-metric, .prize-card, .flow-step, .auction-panel, .admin-card { background: #fff; color: #000; border-color: rgba(0,0,0,.10); }
.stat-card h1, .stat-card h2, .stat-card h3, .card h1, .card h2, .card h3, .content-card h1, .content-card h2, .content-card h3, .timeline-card h1, .timeline-card h2, .timeline-card h3, .auction-panel h1, .auction-panel h2, .auction-panel h3, .prize-card h1, .prize-card h2, .prize-card h3 { color: #000; }
.stat-label, .card-kicker, .content-card .eyebrow, .auction-panel .eyebrow, .prize-card .eyebrow { color: #7b5b16; }
.stat-card strong, .auction-metric strong, .prize-card strong, .flow-step strong, .admin-card strong { color: #000; }
.stat-card p, .card p, .content-card p, .timeline-card p, .auction-panel p, .auction-panel small, .auction-metric span, .prize-card span, .flow-step span, .admin-card span { color: #505050; }
.timeline-card .clean-list li, .auction-panel .clean-list li { color: #4d4d4d; }
.content-card .clean-list li { color: #252525; font-weight: 500; }

/* Give documentary imagery room to breathe between paragraphs. */
.image-grid { margin-block: 2rem; }
.timeline-card .image-grid, .timeline-card .video-wrapper { margin-block: 2rem; }
.media-card { background: #fff; border-color: rgba(255,255,255,.10); }
.media-card figcaption { background: #fff; color: #4d4d4d; }
.label-image { background: #373737; }

/* Portrait jar photography should be fully visible rather than cropped into 4:3 cards. */
img[src$="first-harvest-jar-backlit.webp"] {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: #f7f7f7;
}

/* The finished-jars feature is intentionally one wide documentary image. */
.image-grid.single {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
}
.image-grid.single .media-card img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.callout { background: #fff; color: #000; }
.callout h2 { color: #000; }
.callout p { color: #4d4d4d; }
.callout .eyebrow { color: #7b5b16; }
.callout .button-secondary { color: #000; border-color: rgba(0,0,0,.25); }
.callout .button-secondary:hover, .callout .button-secondary:focus { background: #000; color: #fff; }
.timeline::before { background: linear-gradient(var(--accent), rgba(245,203,110,.08)); }
.timeline-date::after { background: var(--accent); border-color: var(--background); box-shadow: 0 0 0 4px rgba(245,203,110,.18); }
.timeline-date span { color: var(--accent); }
.status-pill { background: #f6e6b7; color: #4b3706; }
.status-pill.preview { background: #ececec; color: #333; }
th { background: var(--accent); color: #000; }
td { color: #222; border-bottom-color: rgba(0,0,0,.12); }
.auction-status { border-color: var(--border); background: rgba(245,203,110,.10); color: var(--accent); }
.flow-step:not(:last-child)::after { color: #000; background: var(--accent); }
.auction-panel a { color: #6b4d0c; text-decoration: underline; text-underline-offset: .16em; }
label { color: #000; }
input, select, textarea { background: #fff; color: #000; border-color: rgba(0,0,0,.24); }
input:focus, select:focus, textarea:focus { outline-color: rgba(245,203,110,.38); border-color: #8c691b; }
.checkbox-row { color: #222; }
.form-message { background: #f0f0f0; color: #222; }
.details-list summary { color: #000; }
.details-list details p, .details-list details ul { color: #4d4d4d; }

.site-footer { background: rgba(43,43,43,.96); color: #fff; border-top: 1px solid var(--border); }
.footer-inner { gap: 1rem; }
.site-footer p { color: #d8d8d8; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; color: var(--accent); font-weight: 850; font-size: 1.45rem; }
.footer-brand-logo { display: none !important; }
.footer-brand::before { content: ""; width: 5.75rem; height: 5.75rem; background: url("assets/Brandmark-Icon.svg") center / contain no-repeat; }
.footer-brand::after { content: "Ainsdale Apiaries"; }
.lottery-support { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.logo-footer { height: 4.5rem !important; width: auto !important; max-width: min(320px, 70vw); }
.site-credit { margin-top: .25rem !important; font-size: .82rem; color: #aaa !important; }
.site-credit a { color: var(--accent); }

@media (max-width: 700px) {
  .site-brand::before { width: 3.2rem; height: 3.2rem; flex-basis: 3.2rem; }
  .footer-brand::before { width: 4.3rem; height: 4.3rem; }
  .logo-footer { height: 3.6rem !important; }
  body::before { opacity: .04; background-size: 300px 260px; }
}
