:root {
  color-scheme: light;
  --font-main: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ink: #193023;
  --muted: #354f3b;
  --paper: #efe3cf;
  --panel: #f8edda;
  --panel-soft: #f3e5ce;
  --line: #c9b99e;
  --forest: #14281d;
  --deep-fern: #203d2d;
  --ivy: #31563a;
  --moss: #687046;
  --leaf: #566f3f;
  --sage: #7d7a62;
  --willow: #8d8272;
  --berry: #a66961;
  --brass: #9b7445;
  --cream: #fbf4e7;
  --shadow: 0 18px 44px rgba(48, 35, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    repeating-linear-gradient(2deg, rgba(105, 72, 38, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(88deg, rgba(255, 250, 235, 0.08) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 18% 10%, rgba(155, 116, 69, 0.12), transparent 24rem),
    radial-gradient(circle at 86% 28%, rgba(49, 86, 58, 0.16), transparent 22rem),
    radial-gradient(circle at 14% 78%, rgba(86, 111, 63, 0.14), transparent 24rem),
    linear-gradient(180deg, #f5ead8 0%, #efe3cf 54%, #e7d7bd 100%);
  font-family: var(--font-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.56;
  background-image:
    radial-gradient(ellipse at center, transparent 48%, rgba(91, 61, 31, 0.12) 100%),
    linear-gradient(rgba(86, 72, 52, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 72, 52, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px, 34px 34px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("assets/antique-herb-flourish.png");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: min(1320px, 120vw) auto;
  mix-blend-mode: multiply;
  filter: sepia(0.38) saturate(1.12) hue-rotate(18deg) contrast(0.94);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 5vw, 58px);
  background: rgba(248, 237, 218, 0.94);
  border-bottom: 1px solid rgba(106, 88, 58, 0.28);
  backdrop-filter: blur(14px);
}

.brand-mark,
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  color: var(--forest);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark img {
  display: inline-grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(155, 116, 69, 0.35);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 18px rgba(48, 35, 22, 0.12);
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--forest);
  background: rgba(104, 112, 70, 0.13);
}

.site-nav a[aria-current="page"] {
  color: #fffaf0;
  background: var(--forest);
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  overflow: hidden;
  background: var(--paper);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: sepia(0.55) saturate(0.76) brightness(1.18);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(248, 237, 218, 0.9), rgba(248, 237, 218, 0.78) 48%, rgba(226, 207, 175, 0.56)),
    radial-gradient(circle at 12% 22%, rgba(49, 86, 58, 0.2), transparent 20rem),
    radial-gradient(circle at 88% 30%, rgba(32, 61, 45, 0.2), transparent 22rem),
    url("assets/antique-herb-flourish.png"),
    linear-gradient(90deg, rgba(25, 48, 35, 0.08), transparent 24%, transparent 76%, rgba(25, 48, 35, 0.08));
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover, min(1180px, 116vw) auto, cover;
  background-blend-mode: normal, multiply, multiply, multiply, normal;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 58px clamp(18px, 5vw, 70px);
  z-index: 1;
  border: 1px solid rgba(155, 116, 69, 0.32);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  padding: clamp(76px, 10vw, 118px) 0 70px;
  margin: 0 auto;
  color: var(--forest);
  text-align: center;
}

.hero-overlay::before,
.hero-overlay::after,
.page-hero-copy::before,
.page-hero-copy::after {
  content: "❧";
  position: absolute;
  top: 46%;
  color: rgba(104, 112, 70, 0.7);
  font-size: clamp(4rem, 9vw, 8.2rem);
  line-height: 1;
}

.hero-overlay::before,
.page-hero-copy::before {
  left: clamp(-10px, 2vw, 30px);
  transform: translateY(-50%) rotate(-28deg);
}

.hero-overlay::after,
.page-hero-copy::after {
  right: clamp(-10px, 2vw, 30px);
  transform: translateY(-50%) scaleX(-1) rotate(-28deg);
}

.kicker,
.category-label {
  margin: 0 0 9px;
  color: #d6a35b;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--brass);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.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;
}

.hero-logo {
  display: block;
  position: relative;
  inset: auto;
  width: min(380px, 68vw);
  height: auto;
  margin: 0 auto 18px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(155, 116, 69, 0.42);
  outline: 1px solid rgba(20, 40, 29, 0.2);
  outline-offset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(251, 244, 231, 0.98) 0%, rgba(248, 237, 218, 0.96) 62%, rgba(226, 207, 175, 0.78) 100%);
  box-shadow:
    0 26px 70px rgba(25, 48, 35, 0.22),
    0 10px 24px rgba(48, 35, 22, 0.14);
  filter: drop-shadow(0 3px 0 rgba(155, 116, 69, 0.16));
  mix-blend-mode: normal;
  opacity: 1;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: #4f5540;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.sigil {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.18em;
}

.tagline {
  margin: 24px 0 0;
  color: var(--forest);
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  min-height: 44px;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-weight: 800;
}

.primary-link {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--forest), var(--deep-fern));
}

.secondary-link {
  border: 1px solid rgba(155, 116, 69, 0.58);
  color: var(--forest);
  background: rgba(248, 237, 218, 0.78);
}

.dark-link {
  color: #fffaf0;
  background: var(--forest);
}

.light-link {
  border-color: var(--line);
  color: var(--forest);
  background: #fffaf0;
}

.page-hero {
  position: relative;
  min-height: clamp(390px, 58vh, 560px);
  overflow: hidden;
  background: var(--paper);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: sepia(0.55) saturate(0.76) brightness(1.18);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(248, 237, 218, 0.93), rgba(248, 237, 218, 0.8) 54%, rgba(226, 207, 175, 0.58)),
    radial-gradient(circle at 14% 24%, rgba(49, 86, 58, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 30%, rgba(32, 61, 45, 0.16), transparent 20rem),
    url("assets/antique-herb-flourish.png");
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover, min(1120px, 116vw) auto;
  background-blend-mode: normal, multiply, multiply, multiply;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  padding: clamp(88px, 11vw, 134px) 0 64px;
  margin: 0 auto;
  color: var(--forest);
  text-align: center;
}

.page-hero-copy h1 {
  max-width: 860px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

.page-hero-copy p:last-child {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--forest);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.58;
  text-transform: uppercase;
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -38px 18px 0;
  position: relative;
  z-index: 2;
  background: rgba(86, 111, 63, 0.34);
  box-shadow: var(--shadow);
}

.overview-band a {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 20px;
  background:
    linear-gradient(rgba(248, 237, 218, 0.88), rgba(239, 227, 207, 0.92)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-size: 720px auto;
  background-blend-mode: normal, multiply;
  box-shadow: inset 0 4px 0 rgba(49, 86, 58, 0.18);
  text-align: center;
  color: var(--forest);
  font-family: var(--font-main);
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.overview-band a:hover,
.overview-band a:focus-visible {
  background-color: rgba(230, 216, 184, 0.96);
  color: var(--ivy);
  outline: 2px solid var(--brass);
  outline-offset: -4px;
  transform: translateY(-2px);
}

.intro-section,
.sources-section,
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: start;
  padding: clamp(44px, 7vw, 80px) clamp(18px, 5vw, 72px);
}

.intro-section > p,
.sources-section p,
.story-copy p,
.values-grid p,
.product-info p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.65;
}

.intro-section h2,
.story-section h2,
.sources-section h2,
.section-heading h2,
.shop-sidebar h2 {
  color: var(--forest);
  text-transform: uppercase;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.collection-grid article,
.offer-list article {
  min-width: 0;
  border: 1px solid rgba(49, 86, 58, 0.24);
  background:
    linear-gradient(145deg, rgba(248, 237, 218, 0.9), rgba(234, 224, 202, 0.92)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 680px auto;
  background-blend-mode: normal, multiply;
  box-shadow: var(--shadow);
}

.collection-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow:
    inset 0 5px 0 rgba(86, 111, 63, 0.22),
    var(--shadow);
}

.collection-grid h3,
.offer-list h3 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.collection-grid p,
.offer-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.offer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(44px, 7vw, 80px) clamp(18px, 5vw, 72px);
}

.offer-section h2 {
  color: var(--forest);
  text-transform: uppercase;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offer-list article {
  padding: clamp(18px, 3vw, 28px);
}

.seasonal-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0 18px 18px;
  background: rgba(86, 111, 63, 0.45);
}

.seasonal-band p {
  display: grid;
  place-items: center;
  min-height: 84px;
  margin: 0;
  padding: 14px;
  color: #d7b982;
  background:
    linear-gradient(135deg, rgba(20, 40, 29, 0.96), rgba(32, 61, 45, 0.94)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-size: 520px auto;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  margin: 0 18px 18px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(49, 86, 58, 0.24);
  background:
    radial-gradient(circle at 18% 38%, rgba(86, 111, 63, 0.16), transparent 16rem),
    linear-gradient(rgba(248, 237, 218, 0.86), rgba(248, 237, 218, 0.93)),
    url("assets/antique-herb-flourish.png");
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, min(960px, 120%) auto;
  background-blend-mode: normal, normal, multiply;
  box-shadow: var(--shadow);
}

.feature-emblem {
  display: grid;
  place-items: center;
}

.feature-emblem img {
  width: min(100%, 300px);
  border: 1px solid rgba(49, 86, 58, 0.3);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(25, 48, 35, 0.2);
}

.home-feature h2,
.process-section h2 {
  color: var(--forest);
  text-transform: uppercase;
}

.home-feature p:not(.kicker),
.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.left-actions {
  justify-content: flex-start;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(44px, 7vw, 80px) clamp(18px, 5vw, 72px);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.coming-soon-note {
  margin: 0 clamp(18px, 5vw, 72px) clamp(44px, 7vw, 80px);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.coming-soon-note a {
  color: var(--ivy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-list {
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-main);
  line-height: 1.7;
  list-style: none;
}

.theme-list li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--brass);
}

.seasonal-band details {
  padding: 14px 16px;
  background: #f8edda !important;
  border: 1px solid rgba(49, 86, 58, 0.2);
}

.seasonal-band,
.seasonal-band details[open] {
  background: #efe3cf !important;
  color: #193023 !important;
}

.seasonal-band summary {
  color: #193023 !important;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.seasonal-band summary::after {
  content: "+";
  float: right;
  color: var(--brass);
}

.seasonal-band details[open] summary::after {
  content: "−";
}

.seasonal-band details p {
  margin: 10px 0 0;
  padding: 10px 0 0;
  background: #f8edda !important;
  color: #243d2d !important;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* The public Plant Archive is for browsing; personal records belong in the member journal. */
#newPlantBtn,
#editBtn,
#deleteBtn {
  display: none !important;
}

/* Private journal entries are not shown in the free public archive. */
.journal-grid,
.journal-panel {
  display: none !important;
}

/* Archive-management tools are not part of the public visitor experience. */
.utility-bar[aria-label="Reference tools"] {
  display: none !important;
}

section:has(.utility-bar[aria-label="Reference tools"]) {
  display: none !important;
}

/* Stronger contrast for the small archive labels. */
.auth-panel .kicker,
.section-heading .kicker {
  color: #5c4828;
}

.process-list article {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(49, 86, 58, 0.24);
  background:
    linear-gradient(rgba(248, 237, 218, 0.88), rgba(242, 231, 210, 0.94)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 640px auto;
  background-blend-mode: normal, multiply;
  box-shadow: var(--shadow);
}

.process-list span {
  display: block;
  margin-bottom: 16px;
  color: var(--ivy);
  font-size: 2.2rem;
  line-height: 1;
}

.process-list h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 1.55rem;
  text-transform: uppercase;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.membership-grid article,
.membership-gate,
.auth-panel {
  min-width: 0;
  border: 1px solid rgba(155, 116, 69, 0.28);
  background:
    linear-gradient(rgba(248, 237, 218, 0.9), rgba(248, 237, 218, 0.94)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 760px auto;
  box-shadow: var(--shadow);
}

.membership-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 360px;
  padding: clamp(20px, 3vw, 32px);
}

.membership-grid h3,
.membership-gate h2,
.auth-panel h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.membership-grid strong {
  color: var(--brass);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-grid p,
.membership-gate p,
.auth-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.58;
}

.membership-grid .primary-link {
  justify-self: start;
  align-self: end;
  margin-top: auto;
}

.membership-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  margin: 18px;
  padding: clamp(22px, 4vw, 38px);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.2fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: end;
  margin: 0 18px 18px;
  padding: clamp(22px, 4vw, 34px);
}

.auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.auth-form .form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.values-grid article,
.product-card,
.shop-sidebar {
  min-width: 0;
  background: rgba(248, 237, 218, 0.92);
  border: 1px solid rgba(155, 116, 69, 0.28);
  box-shadow: var(--shadow);
}

.values-grid article {
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(rgba(248, 237, 218, 0.9), rgba(248, 237, 218, 0.92)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 620px auto;
}

.values-grid h3 {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.brand-board-section {
  padding: 18px;
}

.brand-board-section img,
.brand-logo-section img {
  display: block;
  width: min(100%, 1120px);
  margin: 0 auto;
  border: 1px solid rgba(155, 116, 69, 0.34);
  box-shadow: var(--shadow);
}

.brand-logo-section {
  padding: 18px;
}

.brand-logo-section img {
  width: min(100%, 980px);
}

.section-heading {
  padding: 0 18px 14px;
}

.section-heading h2 {
  color: var(--ink);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 18px;
  padding: 0 18px 18px;
}

.library-panel,
.detail-panel,
.journal-form,
.note-list,
.sources-section {
  min-width: 0;
  background: rgba(248, 237, 218, 0.92);
  border: 1px solid rgba(155, 116, 69, 0.28);
  box-shadow: var(--shadow);
}

.detail-panel,
.journal-form,
.note-list,
.sources-section {
  background:
    linear-gradient(rgba(248, 237, 218, 0.9), rgba(248, 237, 218, 0.93)),
    url("assets/antique-herb-flourish.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: min(900px, 130%) auto;
}

.library-panel {
  background:
    linear-gradient(rgba(248, 237, 218, 0.93), rgba(248, 237, 218, 0.96)),
    url("assets/antique-herb-flourish.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 640px auto;
}

.library-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 82px);
  position: sticky;
  top: 76px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-btn {
  min-height: 42px;
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--forest);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-btn:hover,
.search-btn:focus-visible {
  background: var(--moss);
}

.search-wrap,
.plant-form label,
.journal-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbf4e7;
  outline: 0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  text-transform: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(155, 116, 69, 0.16);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.filter-chip,
.shop-filter,
.utility-bar button,
.import-control,
.ghost-btn,
.danger-btn,
.primary-btn,
.delete-note {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fbf4e7;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-chip.is-active,
.shop-filter.is-active,
.primary-btn {
  border-color: var(--forest);
  color: #fffaf0;
  background: var(--forest);
}

.ghost-btn {
  background: #eee3ce;
  border-color: var(--line);
}

.danger-btn,
.delete-note {
  color: #fff7f0;
  background: #8f5b54;
  border-color: #8f5b54;
}

.library-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.plant-list {
  overflow: auto;
  padding: 8px;
}

.plant-card {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px;
  background: transparent;
}

.plant-card:hover,
.plant-card.is-active {
  border-color: var(--line);
  background: #f4e4ca;
}

.plant-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.plant-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.84rem;
  line-height: 1.35;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  color: #29352e;
  background: #e0d7be;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 800;
}

.detail-panel {
  padding: clamp(18px, 3vw, 32px);
}

.record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.record-header h2 {
  margin: 0;
}

.record-header p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-main);
  line-height: 1.45;
}

.record-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.record-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.note-block {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  background: #fbf4e7;
}

.note-block.wide {
  grid-column: 1 / -1;
}

.note-block h3,
.saved-note h3 {
  margin: 0 0 9px;
  color: var(--brass);
  font-family: var(--font-main);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-block p,
.saved-note p {
  margin: 0;
  color: #263229;
  font-family: var(--font-main);
  line-height: 1.55;
  white-space: pre-wrap;
}

.plant-form,
.journal-form {
  display: grid;
  gap: 16px;
}

.plant-form {
  padding-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.journal-section {
  padding: clamp(42px, 6vw, 78px) 18px 18px;
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(290px, 420px) 1fr;
  gap: 18px;
}

.journal-form,
.note-list {
  padding: 18px;
}

.note-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
}

.saved-note {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  background: #fbf4e7;
}

.saved-note footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
}

.delete-note {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.sources-section {
  margin: clamp(42px, 6vw, 78px) 18px 18px;
  padding: clamp(24px, 4vw, 38px);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) 1fr;
  gap: 18px;
  padding: 18px;
}

.shop-sidebar {
  align-self: start;
  position: sticky;
  top: 76px;
  padding: 18px;
}

.shop-sidebar h2 {
  margin-bottom: 18px;
}

.shop-main {
  min-width: 0;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.coming-soon-shop-note {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Gift boxes are not yet for sale, so let their preview cards use the full shop width. */
.coming-soon-layout {
  grid-template-columns: minmax(0, 1fr);
}

.coming-soon-layout .shop-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

.coming-soon-layout .shop-toolbar .filters {
  justify-content: flex-start;
}

@media (min-width: 1100px) {
  .coming-soon-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-coming-soon {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.shop-toolbar .filters {
  justify-content: flex-end;
  padding: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(rgba(248, 237, 218, 0.92), rgba(248, 237, 218, 0.95)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 760px auto;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 34%, rgba(212, 176, 125, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(20, 40, 29, 0.98), rgba(55, 68, 42, 0.94)),
    var(--forest);
}

.product-image span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 250, 240, 0.54);
  border-radius: 50%;
  color: #d4b07d;
  font-size: 2.6rem;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(248, 237, 218, 0.72);
}

.product-category {
  color: var(--brass) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.product-info footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-info strong,
.cart-total strong {
  color: var(--forest);
  font-family: var(--font-main);
  font-size: 1.08rem;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fbf4e7;
}

.cart-item strong,
.cart-item span,
.cart-total span {
  display: block;
  font-family: var(--font-main);
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.old-world-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 5vw, 58px);
  background: rgba(212, 176, 125, 0.42);
  border-top: 1px solid rgba(212, 176, 125, 0.38);
}

.old-world-footer span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 16px;
  color: #d7b982;
  background:
    linear-gradient(rgba(20, 40, 29, 0.96), rgba(20, 40, 29, 0.96)),
    url("assets/antique-herb-flourish.png");
  background-position: center;
  background-size: 540px auto;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.shop-sidebar {
  background:
    linear-gradient(rgba(248, 237, 218, 0.9), rgba(248, 237, 218, 0.94)),
    url("assets/antique-herb-flourish.png"),
    radial-gradient(circle at top right, rgba(155, 116, 69, 0.18), transparent 18rem);
  background-position: center top, center top, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, 680px auto, cover;
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.import-control {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.import-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-main);
  line-height: 1.45;
}

.atmosphere-illustration {
  position: relative;
  min-height: clamp(190px, 24vw, 310px);
  margin: clamp(28px, 5vw, 70px) clamp(16px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(155, 116, 69, 0.35);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.atmosphere-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 237, 218, 0.22), transparent 28%, transparent 72%, rgba(248, 237, 218, 0.22));
}

.folklore-overlay {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(78%, 620px);
  margin: 0;
  padding: 0;
  color: #163326;
  font-family: var(--font-main);
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 250, 238, 0.9), 0 2px 16px rgba(248, 237, 218, 0.82);
  transform: translate(-50%, -50%);
}

.folklore-overlay p {
  margin: 0;
}

.folklore-overlay .folklore-label {
  margin-bottom: 8px;
  color: #5c4828;
  font-size: clamp(0.86rem, 1.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.folklore-overlay p:last-child {
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 600;
}

.atmosphere-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.18) saturate(0.84) contrast(0.94);
}

.atmosphere-illustration-dusk img {
  object-position: center 72%;
}

.atmosphere-illustration-study img {
  object-position: center 55%;
}

.archive-discovery-state {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-content: center;
  border: 1px dashed rgba(49, 86, 58, 0.42);
  background: rgba(251, 244, 231, 0.5);
}

.archive-discovery-state strong {
  color: var(--forest);
  font-size: 1.18rem;
}

.archive-discovery-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px dashed rgba(49, 86, 58, 0.32);
  background: rgba(251, 244, 231, 0.45);
}

.archive-discovery-list strong {
  color: var(--forest);
}

.checkout-btn {
  width: 100%;
  margin-top: 16px;
}

.checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.checkout-hint {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.checkout-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(20, 40, 29, 0.5);
  backdrop-filter: blur(3px);
}

.checkout-form {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
}

.checkout-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
}

.checkout-summary {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(251, 244, 231, 0.74);
}

.checkout-summary h3 {
  margin: 0 0 10px;
}

.checkout-summary p,
.checkout-order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 7px 0;
}

.checkout-order-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checkout-fields,
.membership-signup-form {
  display: grid;
  gap: 14px;
}

.checkout-fields label,
.membership-signup-form label {
  display: grid;
  gap: 6px;
  color: var(--forest);
  font-weight: 700;
}

.checkout-fields input,
.checkout-fields textarea,
.membership-signup-form input {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
}

.checkout-note {
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.4;
}

.checkout-error {
  color: #7d2e2e;
  font-weight: 700;
}

.membership-signup {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin: clamp(36px, 7vw, 90px) clamp(16px, 5vw, 64px);
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  background: rgba(248, 237, 218, 0.8);
  box-shadow: var(--shadow);
}

.membership-signup h2 {
  margin-top: 0;
}

.membership-signup p {
  max-width: 52ch;
  line-height: 1.45;
}

.membership-form-status {
  min-height: 1.35em;
  margin: 0;
  color: #7d2e2e;
  font-weight: 700;
}

.membership-form-success {
  margin: 0;
  color: var(--forest);
  font-size: 1.2rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .overview-band,
  .old-world-footer,
  .intro-section,
  .story-section,
  .values-grid,
  .collection-grid,
  .offer-section,
  .offer-list,
  .seasonal-band,
  .home-feature,
  .process-section,
  .process-list,
  .membership-grid,
  .membership-gate,
  .auth-panel,
  .auth-form,
  .workspace,
  .journal-grid,
  .sources-section,
  .membership-signup,
  .shop-layout,
  .shop-toolbar,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .overview-band {
    margin-top: 18px;
  }

  .library-panel {
    position: static;
    max-height: none;
  }

  .shop-sidebar {
    position: static;
  }

  .shop-toolbar .filters {
    justify-content: flex-start;
  }

  .hero-overlay::before,
  .hero-overlay::after,
  .page-hero-copy::before,
  .page-hero-copy::after {
    opacity: 0.22;
  }

  .record-header,
  .record-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .record-view,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-nav,
  .hero-actions,
  .product-info footer,
  .cart-item,
  .saved-note footer {
    align-items: stretch;
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .workspace,
  .journal-section,
  .sources-section,
  .section-heading {
    padding-inline: 10px;
  }

  .hero-overlay {
    margin-left: 20px;
  }

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

  .overview-band {
    margin-inline: 10px;
  }

  .sources-section {
    margin-inline: 10px;
  }

  .page-hero-copy {
    margin-left: 20px;
  }

  .hero-overlay,
  .page-hero-copy {
    width: calc(100% - 40px);
  }

  .folklore-overlay {
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
  }

  .shop-layout {
    padding-inline: 10px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 150px;
  }

  .old-world-footer span {
    min-height: 58px;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 4.35rem);
  }

  .hero-logo {
    width: min(320px, 80vw);
  }

  .page-hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .tagline,
  .page-hero-copy p:last-child {
    letter-spacing: 0.1em;
  }
}
