:root {
  --oxblood: #6B1F2E;
  --ink: #14181A;
  --white: #FFFFFF;
  --line: #D8D5D6; /* rules and frames only, never text */
  --head: "Besley", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 7vw, 3.75rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2rem); }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--oxblood); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }
.top :focus-visible, .pitch :focus-visible, footer :focus-visible, .bar :focus-visible { outline-color: var(--white); }
section, .card, .note, .term { scroll-margin-top: 16px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.read { max-width: 680px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 20; background: var(--white); padding: 12px 16px; }

/* Header */
.top { background: var(--oxblood); color: var(--white); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand img { width: 180px; } /* brand minimum for the horizontal logo */
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--white); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav-link { display: none; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.call { border: 2px solid var(--white); border-radius: 4px; padding-inline: 16px; text-decoration: none; gap: .35em; white-space: nowrap; }
.call:hover { background: var(--white); color: var(--oxblood); }
.call-number { display: none; }

/* Hero: the form is the point */
.hero { background: var(--oxblood); color: var(--white); margin-top: -1px; padding-block: 5px 32px; } /* -1px hides a hairline seam under the header */
.hero-grid { display: grid; gap: 20px; }
.pitch a { color: var(--white); }
.est { font: 600 .95rem/1.4 var(--head); margin-bottom: 8px; }
.pitch h1 { margin-bottom: 8px; }
.lead { font-size: 1.1rem; margin: 0; max-width: 34ch; }
.pitch-more { display: none; }

.card { background: var(--white); color: var(--ink); border-radius: 6px; padding: 20px 18px 24px; align-self: start; }
.card h2 { margin-bottom: 4px; }
.hint { font-size: .95rem; margin-bottom: 12px; }
.trap { position: absolute; left: -9999px; }

fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 8px; margin: 0; min-width: 0; }
legend { font: 700 1.1rem var(--head); padding: 0 8px 0 0; float: left; width: 100%; margin-bottom: 8px; }
legend + * { clear: both; }
label, .label { display: block; font-weight: 600; margin: 0 0 4px; }
label span, .label span { font-weight: 400; }
input:not([type="checkbox"]), textarea {
  width: 100%; min-height: 48px; margin-bottom: 14px; padding: 10px 12px;
  font: 400 1rem var(--body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 4px;
}
textarea { resize: vertical; }
input:user-invalid, textarea:user-invalid { border: 3px solid var(--oxblood); }
input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--oxblood); flex: none; }

.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kinds label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; }
.kinds label:has(:checked) { border-color: var(--oxblood); box-shadow: inset 0 0 0 1.5px var(--oxblood); color: var(--oxblood); }

input[type="file"] { border-style: dashed !important; cursor: pointer; }
input[type="file"]::file-selector-button { font: 600 .95rem var(--body); min-height: 32px; margin-right: 12px; padding: 0 12px; color: var(--white); background: var(--ink); border: 0; border-radius: 3px; cursor: pointer; }
#files { margin-bottom: 6px; }
.file-list { list-style: none; margin: 0 0 12px; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.file-list li span { overflow-wrap: anywhere; }
.file-list button { min-height: 44px; padding: 0 4px; font: 600 .95rem var(--body); color: var(--oxblood); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; padding-block: 8px; cursor: pointer; }
.consent span { font-weight: 400; }
.error { color: var(--oxblood); font-weight: 700; }
.error:empty { display: none; }

button[type="submit"], #again { width: 100%; min-height: 52px; font: 700 1.15rem var(--body); color: var(--white); background: var(--oxblood); border: 2px solid var(--oxblood); border-radius: 4px; cursor: pointer; }
button[type="submit"]:hover, #again:hover { background: var(--ink); border-color: var(--ink); }
button:disabled { cursor: progress; opacity: .7; }
.preview-note { border: 2px dashed var(--oxblood); padding: 12px; }

/* Sections */
.services, .story, .details { padding-block: 48px; }
.services, .details { border-bottom: 1px solid var(--line); }
.story { border-bottom: 1px solid var(--line); }
.three { display: grid; gap: 32px; }
.photo { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 16px; padding: 16px; text-align: center; font-weight: 600; border: 2px dashed var(--line); }
.photo.wide { aspect-ratio: 16 / 9; margin: 24px 0 0; }
.quote-link, .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Wikipedia-style terms */
.story p { font-size: 1.2rem; }
.term { font-weight: 600; text-decoration-thickness: 2px; border-radius: 2px; }
.term:hover, .term:target { background: var(--oxblood); color: var(--white); }

.note { border-top: 1px solid var(--line); padding: 24px 16px 16px; }
.note .photo { max-width: 360px; }
.note:target { box-shadow: inset 5px 0 0 var(--oxblood); animation: landed 1.2s ease-out; }
.note:focus { outline: none; }
@keyframes landed { from { background: var(--line); } to { background: var(--white); } }
.soon { font-weight: 600; margin-bottom: 4px; }

/* Footer */
footer { background: var(--oxblood); color: var(--white); padding-block: 40px; }
footer a { color: var(--white); display: inline-block; padding-block: 10px; }
footer p { margin-bottom: 6px; }
.foot { display: grid; gap: 24px; }
.foot img { width: 220px; }
.todo { border: 1px dashed var(--white); padding: 4px 8px; width: fit-content; }

/* Phone action bar */
.bar { position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--oxblood); }
.bar a { display: grid; place-items: center; min-height: 48px; font-weight: 700; text-decoration: none; border: 2px solid var(--white); border-radius: 4px; color: var(--white); }
.bar a + a { background: var(--white); color: var(--oxblood); }

@media (max-width: 899px) { footer { padding-bottom: 104px; } }

@media (min-width: 600px) {
  .call-word { display: none; }
  .call-number { display: inline; }
}

@media (min-width: 900px) {
  .nav-link { display: inline-flex; }
  .brand img { width: 220px; }
  .hero { padding-block: 32px 64px; }
  .hero-grid { grid-template-columns: 1fr minmax(0, 480px); gap: 64px; }
  .lead { font-size: 1.3rem; }
  .est { font-size: 1.1rem; }
  .pitch { position: sticky; top: 24px; align-self: start; } /* stays beside the long form */
  .pitch-more { display: block; margin-top: 32px; }
  .steps { margin: 0 0 24px; padding-left: 1.3em; font-size: 1.15rem; }
  .steps li { margin-bottom: 8px; padding-left: 4px; }
  .seal { width: 260px; margin: 40px 0 0 -4px; }
  .card { padding: 28px 32px 32px; }
  .three { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; }
  .bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .note:target { animation: none; }
}
