/*
Theme Name: Chinese Tea Brewing Child
Template: generatepress
Version: 2.0
Description: Organic editorial theme for Chinese Tea Brewing
Author: TraeDesign
Text Domain: tea-child
*/

:root {
  --tea-background: #faf8f2;
  --tea-foreground: #292820;
  --tea-card: #fffdf8;
  --tea-primary: #64733a;
  --tea-primary-dark: #4f5c2c;
  --tea-primary-foreground: #fffdf8;
  --tea-muted: #efecdf;
  --tea-muted-foreground: #676458;
  --tea-border: #ded9c8;
  --tea-accent: #b97949;
  --tea-radius-sm: 8px;
  --tea-radius-md: 18px;
  --tea-radius-lg: 28px;
  --tea-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tea-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --tea-shadow-1: 0 12px 30px rgba(62, 59, 44, 0.08);
  --tea-shadow-2: 0 24px 60px rgba(62, 59, 44, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tea-theme {
  margin: 0;
  background: var(--tea-background);
  color: var(--tea-foreground);
  font-family: var(--tea-font-sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

.tea-theme h1,
.tea-theme h2,
.tea-theme h3,
.tea-theme h4,
.tea-theme .main-title {
  color: var(--tea-foreground);
  font-family: var(--tea-font-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.tea-theme a {
  color: var(--tea-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tea-theme a:hover,
.tea-theme a:focus { color: var(--tea-accent); }

.tea-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--tea-foreground);
  color: #fff;
}

.tea-skip-link:focus { top: 1rem; }

.tea-container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.tea-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(100, 115, 58, 0.16);
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(16px);
}

.tea-nav-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tea-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tea-foreground);
  font-family: var(--tea-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tea-brand svg { color: var(--tea-primary); }

.tea-nav-links,
.tea-footer-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.tea-nav-links a,
.tea-footer a {
  color: var(--tea-muted-foreground);
  font-size: 0.91rem;
  font-weight: 500;
  text-decoration: none;
}

.tea-nav-links a:hover,
.tea-nav-links a:focus,
.tea-footer a:hover,
.tea-footer a:focus { color: var(--tea-primary-dark); }

.tea-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tea-btn:hover,
.tea-btn:focus { transform: translateY(-2px); }

.tea-theme .tea-btn-primary {
  background: var(--tea-primary);
  color: var(--tea-primary-foreground);
  box-shadow: 0 10px 24px rgba(100, 115, 58, 0.22);
}

.tea-theme .tea-btn-primary:hover,
.tea-theme .tea-btn-primary:focus {
  background: var(--tea-primary-dark);
  color: var(--tea-primary-foreground);
}

.tea-theme .tea-btn-secondary {
  border-color: var(--tea-border);
  background: var(--tea-card);
  color: var(--tea-foreground);
}

.tea-theme .tea-btn-secondary:hover,
.tea-theme .tea-btn-secondary:focus {
  border-color: var(--tea-primary);
  color: var(--tea-primary-dark);
  box-shadow: var(--tea-shadow-1);
}

.tea-eyebrow {
  margin: 0 0 1rem;
  color: var(--tea-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tea-hero { padding: clamp(4rem, 8vw, 7rem) 0; }

.tea-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.tea-hero h1 {
  max-width: 10ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3.4rem, 6vw, 6.3rem);
  line-height: 0.96;
}

.tea-hero-copy {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--tea-muted-foreground);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.tea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tea-hero-media {
  position: relative;
  margin: 0;
}

.tea-hero-media::before {
  position: absolute;
  inset: -1rem 2rem 1rem -1rem;
  z-index: -1;
  border-radius: var(--tea-radius-lg);
  background: var(--tea-muted);
  content: "";
}

.tea-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--tea-radius-lg);
  box-shadow: var(--tea-shadow-2);
  object-fit: cover;
}

.tea-section { padding: clamp(4rem, 7vw, 6.5rem) 0; }

.tea-section-muted {
  border-block: 1px solid rgba(100, 115, 58, 0.12);
  background: rgba(239, 236, 223, 0.56);
}

.tea-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.tea-section-heading h2,
.tea-cta h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  line-height: 1.05;
}

.tea-section-heading p {
  margin: 0;
  color: var(--tea-muted-foreground);
}

.tea-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tea-card,
.tea-guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--tea-border);
  border-radius: var(--tea-radius-md);
  background: var(--tea-card);
  color: var(--tea-foreground);
  text-decoration: none;
  transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.tea-card:hover,
.tea-card:focus,
.tea-guide-card:hover,
.tea-guide-card:focus {
  transform: translateY(-5px);
  border-color: rgba(100, 115, 58, 0.52);
  box-shadow: var(--tea-shadow-1);
  color: var(--tea-foreground);
}

.tea-card-number {
  margin-bottom: 2.5rem;
  color: var(--tea-primary);
  font-family: var(--tea-font-serif);
  font-size: 1.05rem;
}

.tea-card h3,
.tea-guide-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.tea-card p,
.tea-guide-card p {
  margin: 0;
  color: var(--tea-muted-foreground);
  font-size: 0.94rem;
  line-height: 1.65;
}

.tea-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.tea-step {
  position: relative;
  padding-top: 4.5rem;
}

.tea-step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--tea-primary);
  color: var(--tea-primary-foreground);
  font-family: var(--tea-font-serif);
  font-size: 1.3rem;
}

