@font-face {
  font-family: Lora;
  src: url("assets/lora.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f7efe4;
  --card: #fffbf5;
  --ink: #2d211a;
  --muted: #69554a;
  --line: #e1d2c3;
  --soft: #f1e5d9;
  --progress-ink: #cf682e;
  --action: #97441e;
  --action-hover: #783317;
  --focus: #8d401e;
  --section: #eee0d0;
  --heading: Lora, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #251a15;
    --card: #30231c;
    --ink: #fff5e9;
    --muted: #d3b9a8;
    --line: #644c3f;
    --soft: #433027;
    --progress-ink: #f69c56;
    --action: #f6a36e;
    --action-hover: #fbc294;
    --focus: #f5a76f;
    --section: #2d2019;
    --action-ink: #24150e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
p, figure { margin: 0; }
h1, h2 { margin: 0; font-family: var(--heading); line-height: 1.08; letter-spacing: -.035em; }
.shell { width: min(100% - 64px, 1110px); margin-inline: auto; }
.skip {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  transform: translateY(-250%);
  padding: .6rem .9rem;
  background: var(--card);
}
.skip:focus { transform: none; }
.header, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 67px;
}
.header { border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font: 650 1.35rem/1 var(--heading);
  white-space: nowrap;
  text-decoration: none;
}
.brand img { display: block; border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7.75rem);
  padding-block: clamp(2.7rem, 5vw, 5rem);
}
.label { color: var(--muted); font-size: .73rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: .9rem 0 1.15rem; font-size: clamp(3rem, 5.9vw, 5.45rem); text-wrap: balance; }
.hero-copy > p:last-child, .app-copy > p { color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); max-width: 29rem; }
.brew-card {
  padding: clamp(1rem, 2.9vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 48px #1a100d1a;
}
.timer-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.timer-head h2 { font-size: 1.58rem; }
#phase {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--soft);
}
.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 1rem 0 1.4rem;
  padding: 4px;
  background: var(--soft);
  border-radius: 11px;
}
.method button {
  min-height: 44px;
  padding: .25rem .3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font-size: .89rem;
  font-weight: 620;
}
.method button[aria-pressed="true"] { background: var(--card); border-color: var(--line); }
.method button:disabled[aria-pressed="false"] { color: var(--muted); }
.dial {
  display: grid;
  place-items: center;
  width: min(100%, 214px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: .55rem;
  border-radius: 50%;
  background: conic-gradient(var(--progress-ink) var(--progress, 0%), var(--soft) 0);
}
.dial-face {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .23rem;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
}
#time { font: 650 clamp(3.2rem, 6.5vw, 4.1rem)/1.12 var(--heading); font-variant-numeric: tabular-nums; }
#target-label, .timer-note, .app-platform { color: var(--muted); font-size: .82rem; }
.yield { margin-block: .82rem .55rem; text-align: center; font-size: .9rem; font-weight: 650; }
.step {
  margin-block: 0 .6rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: .86rem;
}
.actions { display: flex; gap: .55rem; margin-block: .6rem .95rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 49px;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .91rem;
  font-weight: 670;
  text-decoration: none;
}
.primary { flex-grow: 1; background: var(--action); color: var(--action-ink, white); }
.primary:hover:not(:disabled) { background: var(--action-hover); }
.secondary { border-color: var(--line); background: var(--card); }
.secondary:hover { border-color: var(--focus); }
.settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.settings label {
  display: grid;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 590;
}
.settings label span {
  display: flex;
  align-items: center;
  gap: .2rem;
  min-height: 44px;
  padding-inline: .4rem;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.settings input {
  width: 100%;
  min-width: 0;
  min-height: 37px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 16px;
}
.settings input:disabled { color: var(--muted); opacity: 1; }
.last-brew {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin-top: .8rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
}
.last-brew h3 { margin: 0 0 .15rem; font: 650 1rem/1.2 var(--heading); }
.last-brew p { color: var(--muted); font-size: .78rem; }
.last-brew .button { flex-shrink: 0; min-height: 44px; padding-inline: .6rem; white-space: nowrap; }
.timer-note { margin-top: .7rem; text-align: center; }
.app-section { padding-block: clamp(2.65rem, 6vw, 5rem); background: var(--section); }
.app-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.6rem, 9vw, 8rem);
}
.app-copy h2 { max-width: 28rem; font-size: clamp(2.5rem, 5.4vw, 4.8rem); }
.app-copy > p { margin-top: .85rem; }
.app-copy .button { margin-top: 1.3rem; }
.app-copy .app-platform { font-size: .84rem; }
.app-preview { justify-self: center; width: min(100%, 225px); }
.app-preview img { display: block; width: 100%; height: auto; border-radius: 13px; border: 1px solid var(--line); }
.app-preview figcaption { margin-top: .5rem; color: var(--muted); font-size: .82rem; text-align: center; }
.footer { padding-block: .6rem; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 34px); }
  .header { min-height: 57px; }
  .header .brand { font-size: 1.15rem; }
  .header .brand img { width: 30px; height: 30px; }
  nav { gap: .1rem .85rem; }
  nav a { font-size: .82rem; }
  .hero { grid-template-columns: 1fr; gap: 1.45rem; padding-block: 1.7rem 2.35rem; }
  .hero h1 { margin: .6rem 0 .6rem; font-size: clamp(2.55rem, 9vw, 4.5rem); }
  .timer-head h2 { font-size: 1.46rem; }
  .method { margin-block: .7rem 1rem; }
  .dial { width: min(100%, 163px); }
  .app-layout { grid-template-columns: 1fr; }
  .app-copy { order: 0; }
  .app-preview { order: 1; width: min(100%, 195px); }
  .footer { flex-direction: column; align-items: start; gap: .25rem; padding-block: 1rem .5rem; }
}
