:root {
  --ink: #272119;
  --muted: #6e6251;
  --paper: #fff9eb;
  --paper-deep: #f2e5c8;
  --leaf: #587246;
  --leaf-dark: #2f4c34;
  --amber: #c47a32;
  --rose: #9c564c;
  --line: rgba(78, 58, 34, 0.18);
  --shadow: 0 24px 70px rgba(65, 45, 22, 0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, Times New Roman, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 122, 50, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(88, 114, 70, 0.22), transparent 24rem),
    linear-gradient(135deg, #fffaf0 0%, #f5ead2 54%, #efe0be 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: linear-gradient(90deg, rgba(89,72,48,.07) 1px, transparent 1px), linear-gradient(rgba(89,72,48,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }
.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--leaf), var(--leaf-dark));
  color: #fff7df;
  font-size: 30px;
  box-shadow: 0 12px 28px rgba(47, 76, 52, .28);
}
.brand strong { display: block; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.top-nav, .site-footer nav { display: flex; gap: 10px; flex-wrap: wrap; }
.top-nav a, .site-footer a {
  text-decoration: none;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 235, .58);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.top-nav a:hover, .site-footer a:hover { transform: translateY(-1px); background: #fff9eb; border-color: rgba(88,114,70,.36); }

.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto;
  position: relative;
  z-index: 1;
}
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .timer-card, .control-card, .guide-section, .tips-section, .legal-card {
  background: rgba(255, 249, 235, .78);
  border: 1px solid rgba(87, 67, 39, .18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-copy {
  border-radius: 40px;
  padding: clamp(34px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: .93;
  margin: 0;
  letter-spacing: -.055em;
}
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 12px; letter-spacing: -.035em; }
h3 { margin: 0 0 9px; font-size: 24px; }
.lead { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; color: #4f4638; max-width: 760px; }
.hero-actions, .timer-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.button {
  border: 0;
  appearance: none;
  border-radius: 999px;
  padding: 13px 19px;
  font: 800 15px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.primary { background: var(--leaf-dark); color: #fff9eb; box-shadow: 0 14px 26px rgba(47,76,52,.25); }
.ghost { background: transparent; color: var(--leaf-dark); border: 1px solid rgba(47,76,52,.28); }
.soft { background: #ead8b4; color: #3d3123; }

.hero-card {
  border-radius: 40px;
  padding: 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 56%, rgba(255,249,235,.96) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 72%, #d49b58 0 24%, #8c5c34 25% 31%, transparent 32%),
    linear-gradient(160deg, rgba(88,114,70,.88), rgba(47,76,52,.96));
  color: #fff9eb;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,249,235,.18);
  right: -76px;
  top: -58px;
}
.steam { position: absolute; left: 50%; top: 88px; transform: translateX(-50%); display: flex; gap: 18px; }
.steam span { width: 12px; height: 92px; border-radius: 50%; border-left: 2px solid rgba(255,249,235,.65); transform: rotate(10deg); animation: drift 2.8s ease-in-out infinite; }
.steam span:nth-child(2) { height: 118px; animation-delay: .4s; transform: rotate(-8deg); }
.steam span:nth-child(3) { animation-delay: .8s; }
@keyframes drift { 0%,100% { opacity: .32; transform: translateY(12px) rotate(8deg); } 50% { opacity: .9; transform: translateY(-12px) rotate(-8deg); } }
.cup-label { margin: 0; text-transform: uppercase; letter-spacing: .14em; font: 800 12px ui-sans-serif, system-ui, sans-serif; color: #ead8b4; }
.cup-rule { margin: 10px 0 0; font-size: 26px; line-height: 1.18; max-width: 430px; }

.ad-wrap {
  min-height: 120px;
  width: min(760px, calc(100% - 32px));
  margin: 22px auto;
  border: 1px dashed rgba(78,58,34,.24);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,249,235,.42);
}

.section-heading { max-width: 760px; margin-bottom: 22px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0; }
.timer-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: stretch; }
.control-card, .timer-card, .guide-section, .tips-section, .legal-card { border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
label, legend { font: 850 13px/1 ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf-dark); }
select, input[type='number'] {
  width: 100%;
  margin: 9px 0 22px;
  border: 1px solid rgba(78,58,34,.22);
  border-radius: 16px;
  background: #fffdf5;
  color: var(--ink);
  padding: 14px 15px;
  font: 700 18px ui-sans-serif, system-ui, sans-serif;
}
select:focus, input:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(196,122,50,.42); outline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.38); text-transform: none; letter-spacing: 0; font-size: 14px; }
.radio-chip input { accent-color: var(--leaf-dark); }
.fineprint { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0; }
.timer-card { display: flex; flex-direction: column; justify-content: center; }
.timer-face {
  border-radius: 30px;
  padding: clamp(24px, 6vw, 46px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(196,122,50,.22), transparent 60%),
    linear-gradient(180deg, #fffdf5, #f4e3c1);
  border: 1px solid rgba(78,58,34,.16);
}
.timer-label, .timer-temp { display: block; color: var(--muted); font: 850 14px ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.time-output { display: block; margin: 10px 0; font: 900 clamp(58px, 10vw, 112px)/.9 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.06em; color: var(--leaf-dark); }
.timer-note { color: #514635; font-size: 19px; line-height: 1.45; margin: 18px 0 0; }
.status { margin: 14px 0 0; color: var(--rose); font-weight: 800; font-family: ui-sans-serif, system-ui, sans-serif; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(255,253,245,.66); }
th, td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(88,114,70,.13); color: var(--leaf-dark); font: 850 13px ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
td { font-size: 17px; }
tr:last-child td { border-bottom: 0; }
.tip-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip-cards article {
  padding: 23px;
  border-radius: 24px;
  background: rgba(255,253,245,.62);
  border: 1px solid var(--line);
}
.tip-cards p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 17px; }
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 46px auto 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}
.legal-main { width: min(900px, calc(100% - 32px)); margin: 44px auto; }
.legal-card h1 { font-size: clamp(38px, 6vw, 64px); }
.legal-card p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.legal-marker { margin-top: 24px; padding: 24px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.38); }

@media (max-width: 840px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero, .timer-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 360px; }
  .tip-cards { grid-template-columns: 1fr; }
  .top-nav a { padding: 9px 11px; }
}

@media (max-width: 520px) {
  .section-shell { width: min(100% - 22px, 1160px); margin: 20px auto; }
  .hero-copy, .control-card, .timer-card, .guide-section, .tips-section, .legal-card { border-radius: 24px; }
  .hero-actions .button, .timer-buttons .button { width: 100%; }
  .time-output { font-size: 58px; }
  .cup-rule { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
} 


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}
