/* Brewster Oysters — 2026 redesign
   Static, self-contained, no external fonts or trackers. */

:root {
  --sand: #f3eee3;
  --sand-deep: #e4d9c4;
  --paper: #fffcf6;
  --ink: #1e2c32;
  --ink-soft: #3c4c54;
  --navy: #163246;
  --navy-deep: #0f2433;
  --sea: #1f5368;
  --sea-hover: #163d4d;
  --kelp: #2f5a12;
  --kelp-bright: #3d6e14;
  --sunset: #b5521f;
  --gold: #b8945c;
  --rule: #d5cbb6;
  --foam: #fffdf8;
  --focus: #b5521f;
  --font-serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --content: 42rem;
  --radius: 0.55rem;
  --shadow: 0 1px 2px rgba(22, 50, 70, 0.06), 0 8px 24px rgba(22, 50, 70, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 0.35rem 0.35rem;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 2.35rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 0.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kelp);
}

.brand-place {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0.35rem;
}

.site-nav a:hover {
  color: var(--kelp);
  background: var(--sand);
}

.site-nav a[aria-current="page"] {
  color: var(--kelp);
  box-shadow: inset 0 -2px 0 var(--kelp-bright);
  border-radius: 0;
  background: transparent;
}

.site-nav a[target="_blank"]::after {
  content: "";
}

/* Hero */

.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 1;
  object-fit: cover;
  object-position: center center;
}

.hero-caption {
  background: var(--navy-deep);
  color: #fff;
  padding: 0.85rem 1.25rem 0.95rem;
}

.hero-caption p {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-style: italic;
  line-height: 1.3;
}

/* Layout */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding: 2.25rem 0 3.5rem;
}

.page-intro {
  margin-bottom: 2rem;
}

.page-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunset);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

h2 {
  margin: 2.1rem 0 0.85rem;
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

p {
  margin: 0 0 1rem;
}

.lede,
.prose {
  max-width: var(--content);
}

.lede {
  font-size: 1.12rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.7fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.stamp {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.stamp img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.stamp figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

.pullquote {
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  border-left: 4px solid var(--kelp-bright);
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
}

.pullquote p {
  margin: 0;
}

/* Availability / cards */

.section-head {
  margin-top: 2.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 2px rgba(22, 50, 70, 0.04);
}

.card p,
.place-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card a,
.place-card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover,
.place-card a:hover {
  color: var(--sunset);
  text-decoration: underline;
}

.group-label {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 0.85rem;
}

.place-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
}

.place-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
}

/* Gallery */

.gallery-feature {
  margin: 0 0 1.5rem;
  background: var(--navy-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 1;
  object-fit: cover;
  object-position: center center;
}

.gallery-feature figcaption,
.gallery-grid figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.gallery-feature figcaption {
  background: var(--paper);
  color: var(--ink-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 50, 70, 0.04);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  background: var(--sand-deep);
}

.gallery-grid .is-illustration img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: var(--paper);
  mix-blend-mode: multiply;
}

.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--sand-deep);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Store */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.15rem;
}

.product-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: center center;
  background: #e8e0d0;
}

.product-card.wide {
  max-width: 34rem;
}

.product-card.wide img {
  aspect-ratio: 400 / 277;
  object-fit: cover;
  background: #d9cbb0;
}

.product-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.product-card h3 {
  margin-bottom: 0.3rem;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-row {
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.button:hover {
  background: var(--sea);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: #fff;
}

/* About affiliations */

.affiliate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.affiliate-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #cfc9a3;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  min-height: 6rem;
}

.affiliate-list a:hover {
  color: var(--navy);
  filter: brightness(1.04);
}

.affiliate-list img {
  width: 5.4rem;
  height: auto;
  flex-shrink: 0;
}

.affiliate-list span {
  font-weight: 600;
  line-height: 1.35;
}

.map-figure {
  margin: 0 0 1.25rem;
  background: #cfc9a3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-figure img {
  width: 100%;
  height: auto;
}

.map-figure figcaption {
  padding: 0.6rem 0.9rem 0.8rem;
  font-size: 0.85rem;
  color: var(--navy);
  background: #c5bf99;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card .big-link {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
}

address {
  font-style: normal;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: #d9e2e8;
  padding: 2.4rem 0 1.4rem;
}

.site-footer a {
  color: #f3eee3;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 1.6rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
}

.footer-inner p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #b7c3cc;
}

.footer-legal p {
  margin: 0 0 0.25rem;
}

.footer-legal a {
  color: #d9e2e8;
}

/* Mobile */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    padding: 0.4rem 0.75rem 0.9rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.75rem 0.8rem;
    font-size: 0.95rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .stamp {
    max-width: 18rem;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-card.wide img {
    max-height: 16rem;
  }

  .hero img {
    height: 9.75rem;
    aspect-ratio: auto;
    object-position: center 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
