/* Ruth Tomlinson brand, from the client (Nov 2026): Arizona Mix, background #f9f7f2, highlight #BCAD87.
   Arizona Mix is a licensed font: drop the .woff2 files into public/fonts/ once the client
   sends them. Until then the fallback serif is used. */
@font-face {
  font-family: "ABC Arizona Mix";
  src: url("/fonts/ABCArizonaMix-Light.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

:root {
  --bg: #f9f7f2;
  --accent: #bcad87;
  --accent-dark: #8c7d57;
  --ink: #2b2a28;
  --muted: #6f6b63;
  --line: #e2dccf;
  --card: #ffffff;
  --error: #9b2c2c;
  --ok: #4f6b3a;
  --serif: "ABC Arizona Mix", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; }
.logo { width: 15rem; max-width: 68vw; height: auto; display: block; }
.staffbar { display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; }
.staffbar form { margin: 0; }

main { margin: 0 auto; padding: 1.3rem 1rem 2.5rem; }
main.narrow { max-width: 34rem; }
main.wide { max-width: 64rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: 1.9rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }
.lede { font-size: 1rem; color: var(--muted); margin: 0 0 1.2rem; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; }
.break { overflow-wrap: anywhere; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.field { margin: 0 0 0.9rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; padding: 0; }
.optional { color: var(--muted); font-size: 0.8rem; margin-left: 0.25rem; }
.hint { margin: -0.2rem 0 0.4rem; font-size: 0.85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid #cfc7b6; border-radius: 4px; padding: 0.62rem 0.78rem; min-height: 2.9rem;
}
textarea { min-height: 4rem; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .terms:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
/* Pairs stay side by side on phones too (saves scrolling); the label sits at the bottom of its cell so the two boxes line up when one label wraps. */
.row2 > .field { display: flex; flex-direction: column; }
.row2 > .field > label { margin-top: auto; }
@media (max-width: 20rem) { .row2 { grid-template-columns: 1fr; } }
/* Phones: a little tighter, so the whole form fits on one screen on most phones. */
@media (max-width: 30rem) {
  h1 { font-size: 1.7rem; }
  .lede { font-size: 0.95rem; margin-bottom: 1rem; }
  .field label, .field legend { font-size: 0.9rem; }
  .check { font-size: 0.86rem; }
}

.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; font-size: 0.88rem; line-height: 1.45; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--accent-dark); }
.consent { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0.8rem 0.85rem; }

.has-error input, .has-error select, .has-error textarea, .has-error.consent { border-color: var(--error); }
.error { color: var(--error); font-size: 0.88rem; margin: 0.35rem 0 0; }
.error-summary { background: #f7e9e6; color: var(--error); border-left: 3px solid var(--error); padding: 0.7rem 0.9rem; }
.notice { background: #f1ede2; border-left: 3px solid var(--accent); padding: 0.7rem 0.9rem; }

.btn { display: inline-block; font: inherit; font-size: 1rem; letter-spacing: 0.04em; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 0.8rem 1.5rem; min-height: 3rem; cursor: pointer; text-decoration: none; text-align: center; }
form:not(.search):not(.inline) > .btn[type=submit] { width: 100%; }
.btn:hover { background: #000; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); cursor: pointer; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.summary { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; padding: 1rem 1.1rem; margin: 0 0 1.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--accent-dark); margin: 0; }
.big { font-family: var(--serif); font-size: 1.3rem; margin: 0.2rem 0 0.6rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.terms { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 1.1rem; max-height: 24rem; overflow-y: auto; font-size: 0.92rem; margin-bottom: 1.25rem; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.search { display: flex; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.search input { flex: 1; min-width: 0; }
.search .btn { flex: none; }
.list { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.92rem; }
.list th, .list td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 40rem) {
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; }
  .list tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .list td { border: 0; padding: 0.15rem 0.7rem; }
}
.status { display: inline-block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 3px; background: #ece7db; }
.status.agreed { background: #e3ead9; color: var(--ok); }
.status.expired, .status.cancelled { background: #eee; color: var(--muted); }
.copybox { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.copybox input { font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
.copybox .btn { flex: none; }
details { margin-top: 1rem; }
summary { cursor: pointer; margin-bottom: 0.75rem; }
.inline { margin-top: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); padding: 0.75rem 1rem; margin-bottom: 1rem; }
pre.mail { white-space: pre-wrap; font-size: 0.8rem; margin: 0; }
ul.plain { padding-left: 1.1rem; }
/* Date boxes: keep the same height as text boxes on iPhone, where the native picker shrinks them. */
input[type=date] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
