/* Ipsum & Sons — Placeholding Co.
   Palette borrowed from municipal parking signage: meter green, ticket
   yellow, and the dashed rectangle that means "nothing here yet". */

:root {
  --ink:        #12211C;
  --ink-soft:   #47534D;
  --paper:      #EFF0EB;
  --paper-deep: #E3E5DE;
  --green:      #0F5C43;
  --yellow:     #E8B93A;
  --rule:       #C3C7BE;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --band-space: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Sign stripe across the very top */
body::before {
  content: "";
  display: block;
  height: 7px;
  background: var(--yellow);
}

.wrap {
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.wordmark {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.wordmark-sub {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6rem) var(--band-space);
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-soft);
}

/* The held position — the one loud element on the page. */
.hold {
  margin-top: 2.75rem;
  border: 2px dashed var(--rule);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: 34rem;
}

/* Only bottom margins are reset here; each child sets its own top margin,
   so these rules never compete on the same property. */
.hold p { margin-block-end: 0; }
.hold > p:first-child { margin-block-start: 0; }

.hold-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hold-place {
  margin-top: 0.35rem;
  font-weight: 900;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hold-timer {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hold-timer span {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 0.1em 0.45em;
  margin-right: 0.35em;
}

.hold-by {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--green);
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.hero-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* ---------- Bands ---------- */

.band {
  padding-block: var(--band-space);
  border-top: 1px solid var(--rule);
}

.band-alt { background: var(--paper-deep); }

h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-lede {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* ---------- Services ---------- */

.services {
  margin: 2.75rem 0 0;
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 0.4rem 2.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.service dt {
  font-weight: 600;
  font-size: 1.0625rem;
}

.service dd {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* ---------- Steps (a genuine sequence, so numbered) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  font-weight: 900;
  font-size: 1.125rem;
}

.steps h3 {
  margin: 0.35rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.steps p {
  margin: 0.35rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* ---------- Rates ---------- */

.table-scroll {
  margin-top: 2.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 30rem;
}

caption {
  text-align: left;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  padding-bottom: 0.75rem;
}

th, td {
  text-align: left;
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}

tbody th {
  font-weight: 400;
}

td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.fineprint {
  margin-top: 2rem;
  max-width: var(--measure);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact-list {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.contact-list dt {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

.contact-list dd {
  margin: 0.6rem 0 0;
  font-weight: 600;
  font-size: 1.0625rem;
}

.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3.5rem;
}

.footer-inner p { margin-block-end: 0; font-size: 0.875rem; }
.footer-inner > p:first-child { margin-block-start: 0; }

.footer-meta {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- 404 ---------- */

.notfound {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.notfound .hold { margin-top: 2rem; }

/* ---------- Small screens ---------- */

@media (max-width: 44rem) {
  .service {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .masthead nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Booking form ---------- */

.hold-form {
  margin-top: 2.5rem;
  max-width: 42rem;
  display: grid;
  gap: 1.25rem;
}

.field { display: grid; gap: 0.4rem; }

.field-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 1.1rem center, right 0.75rem center;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field textarea { resize: vertical; min-height: 4.5rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: #9B3B30;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.form-actions .button { border: 2px solid var(--green); }

.form-actions .button:disabled {
  background: var(--rule);
  border-color: var(--rule);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 0.9375rem;
  max-width: 34ch;
}

.form-status.is-good {
  color: var(--green);
  font-weight: 600;
}

.form-status.is-bad {
  color: #9B3B30;
  font-weight: 600;
}

.contact-heading {
  margin: 3.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact-heading + .contact-list { margin-top: 1.5rem; }

/* ---------- Admin table ---------- */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2rem;
}

.admin-count { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

.admin-table td { font-weight: 400; font-variant-numeric: normal; }
.admin-table td.num { font-variant-numeric: tabular-nums; }
.admin-table .when { white-space: nowrap; font-size: 0.8125rem; color: var(--ink-soft); }

.admin-empty {
  margin-top: 2rem;
  border: 2px dashed var(--rule);
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
}

@media (max-width: 36rem) {
  .field-row { grid-template-columns: 1fr; }
}
