@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/crimson-pro-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/crimson-pro-italic-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16202c;
  --ink-soft: #3d4a58;
  --muted: #5b6673;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --card: #fffcf7;
  --rule: #ddd4c6;
  --rule-strong: #cfc4b2;
  --royal: #0B5D3B;
  --royal-deep: #0A4D33;
  --royal-dark: #083626;
  --royal-light: #1F7A54;
  --gold: #E8D5A3;
  --gold-hover: #F3E6C4;
  --cream: #F6F1E8;
  --cream-soft: #E8E0D2;
  --accent: #0B5D3B;
  --accent-hover: #083626;
  --accent-soft: #e4efe8;
  --link: #0A4D33;
  --focus: #C4A35A;
  --shadow: 0 1px 2px rgba(10, 77, 51, 0.06), 0 8px 24px rgba(10, 77, 51, 0.08);
  --serif: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 70rem;
  --narrow: 44rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip:focus { top: 1rem; }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 77, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 213, 163, 0.35);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo:hover { color: var(--gold); }

.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 36rem;
  padding: 5rem 0 4.25rem;
  background: var(--royal-deep);
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(10, 77, 51, 0.97) 0%,
      rgba(10, 77, 51, 0.92) 38%,
      rgba(11, 93, 59, 0.62) 64%,
      rgba(10, 77, 51, 0.38) 100%);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  margin: 0 0 1rem;
}

.hero .eyebrow,
.page-hero .eyebrow,
.brand-banner .eyebrow,
.site-footer .eyebrow {
  color: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  max-width: 18ch;
  color: var(--cream);
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--cream-soft);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

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

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

.hero .btn-primary {
  background: var(--gold);
  color: var(--royal-dark);
}

.hero .btn-primary:hover {
  background: var(--gold-hover);
  color: var(--royal-dark);
}

.hero .btn-ghost {
  color: var(--cream);
  border-color: var(--gold);
}

.hero .btn-ghost:hover {
  background: rgba(246, 241, 232, 0.12);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

/* Sections */
section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--rule);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.intro {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-grid p { margin: 0 0 1rem; }

.facts {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.facts dt:first-child { margin-top: 0; }

.facts dd {
  margin: 0.25rem 0 0;
}

/* Brand blocks */
.brand {
  margin-bottom: 3.25rem;
}

.brand:last-child { margin-bottom: 0; }

.brand-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.35rem;
}

.brand-head h3 {
  font-size: 1.8rem;
  margin: 0;
}

.store-link {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.brand-intro {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.product.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 16rem 1fr;
}

.product .cover {
  background: #ece4d7;
  aspect-ratio: 1;
}

.product.featured .cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 16rem;
}

.product .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product .body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  color: var(--accent);
}

.product h4 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.product p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

/* Screenshots */
.examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.examples figure {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  overflow: hidden;
}

.examples img {
  width: 100%;
  background: #fff;
}

.examples figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.35rem 1.3rem;
}

.steps .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */
.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.contact-card .name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.contact-card p { margin: 0 0 0.85rem; color: var(--ink-soft); }

.contact-card a.email {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-card a.email:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 4px solid var(--gold);
  padding: 2.15rem 0 2.6rem;
  color: var(--cream-soft);
  font-size: 0.9rem;
  background: var(--royal-deep);
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Policy pages */
.page-hero {
  padding: 3.25rem 0 2.15rem;
  background: var(--royal-deep);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  color: var(--cream);
}

.updated {
  color: var(--cream-soft);
  margin: 0;
  font-size: 0.92rem;
}

.page-hero .updated { color: var(--cream-soft); }

.prose {
  padding: 2.5rem 0 4rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.7rem;
}

.prose p, .prose li {
  color: var(--ink);
}

.prose p { margin: 0 0 1rem; }

.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }

.prose li { margin: 0 0 0.4rem; }

/* 404 */
.not-found {
  padding: 6rem 0 7rem;
  text-align: center;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 0 0 0.8rem;
}

@media (max-width: 800px) {
  .about-grid,
  .product.featured,
  .examples,
  .steps,
  .products {
    grid-template-columns: 1fr;
  }

  .product.featured .cover {
    min-height: 0;
    aspect-ratio: 1;
    max-height: 18rem;
  }

  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 3rem 0; }
}

@media (max-width: 560px) {
  .header-inner, .wrap, .wrap-narrow, .footer-inner {
    width: calc(100% - 1.5rem);
  }

  .logo { font-size: 1.5rem; }
  .hero h1 { max-width: none; }
}

.product.solo { max-width: 36rem; }

.product.featured .cover img {
  object-position: left center;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0 0.85rem;
    min-height: 0;
    gap: 0.7rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.35rem 1rem;
  }
}


/* About visual */
.about-grid {
  align-items: stretch;
}

.about-visual {
  margin: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 16rem;
}

.about-visual figcaption {
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Full-width royal green brand bands */
.brand {
  margin-bottom: 3.5rem;
}

.brand-banner {
  background: var(--royal-deep);
  color: var(--cream);
  margin: 0 0 1.75rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(232, 213, 163, 0.28);
  border-bottom: 4px solid var(--gold);
}

.brand-banner-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: 16.5rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.brand-banner .brand-head {
  margin-bottom: 0.6rem;
}

.brand-banner .brand-head h3 {
  color: var(--cream);
  font-size: 2rem;
}

.brand-banner .store-link {
  color: var(--gold);
}

.brand-banner .store-link:hover {
  color: var(--gold-hover);
}

.brand-banner .brand-intro {
  color: var(--cream-soft);
  margin: 0;
  max-width: 40rem;
}

.brand-banner-media {
  margin: 0;
  height: 100%;
  min-height: 14rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
}

/* Full-bleed the banner out of the products section */
.brand-banner.bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.timeline-with-photo {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.timeline-with-photo .product {
  max-width: none;
}

.timeline-photo {
  margin: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 12rem;
}

@media (max-width: 800px) {
  .hero {
    min-height: 28rem;
    padding: 3.25rem 0 3rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(10, 77, 51, 0.94) 0%,
        rgba(10, 77, 51, 0.88) 55%,
        rgba(10, 77, 51, 0.7) 100%);
  }

  .brand-banner-inner,
  .timeline-with-photo {
    grid-template-columns: 1fr;
  }

  .brand-banner-media {
    min-height: 12rem;
    order: -1;
  }
}

@media (max-width: 560px) {
  .brand-banner-inner {
    width: calc(100% - 1.5rem);
  }
}
