:root {
  color-scheme: light;
  --paper: #fbfaf5;
  --paper-strong: #f1efe6;
  --ink: #1f2a24;
  --muted: #66736b;
  --line: #ded8c9;
  --leaf: #326b4d;
  --leaf-dark: #173d2c;
  --brand-deep: #1b2c26;
  --meadow: #58732c;
  --clay: #b86442;
  --gold: #d29c54;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(38, 45, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: 10px clamp(18px, 4vw, 56px) 12px;
  border-bottom: 1px solid rgba(50, 107, 77, 0.18);
  background: rgba(251, 250, 245, 0.97);
  box-shadow: 0 10px 34px rgba(31, 42, 36, 0.06);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
  image-rendering: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--brand-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  margin-top: 5px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 42px);
  color: var(--leaf-dark);
  font-size: 17px;
  font-weight: 750;
}

.main-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--clay);
}

.header-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(23, 61, 44, 0.78);
  border-radius: 999px;
  color: var(--leaf-dark);
  font-size: 16px;
  font-weight: 850;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 64px);
  align-items: end;
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-media {
  position: absolute;
  inset: -0.5%;
  background:
    linear-gradient(90deg, rgba(18, 34, 26, 0.86) 0%, rgba(18, 34, 26, 0.62) 42%, rgba(18, 34, 26, 0.16) 100%),
    url("/assets/hero-tea.webp") center 54% / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--paper);
  transform: translate(clamp(32px, 6vw, 92px), clamp(-42px, -5vh, -24px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 12vw, 136px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 30px;
  color: rgba(251, 250, 245, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.filter-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.button {
  padding: 0 22px;
}

.button.primary {
  background: var(--gold);
  color: #1e2119;
}

.button.secondary {
  border: 1px solid rgba(251, 250, 245, 0.5);
  color: var(--paper);
}

.button.dark {
  background: var(--leaf-dark);
  color: var(--paper);
}

.glass-panel {
  border: 1px solid rgba(251, 250, 245, 0.28);
  background: rgba(251, 250, 245, 0.13);
  box-shadow: 0 22px 62px rgba(12, 24, 18, 0.22);
  backdrop-filter: blur(18px) saturate(130%);
}

.hero-note {
  position: absolute;
  top: clamp(122px, 14vh, 168px);
  right: clamp(28px, 5vw, 72px);
  z-index: 2;
  display: grid;
  width: min(320px, calc(100% - 56px));
  aspect-ratio: 1.618 / 1;
  align-content: center;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(251, 250, 245, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(251, 250, 245, 0.18), rgba(251, 250, 245, 0.09));
  color: var(--paper);
  box-shadow: 0 22px 62px rgba(12, 24, 18, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
}

.hero-note span,
.hero-note small {
  color: rgba(251, 250, 245, 0.76);
}

.hero-note strong {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 0.95;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band > div {
  min-height: 140px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--paper);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.stat-label {
  max-width: 250px;
  margin-top: 10px;
  color: var(--muted);
}

.section-shell,
.order-section {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  width: min(760px, 100%);
  margin-bottom: 28px;
  gap: 0;
}

.section-heading p:not(.eyebrow),
.gift-band p,
.tasting-copy > p:not(.eyebrow),
.tasting-panel p {
  color: var(--muted);
  font-size: 18px;
}

.toolbar {
  margin-bottom: 26px;
}

.filter-button {
  min-width: 92px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--leaf-dark);
}

.filter-button.active {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: var(--paper);
}

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

.tea-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(31, 42, 36, 0.08);
}

.tea-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-strong);
}

.tea-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.tea-card:hover .tea-card-image img {
  transform: scale(1.04);
}

.tea-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.9);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 800;
}

.tea-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tea-card-title {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.tea-card-title h3 {
  margin: 0;
}

.tea-price {
  color: var(--clay);
  font-weight: 900;
  white-space: nowrap;
}

.tea-description {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 700;
}

.tea-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--leaf-dark);
  border-radius: 6px;
  background: var(--leaf-dark);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
  background: var(--paper-strong);
}

.ritual-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  counter-reset: ritual;
  list-style: none;
}

.ritual-list li {
  position: relative;
  display: grid;
  min-height: 90px;
  gap: 4px;
  padding: 18px 18px 18px 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ritual-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--paper);
  content: counter(ritual);
  counter-increment: ritual;
  font-weight: 900;
}

.ritual-list span {
  color: var(--muted);
}

.tasting-panel {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 61, 44, 0.9), rgba(23, 61, 44, 0.82)),
    url("https://images.unsplash.com/photo-1576092768241-dec231879fc3?auto=format&fit=crop&w=900&q=82") center / cover;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.panel-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tasting-panel h3 {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
}

.tasting-panel p {
  color: rgba(251, 250, 245, 0.82);
}

.tasting-panel dl {
  display: grid;
  gap: 1px;
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid rgba(251, 250, 245, 0.2);
  border-radius: 8px;
}

.tasting-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(251, 250, 245, 0.09);
}

.tasting-panel dt {
  color: rgba(251, 250, 245, 0.64);
}

