/* Rubelle's Strawberry Patch – public styles (mobile first) */
:root {
  --primary: #c41e24;
  --accent: #1e6b3c;
  --bg: #fbf5e6;
  --ink: #3a2a22;
  --paper: #fffdf7;
  --tint: color-mix(in srgb, var(--primary) 7%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --primary-dark: color-mix(in srgb, var(--primary) 82%, black);
  --accent-dark: color-mix(in srgb, var(--accent) 82%, black);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -8px rgb(60 20 10 / .18);
  --wrap: 1140px;
  --gutter: 16px;
  --gingham: repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 22%, transparent) 0 14px, transparent 14px 28px),
             repeating-linear-gradient(0deg, color-mix(in srgb, var(--primary) 22%, transparent) 0 14px, transparent 14px 28px);
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 46px; padding: .7em 1.4em; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font: 800 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--primary-dark);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn--large { font-size: 1.1rem; padding: .85em 1.7em; }
.btn--small { min-height: 38px; padding: .5em 1em; font-size: .9rem; }
.btn--accent { background: var(--accent); box-shadow: 0 3px 0 var(--accent-dark); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.text-link { font-weight: 800; text-decoration: none; display: inline-block; margin-top: .5em; }
.text-link:hover { text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name { font: 900 1.45rem/1 var(--font-head); color: var(--primary); }
.brand__sub { font: 800 .72rem/1.3 var(--font-body); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.nav-toggle {
  width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--tint);
  display: grid; place-items: center; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; padding: 8px var(--gutter) 16px;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-weight: 800; font-size: 1.1rem;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--primary); }
@media (min-width: 900px) {
  .brand__logo { width: 60px; height: 60px; }
  .brand__name { font-size: 1.7rem; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a { padding: 8px 14px; border: 0; border-radius: 999px; font-size: 1rem; }
  .site-nav a:hover { background: var(--tint); }
  .site-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(48px, 9vw, 96px) 0; position: relative; }
.sec__title { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--primary); }
.sec__head { text-align: center; max-width: 720px; margin: 0 auto clamp(24px, 5vw, 44px); }
.sec__intro { color: var(--muted); font-size: 1.1rem; }
.bg-tint { background: var(--tint); }
.bg-gingham { background: var(--bg) var(--gingham); }
.bg-primary { background: var(--primary); color: #fff; }
.bg-accent { background: var(--accent); color: #fff; }
.bg-primary .sec__title, .bg-accent .sec__title,
.bg-primary .quote__text, .bg-accent .quote__text { color: #fff; }
.bg-primary a:not(.btn), .bg-accent a:not(.btn) { color: #fff; }
.bg-primary .btn:not(.btn--accent) { background: #fff; color: var(--primary); box-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.bg-accent .btn--accent { background: #fff; color: var(--accent); box-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.bg-primary .sec__intro, .bg-accent .sec__intro { color: rgb(255 255 255 / .85); }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose h3, .prose h4 { color: var(--accent); margin-top: 1em; }
.kicker {
  display: inline-block; font: 800 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .14em;
  padding: .55em 1em; border-radius: 999px; background: var(--accent); color: #fff; margin-bottom: 1.1em;
}

/* Images */
.img-slot { margin: 0; position: relative; overflow: hidden; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.framed { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--tint); }
.framed::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / .55);
}

/* Hero */
.sec--hero { padding: 0; }
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero__media, .hero__media .img-slot { position: absolute; inset: 0; z-index: -2; }
.hero__media { background: var(--bg) var(--gingham); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 70%);
}
.hero:has(.hero__img img) .hero__overlay {
  background: linear-gradient(180deg, rgb(30 12 8 / .25), rgb(30 12 8 / .7) 75%);
}
.hero:has(.hero__img img) .hero__title, .hero:has(.hero__img img) .hero__body { color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 40px; padding-bottom: 56px; }
.hero__logo {
  width: min(240px, 62vw); height: auto; border-radius: 50%;
  filter: drop-shadow(0 12px 28px rgb(60 20 10 / .35)); animation: bob 6s ease-in-out infinite;
}
.hero__title { font-size: clamp(2rem, 7.5vw, 3.6rem); color: var(--primary-dark); margin-bottom: .35em; }
.hero__body { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 38em; margin: 0 auto 1.4em; }
@media (min-width: 900px) {
  .hero__content { flex-direction: row; text-align: left; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
  .hero__logo { width: 340px; flex: none; }
  .hero__body { margin-left: 0; }
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } html { scroll-behavior: auto; } }

/* Page head */
.sec--page_head { padding: 0; }
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--bg) var(--gingham); }
.page-head__media, .page-head__media .img-slot { position: absolute; inset: 0; z-index: -2; }
.page-head__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), color-mix(in srgb, var(--bg) 85%, transparent)); }
.page-head--photo .page-head__overlay { background: linear-gradient(180deg, rgb(30 12 8 / .3), rgb(30 12 8 / .65)); }
.page-head--photo .page-head__title, .page-head--photo .page-head__lead { color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .35); }
.page-head__content { text-align: center; padding-top: clamp(56px, 10vw, 110px); padding-bottom: clamp(48px, 9vw, 96px); }
.page-head__title { font-size: clamp(2.3rem, 8vw, 4rem); color: var(--primary); margin-bottom: .2em; }
.page-head__lead { font-size: clamp(1.1rem, 3vw, 1.35rem); max-width: 36em; margin: 0 auto; font-weight: 600; }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .is-reversed .split__img { order: -1; }
  .split--noimg { grid-template-columns: 1fr; max-width: 760px; }
}

