/* Proper Bids — local draft. No external fonts, no trackers. */

:root {
  --paper: #f4f1ea;
  --ink: #1c1b18;
  --muted: #5c5850;
  --rule: #d4cec3;
  --link: #1c1b18;
  --link-hover: #3d3932;
  --focus: #8a4b2a;
  --header-bg: #f4f1ea;
  --max: 40rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, "Times New Roman", Times, serif;
}

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

html {
  font-size: 112.5%; /* 18px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--header-bg);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.15rem 0 1.05rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.nav a {
  color: #3a372f;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main {
  padding: 2.6rem 0 3.4rem;
}

.hero {
  padding-bottom: 2rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3 {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 0.9rem;
}

section p:last-child,
section ul:last-child,
section ol:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

li:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.85rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45rem;
  text-align: center;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

.nowrap {
  white-space: nowrap;
}

.tbc {
  font-style: normal;
  color: var(--muted);
}

.contact address {
  font-style: normal;
  margin-bottom: 0.9rem;
}

.contact .name {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.updated {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 106.25%; /* 17px */
  }

  .wrap {
    width: min(var(--max), calc(100% - 2rem));
  }

  .site-header .wrap {
    padding: 1rem 0 0.95rem;
  }

  .nav {
    width: 100%;
    gap: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  main {
    padding: 1.85rem 0 2.6rem;
  }

  .hero {
    padding-bottom: 1.6rem;
  }

  section {
    padding: 1.6rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
