/* Fairbanks Family Farms — farm-first editorial system */

:root {
  --paper: #f3ebdd;
  --paper-2: #e8dfcc;
  --cream: #faf6ed;
  --ink: #1a3324;
  --ink-soft: #3d5344;
  --leaf-deep: #1e4d32;
  --leaf: #2f6a43;
  --leaf-mid: #4a8a58;
  --leaf-bright: #6fae6a;
  --sage: #d7e3c8;
  --sage-2: #eaf1dc;
  --glow: #c5d98a;
  --line: rgba(26, 51, 36, 0.12);
  --shadow: 0 18px 40px rgba(30, 77, 50, 0.08);
  --navy: #10253f;
  --navy-2: #1a3a5c;
  --steel: #5b7388;
  --cool: #e6ebf0;
  --cool-2: #c9d3dc;
  --ball: #e8c547;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --wrap: 70rem;
  --radius: 1.15rem;
  --header-h: 4.5rem;
}

.theme-dink {
  --paper: #f4f6f8;
  --paper-2: #e6ebf0;
  --cream: #f7f9fb;
  --ink: #10253f;
  --ink-soft: #4a6278;
  --leaf-deep: #10253f;
  --leaf: #1a3a5c;
  --sage: #e6ebf0;
  --sage-2: #eef2f6;
  --glow: #c9d3dc;
  --line: rgba(16, 37, 63, 0.12);
  --shadow: 0 18px 40px rgba(16, 37, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--leaf);
}

.theme-dink a {
  color: var(--navy-2);
}

::selection {
  background: var(--glow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--leaf-mid);
  outline-offset: 3px;
}

.theme-dink :focus-visible {
  outline-color: var(--ball);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--leaf-deep);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 80;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2rem), 42rem);
  margin-inline: auto;
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.35rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.85rem;
}

.theme-dink .eyebrow {
  color: var(--steel);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: auto;
  height: 3.1rem;
  max-width: 15rem;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.15;
  }
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
}

.site-nav {
  display: none;
}

.site-nav.is-open,
.nav-toggle[aria-expanded="true"] + .site-nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--sage-2);
}

.theme-dink .site-nav a[aria-current="page"],
.theme-dink .site-nav a:hover {
  background: var(--cool);
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open,
  .nav-toggle[aria-expanded="true"] + .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
}

/* Buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--leaf-deep);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--leaf);
  color: var(--cream);
}

.btn-secondary {
  background: color-mix(in srgb, var(--sage) 70%, var(--cream));
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--sage);
  color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  color: #f7f9fb;
}

.btn-navy:hover {
  background: var(--navy-2);
  color: #fff;
}

.btn-light {
  background: #f7f9fb;
  color: var(--navy);
}

.btn-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.link-arrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: 2.75rem 0 3.5rem;
  background-image:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(197, 217, 138, 0.45), transparent 62%),
    linear-gradient(rgba(30, 77, 50, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 77, 50, 0.045) 1px, transparent 1px);
  background-size: auto, 3rem 3rem, 3rem 3rem;
}

.theme-dink .hero {
  background-image:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(232, 197, 71, 0.12), transparent 55%),
    linear-gradient(rgba(16, 37, 63, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 63, 0.045) 1px, transparent 1px);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--leaf-deep);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.25);
}

.theme-dink .badge {
  background: var(--navy);
  color: #f7f9fb;
}

@media (min-width: 880px) {
  .hero {
    padding: 4.25rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero h1 + .lede,
.page-hero h1 + .lede,
.section-head h2 + .lede {
  margin-top: 0.95rem;
}

.section-soft {
  background: color-mix(in srgb, var(--sage-2) 72%, var(--paper));
}

.section-flush {
  padding-top: 0.35rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-art {
  border-radius: 0.75rem;
  overflow: hidden;
  margin: -0.2rem -0.2rem 1rem;
  background: var(--sage-2);
}

.card-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card .eyebrow {
  margin-bottom: 0.35rem;
}

.card p {
  color: var(--ink-soft);
}

.card-navy {
  background: var(--navy);
  color: #e6ebf0;
  border-color: transparent;
}

.card-navy h2,
.card-navy strong {
  color: #f7f9fb;
}

.card-navy p {
  color: #c9d3dc;
}

.card-navy .eyebrow {
  color: var(--ball);
}

.card-navy a {
  color: #f7f9fb;
}

.callout {
  background: var(--sage-2);
  border-left: 3px solid var(--leaf-deep);
  padding: 1.15rem 1.25rem;
  border-radius: 0 0.85rem 0.85rem 0;
  color: var(--ink);
  font-weight: 500;
}

.theme-dink .callout {
  background: var(--cool);
  border-left-color: var(--ball);
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Dink band — navy / steel / cool gray */

.band-dink {
  background: var(--navy);
  color: #e6ebf0;
  padding: 3.5rem 0;
}

.band-dink h2,
.band-dink h3,
.band-dink .brand-name {
  color: #f7f9fb;
}

.band-dink .eyebrow {
  color: var(--ball);
}

.band-dink p {
  color: #c9d3dc;
}

.band-dink a:not(.btn) {
  color: #f7f9fb;
}

.dink-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0 1.4rem;
}

.dink-lockup svg {
  width: 4.4rem;
  height: auto;
  color: #f7f9fb;
  flex: 0 0 auto;
}

.dink-lockup.on-light svg {
  color: var(--navy);
}

.dink-word {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1;
  color: inherit;
}

.dink-motto {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cool-2);
}

.dink-lockup.on-light .dink-word {
  color: var(--navy);
}

