@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("./fonts/cormorant-garamond-light-italic.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --ink: #394237;
  --muted: #6b7165;
  --sage: #56654c;
  --line: #dcded2;
  font: 400 15px/1.6 "Optima", "Candara", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
button, label span { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
[hidden] { display: none !important; }
main { width: min(100% - 36px, 340px); margin: auto; text-align: center; padding: 36px 0; }
h1 {
  margin: 0 0 38px;
  color: var(--sage);
  font: italic 300 clamp(88px, 24vw, 116px)/1.05 "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  letter-spacing: -.065em;
  padding-right: .07em;
  font-kerning: normal;
}
.timer { max-width: 368px; margin: auto; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { width: 100%; font-size: 11px; letter-spacing: .03em; color: var(--muted); margin-bottom: 14px; }
.duration-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.duration-options label { position: relative; }
.duration-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; inset: 0; cursor: pointer; }
.duration-options span { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 10px 3px; transition: background .2s, border-color .2s; font-size: 17px; }
.duration-options small { font-size: 10px; color: var(--muted); }
.duration-options input:checked + span { background: #e8ecdf; border-color: #9ba68e; }
.duration-options input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 4px; }
.duration-options label:hover span { border-color: #9ba68e; }
fieldset:disabled { opacity: .55; }
fieldset:disabled input { cursor: default; }
.clock { margin: 31px 0 0; font: 400 clamp(68px, 15vw, 82px)/1.12 "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.status { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.status:empty { display: none; }
.primary { margin-top: 28px; width: 100%; border: 1px solid var(--sage); border-radius: 6px; padding: 14px 20px; background: var(--sage); color: #fffdf6; font-size: 13px; letter-spacing: .035em; transition: background .2s; }
.primary:hover { background: #43523b; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 10px; }
.text-button:hover { color: var(--ink); }
.preview { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.preview svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.reset { display: block; margin: 8px auto -10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
