/* Ember Grove theme - trytupitea.com
   tt- prefixed components, organized with @layer cascade */

@layer base, layout, components, utils;

@layer base {
  :root {
    --clay: #b5432a;
    --clay-deep: #8f3019;
    --grove: #2f5043;
    --grove-soft: #3f6b58;
    --brass: #c98a3c;
    --sand: #f6efe2;
    --sand-2: #efe5d2;
    --cream: #fffdf8;
    --ink: #2a221c;
    --ink-soft: #5c5046;
    --line: #e3d7c1;
    --ok: #3f6b58;
    --shadow: 0 14px 40px rgba(53, 35, 22, .12);
    --radius: 10px;
    --wrap: 1140px;
    --head: "Marcellus", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

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

  body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--sand);
    line-height: 1.65;
    font-size: 17px;
  }

  h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.2; color: var(--ink); }
  h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
  h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
  h3 { font-size: 1.25rem; }

  p { margin-bottom: 1rem; }
  a { color: var(--clay-deep); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; height: auto; display: block; }

  ul, ol { margin: 0 0 1rem 1.2rem; }
  li { margin-bottom: .4rem; }
}

@layer layout {
  .tt-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
  .tt-section { padding: 64px 0; }
  .tt-section--tight { padding: 44px 0; }
  .tt-grid { display: grid; gap: 26px; }
  @media (min-width: 760px) {
    .tt-grid--2 { grid-template-columns: 1fr 1fr; }
    .tt-grid--3 { grid-template-columns: repeat(3, 1fr); }
  }
}