.dink-lockup.on-light .dink-motto {
  color: var(--steel);
}

.dink-panel {
  background: #16325a;
  border: 1px solid rgba(201, 211, 220, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stack-cards {
  display: grid;
  gap: 0.85rem;
}

.stack-cards .card {
  background: #f7f9fb;
  box-shadow: none;
}

/* Family band */

.band-family {
  background: #24613f;
  color: var(--sage);
  padding: 3.5rem 0;
}

.band-family h2 {
  color: var(--cream);
}

.band-family .eyebrow {
  color: var(--glow);
}

.band-family a {
  color: var(--cream);
}

.family-mark {
  width: min(100%, 11rem);
  margin-inline: auto;
}

/* Forms */

.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-waitlist {
  display: grid;
  gap: 0.95rem;
}

.form-waitlist label.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-waitlist input[type="text"],
.form-waitlist input[type="email"] {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.form-waitlist fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.form-waitlist legend {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--leaf-deep);
}

.theme-dink .check input {
  accent-color: var(--navy);
}

.form-note,
.form-status {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-status[data-state="ok"] {
  color: var(--leaf);
  font-weight: 600;
}

.form-status[data-state="err"] {
  color: #8a2f2f;
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--leaf-deep);
  color: var(--sage);
  padding: 2.75rem 0 1.25rem;
  border-top: 1px solid rgba(244, 240, 228, 0.14);
}

.theme-dink .site-footer {
  background: var(--navy);
  color: var(--cool-2);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.55rem;
}

.theme-dink .site-footer h2 {
  color: var(--cool-2);
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* Page bits */

.page-hero {
  padding: 2.6rem 0 1.5rem;
}

.page-hero-photo {
  margin: 1.6rem 0 0;
}

.page-hero-photo img {
  width: 100%;
  max-height: 22rem;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.crop-grid,
.hydro-grid {
  display: grid;
  gap: 0.95rem;
  margin: 0;
}

.crop-grid figure,
.hydro-grid figure {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.crop-grid img,
.hydro-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.crop-grid figcaption,
.hydro-grid figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.crop-grid figcaption strong,
.hydro-grid figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

@media (min-width: 560px) {
  .crop-grid,
  .hydro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .crop-grid,
  .hydro-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hydro-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rule {
  height: 4px;
  border: 0;
  background: var(--glow);
  margin: 0;
}

.theme-dink .rule {
  background: linear-gradient(90deg, var(--navy-2), var(--ball) 18%, var(--navy-2));
  height: 3px;
}

.contact-box {
  display: grid;
  gap: 0.35rem;
}

.contact-box strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.muted {
  color: var(--ink-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.brand-text { display: none; }
.dink-official {
  width: min(26rem, 92%);
  height: auto;
  background: #fff;
  border-radius: 1rem;
  object-fit: contain;
  transform: translate(-0.4rem, -0.35rem);
}
.dink-official-lg { width: min(20rem, 100%); margin: 0.5rem 0 1rem; }
.dink-official-hero {
  width: min(22rem, 70vw);
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 1rem;
  object-fit: contain;
  transform: none;
  margin: 0.35rem 0 1.25rem;
  box-shadow: 0 18px 40px rgba(16, 37, 63, 0.28);
}
.dink-panel img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
}
.cart-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; margin-left: auto; margin-right: 0.75rem; }
.cart-count { min-width: 1.35rem; height: 1.35rem; border-radius: 999px; background: var(--leaf-deep); color: var(--cream); font-size: 0.75rem; display: inline-grid; place-items: center; padding: 0 0.35rem; }
.theme-dink .cart-count { background: var(--navy); }
.cart-lines { margin-bottom: 1rem; }
.cart-line { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin: 0.35rem 0; }
.header-inner { display: flex; align-items: center; gap: 0.75rem; }


/* Dink Masters: indoor court photo as page background (not the official mark) */
body.theme-dink {
  background-color: #10253f;
  color: #eef2f6;
}
body.theme-dink::before {
  opacity: 1;
  background-image:
    linear-gradient(165deg, rgba(16, 37, 63, 0.55) 0%, rgba(16, 37, 63, 0.72) 48%, rgba(16, 37, 63, 0.85) 100%),
    url("../img/dink-court-photo.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
body.theme-dink .site-header {
  background: rgba(16, 37, 63, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.theme-dink .brand-name,
body.theme-dink .brand-tag,
body.theme-dink .site-nav a,
body.theme-dink .cart-btn {
  color: #f7f9fb;
}
body.theme-dink .hero {
  background: transparent;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}
body.theme-dink .dink-hero h1 {
  color: #f7f9fb;
  text-shadow: 0 2px 24px rgba(16, 37, 63, 0.45);
  max-width: 14ch;
}
body.theme-dink .dink-hero .lede {
  color: rgba(247, 249, 251, 0.92);
  max-width: 38rem;
}
body.theme-dink .dink-hero-kicker {
  color: #e8c547;
  letter-spacing: 0.16em;
}
body.theme-dink .dink-hero .btn-navy {
  background: #e8c547;
  color: #10253f;
  border-color: #e8c547;
}
body.theme-dink .dink-hero .btn-secondary {
  background: transparent;
  color: #f7f9fb;
  border: 1px solid rgba(247, 249, 251, 0.7);
}
body.theme-dink .section {
  background: transparent;
}
body.theme-dink .card {
  background: rgba(247, 249, 251, 0.94);
  color: #10253f;
}
body.theme-dink .rule {
  opacity: 0.25;
}
body.theme-dink .site-footer {
  background: rgba(10, 20, 34, 0.88);
  color: #e6ebf0;
}
