@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap");

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #141414;
  --muted: #5c5c5c;
  --muted-light: #8a8a8a;
  --accent: #0d4a2c;
  --accent-hover: #0a3d24;
  --border: rgba(20, 20, 20, 0.08);
  --border-strong: rgba(20, 20, 20, 0.14);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 12px 40px rgba(20, 20, 20, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
  outline: none;
}

.nav-main a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.link-reset:focus-visible,
.qty-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Site header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Embroidery seal — same asset & sizing as landing */
.brand.brand--embroidery {
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.brand--embroidery .brand-embroidery {
  display: block;
  width: clamp(52px, 14vw, 76px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand--embroidery .brand-embroidery {
    width: clamp(48px, 15vw, 64px);
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
}

.footer-embroidery {
  display: block;
  width: clamp(44px, 12vw, 72px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  align-items: center;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Hero — full-bleed, stretch feel */
.hero {
  width: 100%;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.hero-quote {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: rgba(13, 74, 44, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  font-family: var(--font-display);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions .btn-ghost {
  border-color: var(--border-strong);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-height: 380px;
  margin: 0 auto;
  width: 100%;
}

.hero-curve {
  position: absolute;
  inset: 8%;
  border-radius: 48% 52% 50% 50% / 42% 42% 58% 58%;
  background: linear-gradient(145deg, #e8ebe9 0%, #f5f5f5 45%, #dfe6e2 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-curve::after {
  content: "";
  position: absolute;
  width: 28%;
  height: 28%;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(160deg, #c4c9c6, #8e9590);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.35);
  opacity: 0.85;
}

.hero-curve-label {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Value strip */
.value-strip {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .value-strip {
    padding: 2rem 0;
  }
}

.hero-quote + .hero-quote {
  margin-top: 0.85rem;
}

.value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Shop anchor section */
.shop-section {
  flex: 1;
  width: 100%;
  padding-bottom: 3rem;
}

.shop-section-head {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

.shop-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.shop-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Store layout */
.store-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 0 0 1rem;
}

@media (max-width: 860px) {
  .store-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

.filters {
  align-self: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  top: 5rem;
  box-shadow: var(--shadow);
}

.filters-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.filter-group {
  margin-bottom: 1.15rem;
}

.filter-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.chip.is-active {
  border-color: var(--accent);
  background: rgba(13, 74, 44, 0.08);
  color: var(--accent);
}

.chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chip .count {
  color: var(--muted-light);
  font-weight: 400;
}

.filter-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  line-height: 1.45;
}

.link-reset {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Catalog */
.catalog-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.catalog-sub {
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.catalog-count {
  font-size: 0.8125rem;
  color: var(--muted-light);
  margin: 0 0 1.25rem;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-card {
  display: grid;
  grid-template-columns: min(200px, 38%) 1fr;
  gap: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  align-items: stretch;
  box-shadow: var(--shadow);
}

@media (max-width: 560px) {
  .product-card {
    grid-template-columns: 1fr;
  }
}

.product-card-visual {
  border-radius: var(--radius);
  min-height: 180px;
  background: linear-gradient(165deg, #eef1ee 0%, #e0e5e1 50%, #d5dad6 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-card-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50% 50% 48% 52% / 45% 45% 55% 55%;
  border: 2px solid rgba(13, 74, 44, 0.12);
  pointer-events: none;
}

.product-card-visual:has(.product-card-thumb)::before {
  opacity: 0.4;
}

.product-card-thumb {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  padding: 1rem;
  margin: 0 auto;
}

/* Mobile: sticky checkout when product scrolls out of view */
.sticky-buy {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticky-buy.is-visible {
  display: block;
}

.sticky-buy-inner {
  width: min(1200px, 100% - 1rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-buy-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy .btn-checkout {
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .sticky-buy {
    display: none !important;
  }
}

.page-store.has-sticky-buy {
  padding-bottom: 4.5rem;
}

@media (min-width: 769px) {
  .page-store.has-sticky-buy {
    padding-bottom: 0;
  }
}

.product-card-body {
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.product-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.product-meta {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.qty-inline .qty-input {
  width: 4rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.btn-checkout {
  min-width: 8rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg-elevated);
}

/* Shared: wrap, cards, buttons */
.wrap {
  width: min(720px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0;
  flex: 1;
}

.narrow {
  max-width: 520px;
}

.narrow-contact {
  max-width: 560px;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.center {
  text-align: center;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.prose-page h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.prose-block h2 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.prose-block h2:first-child {
  margin-top: 0;
}

.prose-block p,
.prose-block ol {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9375rem;
}

.prose-block a {
  color: var(--accent);
}

.portal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.input-wide {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(20, 20, 20, 0.03);
}

.err {
  color: #b42318;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.fine {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
  background: var(--bg-elevated);
}

.footer-inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

code {
  font-size: 0.88em;
  background: rgba(13, 74, 44, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