.tea-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.tea-step p {
  margin: 0;
  color: var(--tea-muted-foreground);
}

.tea-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tea-guide-card .tea-card-number {
  margin-bottom: 1.25rem;
  font-family: var(--tea-font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tea-cta {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--tea-primary);
  color: var(--tea-primary-foreground);
  text-align: center;
}

.tea-cta h2,
.tea-cta p { color: var(--tea-primary-foreground); }

.tea-cta p {
  max-width: 42rem;
  margin: 1rem auto 2rem;
  opacity: 0.9;
}

.tea-cta .tea-btn {
  background: var(--tea-card);
  color: var(--tea-primary-dark);
}

.tea-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--tea-border);
}

.tea-footer-top,
.tea-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tea-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tea-border);
  color: var(--tea-muted-foreground);
  font-size: 0.82rem;
}

.tea-theme:not(.page-template-template-tea-home) .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(100, 115, 58, 0.16);
  background: rgba(250, 248, 242, 0.95);
  backdrop-filter: blur(16px);
}

.tea-theme:not(.page-template-template-tea-home) .inside-header {
  max-width: 72rem;
  min-height: 76px;
  padding: 0 1.5rem;
}

.tea-theme .main-title { font-size: 1.55rem; }

.tea-theme .main-title a,
.tea-theme .main-title a:hover { color: var(--tea-foreground); }

.tea-theme .main-navigation,
.tea-theme .main-navigation ul ul { background: transparent; }

.tea-theme .main-navigation .main-nav ul li a,
.tea-theme .main-navigation .menu-toggle {
  color: var(--tea-muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
}

.tea-theme .main-navigation .main-nav ul li:hover > a,
.tea-theme .main-navigation .main-nav ul li:focus > a,
.tea-theme .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--tea-primary-dark); }

.tea-theme:not(.page-template-template-tea-home) .site-content {
  max-width: 72rem;
  padding: clamp(2.5rem, 5vw, 5rem) 1.5rem;
  gap: 1.5rem;
}

.tea-theme .inside-article,
.tea-theme .comments-area,
.tea-theme .page-header,
.tea-theme .paging-navigation,
.tea-theme .widget-area .widget {
  border: 1px solid var(--tea-border);
  border-radius: var(--tea-radius-md);
  background: var(--tea-card);
  box-shadow: var(--tea-shadow-1);
}

.tea-theme .inside-article { padding: clamp(2rem, 5vw, 4.5rem); }

.tea-theme .entry-title {
  margin-bottom: 0.6rem;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.tea-theme .entry-meta {
  color: var(--tea-muted-foreground);
  font-size: 0.82rem;
}

.tea-theme .entry-content { font-size: 1.04rem; }

.tea-theme .entry-content h2 {
  margin-top: 2.7rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.tea-theme .entry-content h3 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.tea-theme .entry-content p,
.tea-theme .entry-content li { max-width: 72ch; }

.tea-theme .entry-content table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--tea-border);
  border-radius: var(--tea-radius-sm);
}

.tea-theme .entry-content th { background: var(--tea-muted); }

.tea-theme .entry-content th,
.tea-theme .entry-content td {
  padding: 0.8rem 0.9rem;
  border-color: var(--tea-border);
}

.tea-theme .widget-area .widget { padding: 1.6rem; }

.tea-theme .widget-title {
  font-family: var(--tea-font-serif);
  font-size: 1.45rem;
}

.tea-theme button,
.tea-theme input[type="submit"],
.tea-theme .search-submit {
  border-radius: 999px;
  background: var(--tea-primary);
  color: var(--tea-primary-foreground);
}

.tea-theme input[type="text"],
.tea-theme input[type="email"],
.tea-theme input[type="url"],
.tea-theme input[type="search"],
.tea-theme textarea {
  border: 1px solid var(--tea-border);
  border-radius: var(--tea-radius-sm);
  background: var(--tea-background);
}

.tea-theme .site-footer { border-top: 1px solid var(--tea-border); }

.tea-theme .site-info {
  background: var(--tea-primary-dark);
  color: rgba(255, 255, 255, 0.82);
}

.tea-theme .site-info a { color: #fff; }

@media (max-width: 980px) {
  .tea-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tea-hero-grid { grid-template-columns: 1fr; }
  .tea-hero-copy { max-width: 44rem; }
  .tea-hero-media { max-width: 48rem; }
}

@media (max-width: 768px) {
  .tea-container { width: min(100% - 2rem, 72rem); }
  .tea-nav-inner { min-height: 68px; gap: 1rem; }
  .tea-nav-links { display: none; }
  .tea-nav .tea-btn { min-height: 42px; padding-inline: 1rem; }
  .tea-section-heading,
  .tea-steps,
  .tea-guide-grid { grid-template-columns: 1fr; }
  .tea-section-heading { align-items: start; gap: 1rem; }
  .tea-footer-top,
  .tea-footer-bottom { align-items: flex-start; flex-direction: column; }
  .tea-footer-links { flex-wrap: wrap; }
  .tea-theme .site-content { display: block; }
  .tea-theme .widget-area { margin-top: 1.5rem; }
  .tea-theme .entry-content table { display: block; overflow-x: auto; }
}

@media (max-width: 520px) {
  .tea-card-grid { grid-template-columns: 1fr; }
  .tea-hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .tea-actions { align-items: stretch; flex-direction: column; }
  .tea-actions .tea-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
