/* Faithfully Formulated — one stylesheet, no framework.
   Palette from the PRD: lavender, soft purple, light blue, sage, cream.
   The deep tones are for text and buttons; they keep 4.5:1 contrast on cream. */

:root {
  --cream: #fbf8f3;
  --cream-2: #f4eee6;
  --paper: #ffffff;
  --lavender: #d9cdee;
  --lavender-soft: #efe9f8;
  --purple: #6e5a93;
  --purple-deep: #54446f;
  --blue: #d6e6f2;
  --blue-soft: #eaf2f8;
  --sage: #c5d3be;
  --sage-soft: #e9efe5;
  --sage-deep: #55694f;
  --ink: #2f2a36;
  --muted: #6b6475;
  --line: #e6dfd6;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(47, 42, 54, 0.04), 0 8px 24px rgba(84, 68, 111, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

/* Placeholder notes mark content still to be supplied. Turn them off in Site Settings. */
.placeholder {
  border: 1.5px dashed var(--lavender);
  background: var(--lavender-soft);
  color: var(--purple);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- header ---------- */

.announcement { background: var(--purple); color: #fff; text-align: center; font-size: 0.92rem; padding: 8px 20px; }
.announcement a { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(230, 223, 214, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; }
.logo { height: 44px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
  padding: 10px 14px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--lavender-soft); }
.site-nav a[aria-current="page"] { background: var(--lavender-soft); color: var(--purple-deep); font-weight: 600; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .brand { justify-content: center; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 0; padding: 4px 0 8px; }
  .site-nav a { padding: 10px 12px; font-size: 0.9rem; }
  /* The wordmark above already links home; dropping this keeps the nav on one line. */
  .site-nav a[href="/"] { display: none; }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid var(--purple); color: var(--purple-deep); background: transparent;
  font: 600 0.98rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--lavender-soft); color: var(--purple-deep); }
.button:active { transform: scale(0.98); }
.button--primary { background: var(--purple); color: #fff; }
.button--primary:hover { background: var(--purple-deep); color: #fff; }
.button--small { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 30%, var(--lavender) 0%, transparent 70%),
    radial-gradient(35% 45% at 82% 20%, var(--blue) 0%, transparent 70%),
    radial-gradient(40% 45% at 70% 90%, var(--sage) 0%, transparent 70%),
    var(--cream);
  filter: blur(10px);
  opacity: 0.85;
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero--image .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
.hero-copy { max-width: 720px; }
.hero:not(.hero--image) .hero-copy { margin-inline: auto; text-align: center; }
.hero:not(.hero--image) .actions { justify-content: center; }
.hero-logo { max-height: 120px; width: auto; margin: 0 auto 24px; }
.hero--image .hero-logo { margin-left: 0; }
.slogan { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.12; margin-bottom: 24px; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero .placeholder { display: inline-block; margin-bottom: 24px; }
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero--image .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- values ---------- */

.values { border-block: 1px solid var(--line); background: var(--paper); }
.values-list {
  list-style: none; margin: 0 auto; padding: 20px 0;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px;
  font-family: var(--serif); font-size: 1.15rem; color: var(--purple-deep);
}
.values-list li { display: flex; align-items: center; }
.values-list li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-deep); opacity: 0.45; margin: 0 20px; }

/* ---------- sections ---------- */

.section { padding: 80px 0; }
.section--flush { padding-top: 0; }
.section--tint { background: linear-gradient(180deg, var(--lavender-soft), var(--blue-soft)); }
.section-title { margin-bottom: 24px; }
.narrow h2:not(:first-child) { margin-top: 40px; }
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .section--flush { padding-top: 0; }
  .page-head { padding: 48px 0 32px; }
}
.page-head { padding: 72px 0 40px; }
.page-head--entry { padding: 32px 0 24px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0; }

.founder { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; max-width: 880px; }
.founder-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 6px solid var(--paper); }
.founder-photo--empty {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lavender), var(--sage));
  font-family: var(--serif); font-size: 3.4rem; color: #fff;
}
@media (max-width: 640px) {
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
  .founder-photo { width: 160px; height: 160px; }
}

.cta { padding: 0 0 80px; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--sage-soft); border-radius: var(--radius); padding: 40px;
}
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { margin: 0; }

/* ---------- cards ---------- */

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.article { padding: 24px; }
.article h3 { font-size: 1.25rem; margin-bottom: 12px; }
.article-body { color: var(--muted); }
.article-body p:last-child { margin-bottom: 0; }
.article .placeholder { margin: 16px 0 0; }
.sources { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.88rem; }
.sources-h { font-weight: 600; margin-bottom: 4px; }

.notice {
  background: var(--blue-soft); border-left: 4px solid var(--purple);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; color: var(--ink);
}

.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; }
.search { flex: 1 1 280px; }
.search input {
  width: 100%; min-height: 50px; padding: 12px 20px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px var(--lavender-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; font: 500 0.9rem var(--sans);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }

.entry-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.entry-card a { display: block; height: 100%; text-decoration: none; color: inherit; border-radius: inherit; overflow: hidden; }
.entry-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(47, 42, 54, 0.05), 0 16px 32px rgba(84, 68, 111, 0.12); }
.entry-thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--lavender-soft), var(--blue-soft)); display: grid; place-items: center; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-thumb span { font-family: var(--serif); font-size: 3rem; color: var(--purple); opacity: 0.6; }
.entry-body { padding: 16px 20px 20px; }
.entry-body h3 { margin-bottom: 8px; }
.entry-body p { font-size: 0.92rem; color: var(--muted); margin-bottom: 8px; }
.entry-body .card-price { font-family: var(--serif); font-size: 1.1rem; color: var(--purple-deep); }
.tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; margin-bottom: 8px; }
.coa-badge { display: inline-block; background: var(--sage-soft); color: var(--sage-deep) !important; border-radius: 999px; padding: 2px 12px; font-weight: 600; font-size: 0.8rem !important; margin: 0 !important; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px; }

/* ---------- entry page ---------- */

.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.entry-media img, .entry-media--empty { border-radius: var(--radius); aspect-ratio: 1; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.entry-media--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--lavender-soft), var(--sage-soft)); font-family: var(--serif); font-size: 6rem; color: var(--purple); opacity: 0.7; }
.entry-info h2 { font-size: 1.3rem; margin-top: 24px; }
.price { font-family: var(--serif); font-size: 1.5rem; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; gap: 24px; } }

.doc-list { padding-left: 20px; }
.coa-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.coa-table th { text-align: left; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.coa-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.coa-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.coa-note td { font-size: 0.88rem; color: var(--muted); padding-top: 0; }
@media (max-width: 640px) {
  .coa-table thead { display: none; }
  .coa-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .coa-table td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
  .coa-table td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .coa-actions { justify-content: stretch; padding-top: 12px !important; }
  .coa-actions .button { flex: 1; }
}

/* ---------- contact & policies ---------- */

.contact-card { padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-email { font-family: var(--serif); font-size: clamp(1.1rem, 5vw, 1.9rem); overflow-wrap: anywhere; margin-bottom: 16px; }
@media (max-width: 640px) { .contact-card { padding: 32px 20px; } }
.contact-card .small { margin: 16px 0 0; }

.toc ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; }
.policy { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.policy h2 { font-size: 1.5rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-slogan { font-family: var(--serif); color: var(--muted); margin-top: 12px; max-width: 320px; }
.footer-h { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--purple); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

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