.tasting-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.gift-band {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(54px, 8vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--clay);
  color: var(--paper);
}

.gift-band .eyebrow,
.gift-band p {
  color: rgba(251, 250, 245, 0.84);
}

.gift-band h2 {
  margin-bottom: 16px;
}

.compact {
  margin-bottom: 22px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cart-panel,
.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(31, 42, 36, 0.08);
}

.cart-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.cart-heading,
.cart-total,
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-heading h3 {
  margin: 0;
}

.cart-heading span {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 92px;
  margin: 18px 0;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-row {
  padding: 12px;
  border-radius: 6px;
  background: var(--paper-strong);
}

.cart-row strong {
  display: block;
}

.cart-row small {
  color: var(--muted);
}

.remove-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--clay);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cart-total {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.cart-total strong {
  color: var(--clay);
  font-size: 26px;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(50, 107, 77, 0.12);
}

.form-button {
  width: max-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.site-footer {
  position: relative;
  display: grid;
  min-height: clamp(360px, 42vw, 560px);
  align-items: end;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) clamp(16px, 2.2vw, 26px);
  background:
    linear-gradient(180deg, rgba(23, 61, 44, 0.1) 0%, rgba(23, 61, 44, 0.48) 70%, rgba(23, 61, 44, 0.76) 100%),
    url("/assets/bg.webp") center 52% / cover;
  color: rgba(251, 250, 245, 0.82);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(251, 250, 245, 0.92) 8%, rgba(251, 250, 245, 0.58) 22%, rgba(251, 250, 245, 0) 46%),
    radial-gradient(ellipse at 50% 0%, rgba(251, 250, 245, 0.82) 0%, rgba(251, 250, 245, 0.34) 34%, rgba(251, 250, 245, 0) 68%);
  content: "";
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 72px);
  bottom: 12px;
  left: clamp(18px, 5vw, 72px);
  height: 1px;
  background: rgba(50, 107, 77, 0.56);
  content: "";
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.footer-content span:first-child {
  color: var(--paper);
  font-weight: 900;
}

.design-page {
  background: var(--paper);
}

.design-main {
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.design-hero {
  display: grid;
  width: min(980px, 100%);
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.design-hero h1 {
  color: var(--leaf-dark);
  margin-bottom: 4px;
  font-size: clamp(46px, 7vw, 88px);
}

.design-hero p,
.design-section-heading p,
.swatch-card p,
.type-specimen p,
.component-card p {
  color: var(--muted);
  font-size: 17px;
}

.design-section {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(64px, 9vw, 112px);
}

.design-section-heading {
  display: grid;
  width: min(760px, 100%);
  gap: 0;
}

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

.swatch-card,
.type-specimen,
.component-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(31, 42, 36, 0.07);
}

.swatch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(31, 42, 36, 0.12);
  border-radius: 6px;
  background: var(--swatch-color);
}

.swatch-card strong,
.type-specimen span,
.component-card .panel-kicker {
  color: var(--leaf-dark);
  font-weight: 900;
}

.swatch-card code {
  width: max-content;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 13px;
}

.design-two-column {
  grid-template-columns: minmax(280px, 0.8fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.type-specimen strong {
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
}

.sans-specimen strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.component-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.component-card h3 {
  margin: 0;
  color: var(--leaf-dark);
}

.glass-demo {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 34, 26, 0.58), rgba(18, 34, 26, 0.18)),
    url("/assets/hero-tea.webp") center / cover;
  box-shadow: var(--shadow);
}

.glass-note-sample {
  top: 50%;
  right: auto;
  left: 50%;
  width: min(320px, calc(100% - 40px));
  transform: translate(-50%, -50%);
}

.image-system-preview {
  min-height: clamp(300px, 36vw, 460px);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 61, 44, 0.08), rgba(23, 61, 44, 0.42)),
    url("/assets/bg.webp") center 52% / cover;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    transform: translate(clamp(12px, 3vw, 28px), clamp(-42px, -5vh, -24px));
  }

  .hero-note {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .collection-grid,
  .intro-band,
  .split-band,
  .gift-band,
  .order-layout,
  .design-two-column {
    grid-template-columns: 1fr;
  }

  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
  }

  .header-action {
    display: none;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand small {
    font-size: 13px;
  }

  .main-nav {
    gap: 12px;
    font-size: 16px;
  }

  .hero {
    min-height: 680px;
    align-items: center;
  }

  .hero-content {
    transform: translateY(clamp(-34px, -4vh, -18px));
  }

  .hero-actions .button,
  .gift-band .button,
  .form-button {
    width: 100%;
  }

  .intro-band > div {
    min-height: 116px;
  }

  .tea-card-title,
  .tea-meta {
    align-items: start;
    flex-direction: column;
  }

  .tasting-panel dl > div {
    display: grid;
  }

  .tasting-panel dd {
    text-align: left;
  }

  .design-main {
    padding: 48px 18px;
  }

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

  .swatch-card,
  .type-specimen,
  .component-card {
    min-height: auto;
  }
}
