/* Keepwell & Bell — cream paper marketing theme */

:root {
  --color-paper: #f4eee4;
  --color-paper-deep: #F8F3E7;
  --color-logo-paper: #fcf7f1;
  --color-ink: #1c1a17;
  --color-ink-muted: #4a453c;
  --color-ink-faint: #7a7368;
  --color-forest: #24382c;
  --color-forest-soft: #2f4a3a;
  --color-burgundy: #7a2e2e;
  --color-burgundy-hover: #5e2222;
  --color-gold: #b08a4a;
  --color-gold-soft: #c4a56a;
  --color-navy: #1a3558;
  --color-cream-on-dark: #f4eee4;
  --color-border: rgba(28, 26, 23, 0.14);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max-width: 72rem;
  --prose-width: 40rem;
  --header-height: 6.5rem;
  --radius-none: 0;
  --shadow-soft: 0 8px 28px rgba(28, 26, 23, 0.08);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-paper);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

a {
  color: var(--color-burgundy) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-burgundy-hover) !important;
}

p {
  margin: 0 0 1rem;
  color: var(--color-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-logo-paper);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-height);
  padding: 0.35rem 0;
}

.site-header .header-inner {
  position: relative;
}

.site-header .wrapper,
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: calc(var(--header-height) - 0.7rem);
}

.site-nav--left {
  justify-self: start;
}

.site-nav--right {
  justify-self: end;
}

.site-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: inherit !important;
  justify-self: center;
}

.site-brand:hover {
  opacity: 0.9;
}

.site-logo-img {
  display: block;
  height: 5.75rem;
  width: auto;
  max-width: min(340px, 58vw);
  object-fit: contain;
}

.site-nav {
  float: none;
  position: static;
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav .page-link {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink) !important;
  padding: 0.25rem 0;
  border-radius: 0;
}

.site-nav .page-link::after {
  display: none;
}

.site-nav .page-link:hover,
.site-nav .page-link:focus {
  color: var(--color-burgundy) !important;
  background: transparent;
  text-decoration: none;
}

.site-nav .nav-trigger {
  display: none;
}

.site-nav .menu-icon {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
}

.site-nav .menu-icon svg path {
  fill: var(--color-ink);
}

.site-nav--mobile {
  display: none;
}

/* ===== FOOTER ===== */

.site-footer {
  background: transparent;
  border-top: 1px solid var(--color-ink);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 0;
  color: var(--color-ink-muted);
  text-align: center;
}

.site-footer .wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

.footer-flourish {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-legal a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted) !important;
}

.footer-legal a:hover {
  color: var(--color-burgundy) !important;
}

/* ===== BUTTONS & LINKS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  color: var(--color-cream-on-dark) !important;
  background: var(--color-burgundy);
  border: 1px solid var(--color-burgundy);
}

.btn-primary:hover {
  background: var(--color-burgundy-hover);
  border-color: var(--color-burgundy-hover);
  color: var(--color-cream-on-dark) !important;
}

.link-arrow {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-burgundy) !important;
}

.link-arrow:hover {
  color: var(--color-burgundy-hover) !important;
}

/* ===== HOME LAYOUT ===== */

.home-main {
  padding: 0;
}

.home-main > .wrapper {
  max-width: none;
  padding: 0;
}

/* Hero */

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 4.5rem;
  z-index: 1;
}

.hero-copy > *:not(.hero-botanical) {
  position: relative;
  z-index: 1;
}

.hero-botanical {
  position: absolute;
  left: -0.75rem;
  bottom: 2%;
  width: 11rem;
  height: 13.5rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-botanical img {
  display: block;
  width: 15rem;
  max-width: none;
  height: auto;
  /* Shift so leftover “Ev” from the mock crop sits outside the clip box */
  margin-top: -3.25rem;
  margin-left: -0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--color-ink);
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
}

.hero-heart {
  display: block;
  margin: 0 0 1rem;
  color: var(--color-gold);
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-ink-muted);
  margin: 0 0 2rem;
  max-width: 28ch;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  background-color: var(--color-paper-deep);
  background-image: url("images/middle.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  mask-repeat: no-repeat;
}

.paper-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(244, 238, 228, 0.35), rgba(235, 227, 214, 0.9)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(28, 26, 23, 0.03) 11px,
      rgba(28, 26, 23, 0.03) 12px
    );
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 0 10px rgba(244, 238, 228, 0.55);
}

.paper-frame--hero {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.paper-frame__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin: 0 0 0.75rem;
}

.paper-frame__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.paper-frame__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-ink-muted);
  margin: 0;
  max-width: 22ch;
}

