/* ===================================================================
   TOWN & TERRIER
   Aesthetic: refined apothecary boutique × English country gravity
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette — bone cream, deep forest, honey brass */
  --bg-bone:        #f3ecd9;
  --bg-bone-soft:   #f7f1de;
  --bg-card:        #ffffff;
  --bg-deep:        #1c2a21;
  --bg-deep-soft:   #243429;

  --ink-primary:    #1c2a21;
  --ink-body:       #2e3a32;
  --ink-secondary:  #6b7268;
  --ink-muted:      #9b9a8a;
  --ink-inverse:    #f3ecd9;

  --accent:         #b08038;      /* honey brass */
  --accent-deep:    #8a5e1e;
  --accent-soft:    #e4c89a;
  --sage:           #5c6e5e;
  --rule:           #d4c9a8;
  --rule-soft:      #e8dfc4;
  --shadow-soft:    0 1px 2px rgba(28, 42, 33, 0.05), 0 4px 16px rgba(28, 42, 33, 0.06);
  --shadow-lift:    0 4px 8px rgba(28, 42, 33, 0.08), 0 24px 48px rgba(28, 42, 33, 0.10);

  /* Typography */
  --font-display:   'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body:      'Manrope', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-bone);
  /* Subtle paper texture via overlapping noise gradients */
  background-image:
    radial-gradient(at 20% 0%, rgba(176, 128, 56, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 100%, rgba(28, 42, 33, 0.03) 0%, transparent 50%);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--ink-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-deep); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw + 0.5rem, 5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3vw + 0.75rem, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.375rem, 1.5vw + 0.75rem, 1.75rem); font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.1em 0 0;
  color: var(--accent);
}

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

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 217, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  padding: 1.125rem 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-primary);
  text-decoration: none;
}
.brand-mark .amp {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 1.4em;
}
.brand-mark:hover { color: var(--ink-primary); }

.header-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .header-meta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  text-align: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 9rem 0 6rem; }
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.1s forwards;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.25s forwards;
}
.hero-wordmark .line { display: block; }
.hero-wordmark .amp {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
  padding: 0 0.05em;
  transform: translateY(0.05em);
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.625rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-body);
  max-width: 36ch;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.45s forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.005em;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.65s forwards;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 2rem auto 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   EMAIL CAPTURE FORM
   ============================================================ */

.signup {
  display: flex;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.85s forwards;
}

.signup input[type="email"] {
  flex: 1;
  border: none;
  padding: 1rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-primary);
  background: transparent;
  outline: none;
  min-width: 0;
}
.signup input[type="email"]::placeholder { color: var(--ink-muted); }

.signup button {
  border: none;
  background: var(--ink-primary);
  color: var(--ink-inverse);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 1.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.signup button:hover { background: var(--accent-deep); }
.signup button:active { background: var(--accent); }

.signup-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.05s forwards;
}

@media (max-width: 480px) {
  .signup { flex-direction: column; }
  .signup button { padding: 1rem; }
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */

.section-products {
  background: var(--bg-bone-soft);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 5rem;
}
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head h2 {
  font-style: italic;
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto;
}
.section-head p {
  font-family: var(--font-body);
  color: var(--ink-secondary);
  max-width: 50ch;
  margin: 1.5rem auto 0;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; max-width: 28rem; gap: 3rem; }
}

.product {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-mockup {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.product-mockup svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(28, 42, 33, 0.12));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product:hover .product-mockup svg { transform: translateY(-6px); }

.product-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}

.product-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  max-width: 28ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.product-tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  border: 1px solid var(--rule);
  background: var(--bg-bone);
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  display: inline-block;
}

/* ============================================================
   STORY SECTION
   ============================================================ */

.section-story {
  background: var(--bg-bone);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  max-width: 70rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.story-side .eyebrow { display: block; margin-bottom: 1.25rem; }
.story-side h2 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0;
}

.story-prose {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-body);
}
.story-prose p { margin: 0 0 1.5rem; }
.story-prose p:last-child { margin-bottom: 0; }
.story-prose em { color: var(--ink-primary); font-style: italic; }

/* ============================================================
   PILLARS SECTION
   ============================================================ */

.section-pillars {
  background: var(--bg-deep);
  color: var(--ink-inverse);
  border-top: 1px solid rgba(176, 128, 56, 0.15);
  border-bottom: 1px solid rgba(176, 128, 56, 0.15);
}

.section-pillars .eyebrow { color: var(--accent-soft); }

.section-pillars h2 {
  color: var(--ink-inverse);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; gap: 2.5rem; } }

.pillar { text-align: center; }
.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--accent-soft);
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-inverse);
  margin-bottom: 0.5rem;
}
.pillar p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(243, 236, 217, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.section-cta {
  text-align: center;
  background: var(--bg-bone);
  padding: 7rem 0;
}
.section-cta .eyebrow { display: block; margin-bottom: 1.5rem; }
.section-cta h2 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.section-cta p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-secondary);
  margin-bottom: 2.5rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

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

.site-footer {
  background: var(--bg-deep);
  color: rgba(243, 236, 217, 0.7);
  padding: 4rem 0 2rem;
}
.site-footer a { color: rgba(243, 236, 217, 0.85); }
.site-footer a:hover { color: var(--accent-soft); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(176, 128, 56, 0.15);
}

.footer-brand .brand-mark {
  color: var(--ink-inverse);
  font-size: 1rem;
}
.footer-brand .brand-mark .amp { color: var(--accent-soft); }
.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(243, 236, 217, 0.55);
  margin-top: 1rem;
  max-width: 30ch;
  letter-spacing: 0.02em;
}

.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(243, 236, 217, 0.4);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
}
