/* "Save my spot", in the Line look: paper, ink, one copper line, squared
   corners. Built for a phone held in one hand. No outside file. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-v31-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-v31-latin-600.woff2") format("woff2"); }
:root { --bg: #f7f3ec; --paper: #fffdf9; --ink: #0a2529; --muted: #5a6869; --line: #d8cebc; --accent: #b4714a; --accent-text: #9a5f3d; --ok: #1f6b4f; --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif; --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --ease: cubic-bezier(.2, .7, .2, 1); }
*, :before, :after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
[hidden] { display: none !important; }
.page { max-width: 560px; margin: 0 auto; padding: 0 20px calc(40px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; }
.top img { height: 30px; width: auto; display: block; }
.top__open { margin: 0; font: 600 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.rule { height: 1px; background: var(--line); position: relative; }
.rule::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: draw .9s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } }

.head { padding: 28px 0 8px; }
.small { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
h1 { font: 400 clamp(40px, 11.5vw, 56px)/1 var(--serif); letter-spacing: -.01em; margin: 10px 0 0; }
h1 em { font-style: italic; color: var(--accent-text); }
h2 { font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lead { color: var(--muted); margin: 14px 0 0; max-width: 42ch; }
.wait { color: var(--muted); margin: 22px 0 0; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.fine a { color: var(--ink); font-weight: 600; white-space: nowrap; }

fieldset { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 12px; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day, .time { appearance: none; border: 1px solid var(--line); border-radius: 1px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease); }
.day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; text-align: left; min-height: 64px; }
.day b { font: 500 24px/1 var(--serif); }
.day span { font-size: 12.5px; color: var(--muted); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 4px; }
.time b { font: 600 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.time span { font: 600 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.time .few { color: var(--accent-text); }
.day:active, .time:active { transform: scale(.97); }
.day[aria-pressed="true"], .time[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day[aria-pressed="true"] span, .time[aria-pressed="true"] span { color: #c9d3d2; }
.time[disabled] { background: transparent; color: #9aa3a2; cursor: not-allowed; border-style: dashed; }
.time[disabled] b { text-decoration: line-through; font-weight: 400; }

.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }
.field input { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 1px; background: var(--paper); color: var(--ink); font: 400 17px/1.2 var(--sans); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.problem { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: #f3e6dc; color: var(--ink); font-size: 15px; }

/* The one action stays in reach of the thumb. */
.bar { position: sticky; bottom: 0; z-index: 2; margin: 22px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(247, 243, 236, 0), var(--bg) 22%); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 1px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s var(--ease), opacity .16s; }
.btn:active { transform: scale(.985); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--line { background: transparent; color: var(--ink); }
.btn--wide { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { appearance: none; border: 0; background: none; padding: 0; color: var(--ink); font: 600 13px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* After a spot is saved. */
.done { outline: none; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); position: relative; margin: 0 0 22px; animation: pop .5s var(--ease) both; }
.tick::after { content: ""; position: absolute; left: 20px; top: 12px; width: 13px; height: 25px; border: solid var(--bg); border-width: 0 3px 3px 0; transform: rotate(42deg); animation: tick .35s .25s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes tick { from { opacity: 0; transform: rotate(42deg) scale(.5); } }
.when { display: flex; flex-direction: column; gap: 6px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.when b { font: 500 clamp(52px, 16vw, 72px)/.95 var(--serif); letter-spacing: -.02em; }
.when span { font-size: 15px; color: var(--muted); }
.card { margin: 22px 0 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); }
.card__where { margin: 0 0 16px; font-size: 15.5px; }
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ruled li:first-child { border-top: 0; padding-top: 0; }
.ruled li:last-child { padding-bottom: 0; }
.alert { margin: 34px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (min-width: 520px) { .times { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rule::after, .tick, .tick::after { animation: none; } .day, .time, .btn { transition: none; } }