@layer components {
  /* ribbon */
  .tt-ribbon {
    background: var(--grove);
    color: #f3ead9;
    text-align: center;
    font-size: .8rem;
    letter-spacing: .04em;
    padding: 7px 14px;
  }
  .tt-ribbon strong { color: var(--brass); font-weight: 700; }

  /* header */
  .tt-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 239, 226, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .tt-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
  .tt-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.35rem; color: var(--ink); }
  .tt-brand:hover { text-decoration: none; }
  .tt-brand b { color: var(--clay); font-weight: 400; }
  .tt-brand small { display: block; font-family: var(--body); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
  .tt-nav { display: flex; align-items: center; gap: 20px; }
  .tt-nav a { color: var(--ink); font-size: .95rem; font-weight: 500; }
  .tt-nav a:hover { color: var(--clay-deep); text-decoration: none; }
  .tt-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; cursor: pointer; }
  .tt-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

  @media (max-width: 880px) {
    .tt-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; gap: 4px; background: var(--cream); padding: 84px 26px; transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow); }
    .tt-nav.is-open { transform: translateX(0); }
    .tt-nav a { padding: 9px 0; width: 100%; border-bottom: 1px solid var(--line); }
    .tt-burger { display: block; z-index: 60; }
  }

  /* buttons */
  .tt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--body); font-weight: 700; font-size: .92rem;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 14px 26px; border-radius: 6px; border: 0; cursor: pointer;
    background: var(--clay); color: #fff; transition: background .18s, transform .18s;
  }
  .tt-btn:hover { background: var(--clay-deep); text-decoration: none; transform: translateY(-2px); }
  .tt-btn--ghost { background: transparent; color: var(--grove); border: 1.5px solid var(--grove); }
  .tt-btn--ghost:hover { background: var(--grove); color: #fff; }
  .tt-btn--block { width: 100%; }
  .tt-btn--lg { padding: 17px 34px; font-size: 1rem; }

  .tt-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .tt-badge { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; background: var(--sand-2); color: var(--grove); border: 1px solid var(--line); border-radius: 50px; padding: 6px 14px; font-weight: 600; }

  /* hero */
  .tt-hero { background: radial-gradient(120% 90% at 80% 0%, #fbf4e6 0%, var(--sand) 55%); border-bottom: 1px solid var(--line); }
  .tt-hero__grid { display: grid; gap: 36px; align-items: center; padding: 58px 0; }
  @media (min-width: 860px) { .tt-hero__grid { grid-template-columns: 1.05fr .95fr; } }
  .tt-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--clay); margin-bottom: 14px; }
  .tt-hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
  .tt-tagline { font-family: var(--head); font-size: 1.15rem; color: var(--grove); margin: 16px 0 22px; }
  .tt-hero__img { position: relative; text-align: center; }
  .tt-hero__img img { margin: 0 auto; filter: drop-shadow(0 24px 36px rgba(80, 40, 20, .26)); max-height: 460px; }

  .tt-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
  .tt-stat b { display: block; font-family: var(--head); font-size: 1.9rem; color: var(--clay-deep); }
  .tt-stat span { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

  /* cards */
  .tt-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
  .tt-card h3 { margin-bottom: 8px; }
  .tt-card__num { font-family: var(--head); font-size: 1.4rem; color: var(--brass); }

  /* pillar / ingredient */
  .tt-pillar { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--clay); border-radius: var(--radius); padding: 24px; }
  .tt-pillar h3 { color: var(--grove); }
  .tt-ing { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
  .tt-ing:last-child { border-bottom: 0; }
  .tt-ing .dose { font-weight: 700; color: var(--clay-deep); white-space: nowrap; }

  /* price cards */
  .tt-prices { display: grid; gap: 24px; align-items: stretch; }
  @media (min-width: 820px) { .tt-prices { grid-template-columns: repeat(3, 1fr); } }
  .tt-price { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; }
  .tt-price--pop { border: 2px solid var(--clay); box-shadow: var(--shadow); transform: translateY(-8px); }
  @media (max-width: 819px) { .tt-price--pop { transform: none; } }
  .tt-price__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--clay); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 6px 16px; border-radius: 50px; white-space: nowrap; }
  .tt-price__tag--alt { background: var(--grove); }
  .tt-saveline { color: var(--clay-deep); font-weight: 700; }
  .tt-price__per small { margin-left: 4px; }
  .tt-price__packs { display: flex; justify-content: center; gap: 6px; min-height: 120px; align-items: flex-end; margin-bottom: 10px; }
  .tt-price__packs img { max-height: 120px; }
  .tt-price h3 { font-size: 1.4rem; }
  .tt-price .supply { color: var(--ink-soft); font-size: .9rem; }
  .tt-price__per { font-family: var(--head); font-size: 2.6rem; color: var(--clay-deep); margin: 12px 0 2px; }
  .tt-price__per small { font-size: .9rem; color: var(--ink-soft); }
  .tt-price__was { color: var(--ink-soft); text-decoration: line-through; }
  .tt-price__total { font-weight: 700; margin: 6px 0; }
  .tt-price ul { list-style: none; margin: 14px 0; text-align: left; }
  .tt-price li { padding-left: 24px; position: relative; font-size: .94rem; }
  .tt-price li::before { content: "\2714"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
  .tt-price .tt-btn { margin-top: auto; }

  /* reviews */
  .tt-review { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .tt-stars { color: var(--brass); letter-spacing: 2px; }
  .tt-review__who { font-weight: 700; margin-top: 12px; }
  .tt-review__meta { font-size: .82rem; color: var(--ink-soft); }
  .tt-vbadge { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; background: #e9f0e9; color: var(--grove); border-radius: 50px; padding: 2px 9px; margin-left: 6px; font-weight: 700; }

  /* breadcrumb */
  .tt-crumb { background: var(--sand-2); border-bottom: 1px solid var(--line); font-size: .85rem; }
  .tt-crumb .tt-wrap { padding-top: 11px; padding-bottom: 11px; }
  .tt-crumb a { color: var(--ink-soft); }

  /* band */
  .tt-band { background: var(--grove); color: #f1e8d7; }
  .tt-band h2, .tt-band h3 { color: #fff; }
  .tt-band a { color: var(--brass); }

  /* faq */
  .tt-faq { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 20px; }
  .tt-faq summary { cursor: pointer; font-family: var(--head); font-size: 1.12rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .tt-faq summary::-webkit-details-marker { display: none; }
  .tt-faq summary::after { content: "+"; color: var(--clay); font-size: 1.5rem; line-height: 1; }
  .tt-faq[open] summary::after { content: "\2212"; }
  .tt-faq__body { padding: 0 0 16px; color: var(--ink-soft); }

  /* prose */
  .tt-prose h2 { margin: 30px 0 12px; }
  .tt-prose h3 { margin: 22px 0 8px; color: var(--grove); }
  .tt-prose p, .tt-prose li { color: var(--ink-soft); }
  .tt-prose ul { margin-left: 1.1rem; }

  /* form */
  .tt-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .92rem; }
  .tt-form input, .tt-form select, .tt-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--body); font-size: 1rem; background: var(--cream); }
  .tt-form textarea { min-height: 130px; resize: vertical; }

  /* footer */
  .tt-foot { background: #261f19; color: #cdbfa9; padding: 54px 0 26px; font-size: .92rem; }
  .tt-foot a { color: #cdbfa9; }
  .tt-foot a:hover { color: #fff; }
  .tt-foot__grid { display: grid; gap: 30px; }
  @media (min-width: 720px) { .tt-foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
  .tt-foot h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; letter-spacing: .04em; }
  .tt-foot ul { list-style: none; margin: 0; }
  .tt-foot li { margin-bottom: 7px; }
  .tt-foot__legal { border-top: 1px solid #3c322a; margin-top: 36px; padding-top: 22px; font-size: .8rem; color: #9c8d77; }
  .tt-foot__legal p { margin-bottom: 10px; }

  .tt-note { background: var(--sand-2); border-left: 4px solid var(--brass); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 18px 0; }
}

@layer utils {
  .tt-center { text-align: center; }
  .tt-mt0 { margin-top: 0; }
  .tt-lead { font-size: 1.12rem; color: var(--ink-soft); }
  .tt-max { max-width: 760px; margin-left: auto; margin-right: auto; }
  .tt-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
  .tt-cta-row--center { justify-content: center; }
  .tt-save { display: inline-block; background: var(--brass); color: #fff; font-weight: 700; padding: 6px 16px; border-radius: 50px; font-size: .9rem; }
  .tt-ship-note { color: var(--ink-soft); font-size: .9rem; margin-top: 16px; }
}