.paper-frame svg {
  width: 3rem;
  height: auto;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

/* Feature band */

.feature-band {
  background-color: var(--color-forest);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--color-cream-on-dark);
  padding: 3.25rem 1.5rem;
}

.feature-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.feature-band__sprig {
  display: block;
  width: 3.5rem;
  height: auto;
  margin-top: 0.35rem;
  mix-blend-mode: screen;
}

.feature-band__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 500;
  color: var(--color-cream-on-dark);
  margin: 0 0 0.75rem;
}

.feature-band__intro p {
  margin: 0;
  color: rgba(244, 238, 228, 0.82);
  font-size: 0.975rem;
  line-height: 1.65;
  max-width: 32ch;
}

.feature-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-item {
  text-align: left;
}

.feature-item__icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  object-fit: contain;
  /* Knock out black fields on gold-on-black icon crops */
  mix-blend-mode: screen;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream-on-dark);
  margin: 0 0 0.5rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(244, 238, 228, 0.78);
}

/* Spotlight cards */

.spotlight-section {
  padding: 4rem 1.5rem 4.5rem;
}

.spotlight-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.spotlight-card {
  text-align: left;
}

.spotlight-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 13rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--color-paper-deep);
}

.spotlight-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card__media--illustration {
  background: transparent;
}

.spotlight-card__media--illustration img {
  width: auto;
  max-width: 70%;
  height: 90%;
  object-fit: contain;
}

.spotlight-card h2 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.spotlight-card p {
  font-size: 0.975rem;
  color: var(--color-ink-muted);
  margin: 0;
  line-height: 1.65;
}

/* ===== PAGE LAYOUT ===== */

.page-content {
  padding: 0;
}

.page-content > .wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-prose {
  max-width: var(--prose-width);
  margin: 0 auto;
}

.page-prose--wide {
  max-width: 56rem;
}

.page-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
  background: none;
  -webkit-text-fill-color: unset;
}

.page-lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-ink-muted);
  margin: 0 0 2rem;
  line-height: 1.45;
}

.page-prose h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: none;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.page-prose h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.page-prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.note-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--color-gold);
  background: rgba(176, 138, 74, 0.08);
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.note-callout p:last-child {
  margin-bottom: 0;
}

/* Gallery grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-grid .paper-frame {
  min-height: 11rem;
  aspect-ratio: 4 / 3;
}

.gallery-grid .paper-frame--photo {
  padding: 0;
  box-shadow: none;
  background: var(--color-paper-deep);
}

.gallery-grid .paper-frame--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 404 */

.error-page {
  text-align: center;
  padding: 2rem 0 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.error-page p {
  color: var(--color-ink-muted);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.15rem;
  border-left: 2px solid var(--color-gold);
  background: rgba(176, 138, 74, 0.08);
  border-radius: 0;
  color: var(--color-ink-muted);
  font-style: italic;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--color-paper-deep);
  padding: 0.1em 0.35em;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-ink);
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--color-paper-deep);
  color: var(--color-ink);
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow-x: auto;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 960px) {
  .feature-band__inner {
    grid-template-columns: 1fr;
  }

  .feature-band__sprig {
    display: none;
  }

  .feature-band__grid {
    grid-template-columns: 1fr;
  }

  .spotlight-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 800px) {
  :root {
    --header-height: 4.75rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }

  .site-nav--left,
  .site-nav--right {
    display: none;
  }

  .site-nav--mobile {
    display: block;
    justify-self: end;
  }

  .site-brand {
    justify-self: start;
  }

  .site-logo-img {
    height: 4rem;
    max-width: min(260px, 70vw);
  }

  .site-nav--mobile .menu-icon {
    display: inline-block;
  }

  .site-nav--mobile .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--color-logo-paper);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }

  .site-nav--mobile .nav-trigger:checked ~ .nav-links {
    display: flex;
  }

  .site-nav--mobile .page-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav--mobile .page-link:last-child {
    border-bottom: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2.75rem 1.5rem 2rem;
  }

  .hero-botanical {
    width: 7rem;
    height: 9.5rem;
    left: -0.25rem;
  }

  .hero-botanical img {
    width: 10rem;
    margin-top: -2.25rem;
  }

  .hero-visual {
    min-height: 18rem;
    background-size: cover;
  }

  .footer-mark {
    max-width: 22rem;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrapper,
  .header-inner,
  .page-content > .wrapper,
  .feature-band,
  .spotlight-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-botanical {
    display: none;
  }

  body {
    background: white;
  }
}
