@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/onest-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/onest-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/onest-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/onest-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --px {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 78%;
}
@property --py {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 16%;
}

:root {
  --night: #071410;
  --night-ink: #e7f4ee;
  --night-quiet: #b7d4c8;
  --glass: #f3faf6;
  --ink: #10241c;
  --quiet: #1c3a2e;
  --line: #5f7d71;
  --moss: #146b45;
  --moss-ink: #f4fbf7;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --px: 72%;
  --py: 18%;
  --px2: 64%;
  --py2: 28%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--glass); }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--glass);
  background-image:
    radial-gradient(18px 18px at var(--px) var(--py), rgb(31 143 85 / 0.85), transparent 70%),
    radial-gradient(110px circle at var(--px) var(--py), rgb(31 143 85 / 0.18), transparent 72%),
    radial-gradient(320px circle at var(--px2) var(--py2), rgb(20 107 69 / 0.12), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--moss); color: var(--moss-ink); }
:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--glass); }
::-webkit-scrollbar-thumb { background: #1c4a38; }

.glint { display: none; }

.window,
.confirm {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  min-height: 100dvh;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 0;
}

.mast, .pane, .colophon, .confirm {
  width: min(1080px, 100%);
  margin-inline: auto;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 32px 0;
}
.mast__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rx {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  transform: perspective(420px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms var(--ease);
}
.mast__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.mast__nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  padding: 10px 2px;
}
.mast__nav a:hover { color: var(--ink); }

.pane {
  padding: 20px 32px 48px;
}
h1, h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  margin-top: 28px;
}
h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 14px;
}
.lede {
  max-width: 38em;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.5;
}
.hours { margin-top: 28px; }
.hours-head {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 12px;
}
.hours-head .row-label { margin: 0 0 10px; }
.day { width: min(200px, 100%); }
.facts--aside { margin-top: 22px; }
.row-label {
  margin: 0 0 10px;
  color: var(--quiet);
  font-size: 18px;
  color: var(--ink);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.fa-slot {
  height: 56px;
  margin: 0;
  border: 2px solid var(--line);
  background: rgb(255 255 255 / 0.55);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.fa-slot.is-near {
  border-color: #1f8f55;
  background: rgb(31 143 85 / 0.1);
}
.fa-slot.is-on {
  background: var(--night);
  border-color: var(--night);
  color: var(--moss-ink);
}
.fa-slot:disabled {
  color: var(--quiet);
  background: transparent;
  cursor: not-allowed;
}
.fa-slot:disabled.is-near { background: transparent; border-color: var(--line); }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 22px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--quiet);
  font-size: 18px;
  color: var(--ink);
}
input {
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 20px;
  caret-color: var(--moss);
}
input::placeholder { color: var(--quiet); }
input:focus { outline: none; border-bottom-color: var(--moss); }
.opt { color: var(--quiet); }

.act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 22px;
}
.stamp {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  background:
    radial-gradient(140px circle at var(--bx, 50%) var(--by, 40%), rgb(255 255 255 / 0.28), transparent 46%),
    var(--moss);
  color: var(--moss-ink);
  font: 600 18px/1 "Onest", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.stamp:hover { background-color: #0f5a39; }
.stamp:disabled { opacity: 0.45; cursor: wait; }
.fine { margin: 0; color: var(--ink); font-size: 18px; max-width: 36em; }
.note {
  margin: 16px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.note.is-err { color: #8c2f2f; }
.note.is-ok { color: var(--moss); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

.quote {
  margin: 26px 0 0;
  padding: 0;
  max-width: 46ch;
  color: var(--ink);
}
.quote p { margin: 0; }
.quote cite {
  display: block;
  margin-top: 6px;
  color: var(--quiet);
  font-style: normal;
  font-size: 17px;
}

.depth {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--ink);
}
.steps li::before {
  content: counter(step);
  counter-increment: step;
  color: var(--moss);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.steps { counter-reset: step; }
.facts { margin: 0; }
.facts div + div { margin-top: 12px; }
.facts dt {
  color: var(--quiet);
  font-size: 16px;
}
.facts dd { margin: 2px 0 0; font-size: 20px; }
.facts a, .links a, .textlink, .colophon a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 18px;
}
.textlink {
  color: var(--ink);
  font-size: 18px;
}

body > .mast .mast__name,
body > .mast .mast__nav a { color: var(--ink); }

.colophon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 8px 32px 28px;
  color: var(--ink);
  font-size: 18px;
}
.colophon img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}
.colophon a:hover { color: var(--moss); }

.confirm {
  min-height: 100dvh;
  padding: 8px 28px 48px;
}
.confirm h1 { margin-top: 36px; }
.when {
  margin: 12px 0 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .window {
    animation: rise 720ms var(--ease) both;
  }
  html {
    animation: sweep 1.6s var(--ease) both;
  }
}
@keyframes sweep {
  from { --px: 8%; --py: 8%; }
  to { --px: 78%; --py: 16%; }
}
@keyframes rise {
  from { transform: translateY(18px); }
  to { transform: none; }
}

@media (max-width: 860px) {
  .window, .confirm { margin: 0; max-width: none; }
  .mast, .pane, .confirm, .colophon { padding-left: 16px; padding-right: 16px; }
  .mast { align-items: flex-start; flex-direction: column; }
  .mast__nav { justify-content: flex-start; }
  h1 { margin-top: 18px; font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .fields, .depth { grid-template-columns: 1fr; }
  .hours-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .stamp { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html { animation: none; }
  body { background-image: none; }
  .rx, .fa-slot, .stamp { transition: none; }
}
