/* Layout: one quiet column on phones; on wide screens the headline and the permit card sit side by side. Nothing moves. */
:root {
  --paper: #ecede9;       /* cool concrete */
  --ink: #16191b;         /* graphite */
  --muted: #5a5f62;
  --rule: #c9cbc5;
  --permit: #f3c11b;      /* permit-card yellow, the one loud thing */
  --on-permit: #16191b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121415; --ink: #ecede9; --muted: #9ba0a2; --rule: #2c3033;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121415; --ink: #ecede9; --muted: #9ba0a2; --rule: #2c3033;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.frame {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  padding-block: 22px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.mark {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.mark span { color: var(--muted); font-weight: 500; }
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 40px;
  padding-block: 56px;
}

.copy { display: grid; gap: 18px; min-width: 0; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(2.75rem, 11.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.0625rem, 3.6vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* The permit card: the only filled, bordered object on the page. */
.permit {
  background: var(--permit);
  color: var(--on-permit);
  border-radius: 6px;
  padding: 20px 20px 8px;
  width: 100%;
  max-width: 24rem;
}
.permit h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.permit dl { margin: 0; }
.permit .row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding-block: 12px;
  border-top: 1.5px solid var(--on-permit);
}
.permit dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.2em;
}
.permit dd {
  margin: 0;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.0625rem;
  min-width: 0;
}

footer {
  border-top: 1px solid var(--rule);
  padding-block: 14px 22px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: end;
    gap: 64px;
    padding-block: 80px;
  }
  .permit { justify-self: end; }
}

/* Requests page: one primary action, then the steps as a real sequence on the permit card. */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  justify-self: start;
}
.action:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.action:focus-visible, .mark:focus-visible { outline: 3px solid var(--permit); outline-offset: 3px; }
.note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.permit ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.permit ol li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 12px;
  padding-block: 12px;
  border-top: 1.5px solid var(--on-permit);
}
.permit ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding-top: 0.25em;
}
.permit ol strong {
  display: block;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.0625rem;
}
.permit ol span { display: block; font-size: 0.9375rem; }
@media (max-width: 380px) { .action { width: 100%; } }