/* Cards */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); position: relative; }
.card__img { aspect-ratio: 4 / 3; background: var(--tint); }
.card__body { padding: 22px 22px 26px; }
.card__title { font-size: 1.4rem; color: var(--primary); }
.card a:not(.btn) { color: var(--primary); }

/* Info boxes */
.info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.info-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 24px 26px; box-shadow: var(--shadow);
  border-top: 6px solid var(--primary); position: relative;
}
.info-card:nth-child(even) { border-top-color: var(--accent); }
.info-card__title { font-size: 1.35rem; color: var(--primary); }
.info-card:nth-child(even) .info-card__title { color: var(--accent); }
.info-card a:not(.btn) { color: var(--primary); }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { position: relative; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: var(--tint); cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__open:hover img { transform: scale(1.04); }
.gallery__caption { font-size: .92rem; color: var(--muted); margin: 6px 2px 0; }
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 40px 0; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgb(20 8 5 / .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }

/* Wide image */
.wide-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 21 / 9; background: var(--tint); }
@media (max-width: 699px) { .wide-img { aspect-ratio: 4 / 3; } }
.wide-img__caption { text-align: center; color: var(--muted); margin-top: 12px; }

/* Banner */
.banner {
  display: grid; gap: 18px; justify-items: center; text-align: center;
  background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 6vw, 48px);
  box-shadow: var(--shadow); border: 3px dashed color-mix(in srgb, var(--primary) 40%, transparent);
}
.banner__berry { width: 64px; height: 64px; }
.banner__title { font-size: clamp(1.6rem, 4.5vw, 2.2rem); color: var(--primary); }
@media (min-width: 860px) {
  .banner { grid-template-columns: auto 1fr auto; text-align: left; align-items: center; justify-items: start; gap: 32px; }
}

/* Quote */
.quote { text-align: center; }
.quote__text { margin: 0 0 .6em; font: 800 clamp(1.6rem, 5vw, 2.5rem)/1.25 var(--font-head); color: var(--primary); }
.quote__by { font-weight: 800; color: var(--accent); }
.bg-primary .quote__by, .bg-accent .quote__by { color: rgb(255 255 255 / .85); }

/* Contact */
.contact { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.1fr 1fr; align-items: start; } .contact--nomap { grid-template-columns: 1fr; } }
.info-grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact__body { margin-top: 22px; }
.contact__map iframe { width: 100%; height: clamp(300px, 60vw, 480px); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--tint); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-list a { font-weight: 700; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent); color: #fff; margin-top: 0; }
.gingham-strip { height: 16px; background: #fff var(--gingham); background-size: auto; }
.site-footer__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer__brand img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .25)); }
.site-footer__tagline { font: 700 1.15rem/1.4 var(--font-head); }
.site-footer__h { font-size: 1.1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, #fff 75%, var(--accent)); margin-bottom: .8em; }
.site-footer a { color: #fff; }
.social { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; min-height: 44px; }
.social svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgb(255 255 255 / .14); transition: background .15s, transform .15s; flex: none; }
.social a:hover svg { background: var(--primary); transform: translateY(-2px); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgb(255 255 255 / .2); padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); font-size: .9rem; color: rgb(255 255 255 / .8);
}
.admin-link { color: rgb(255 255 255 / .7) !important; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }

/* ---------- Login ---------- */
.login { min-height: 70vh; display: grid; place-items: center; padding-left: var(--gutter); padding-right: var(--gutter); }
.login__card {
  width: 100%; max-width: 400px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 24px; display: grid; gap: 14px; text-align: center; justify-items: center;
}
.login__card h1 { color: var(--primary); font-size: 1.8rem; margin: 0; }
.login__card label { width: 100%; text-align: left; font-weight: 700; display: grid; gap: 6px; }
.login__card input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.login__card input:focus { border-color: var(--accent); outline: none; }
.login__card .btn { width: 100%; }
.login__error { background: color-mix(in srgb, var(--primary) 12%, white); color: var(--primary-dark); padding: 10px 14px; border-radius: 10px; width: 100%; margin: 0; font-weight: 700; }

/* Space between text and a following button */
.prose + .btn, .prose + [data-btn], .hero__body + .btn { margin-top: 1.3em; }
.hero__body { margin-bottom: 0; }
