:root {
  --ink: #1f241f;
  --muted: #73766f;
  --paper: #f3efe7;
  --card: #fbf9f4;
  --line: #ded9ce;
  --red: #df5b4d;
  --red-dark: #c8493d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.9), transparent 38%),
    var(--paper);
  font-family: "Manrope", sans-serif;
}

button { font: inherit; }

.shell {
  width: min(100% - 32px, 720px);
  min-height: 100vh;
  margin: auto;
  padding: 38px 0 28px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset -3px -2px 0 rgba(133,40,32,.16);
}

.timer-card {
  margin: auto 0;
  padding: 32px 24px 24px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a6a69f;
  transition: background .2s, box-shadow .2s;
}

.timer-card.running .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(223,91,77,.12);
}

.timer-wrap {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  margin: 25px auto 30px;
  display: grid;
  place-items: center;
}

.progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.progress circle {
  fill: none;
  stroke-width: 5;
}

.progress-track { stroke: var(--line); }

.progress-value {
  stroke: var(--red);
  stroke-linecap: round;
  transition: stroke-dashoffset .3s linear;
}

.time-content { position: relative; }

.time {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: clamp(62px, 15vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.08em;
  transform: translateX(-.04em);
}

.state {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.button {
  min-width: 112px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, opacity .15s;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(223,91,77,.25); outline-offset: 3px; }
.button:disabled { opacity: .4; cursor: not-allowed; }

.button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 6px 18px rgba(200,73,61,.2);
}
.button-primary:hover:not(:disabled) { background: var(--red-dark); }
.button-secondary { color: var(--ink); background: var(--card); border-color: var(--line); }
.button-ghost { min-width: 92px; color: var(--muted); background: transparent; }

.shortcut {
  margin: 22px 0 0;
  color: #92948e;
  font-size: 11px;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--card);
  font: inherit;
}

footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

footer p { margin: 0; }

@media (max-width: 520px) {
  .shell { padding-top: 24px; }
  .timer-card { padding-inline: 0; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; }
  .button { width: 100%; min-width: 0; }
  .button-ghost { grid-column: 1 / -1; height: 42px; }
  footer p { display: none; }
  footer { justify-content: flex-end; }
}

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