/* Stu Property Group — see docs/brand-guide.md for the system */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-semibold-sub.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF6EF;
  --ink: #241C14;
  --brick: #9A4326;
  --umber: #6B5F52;
  --mortar: #E6DCCC;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Avenir Next", Seravek, "Gill Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1D1712;
    --ink: #EDE5D8;
    --brick: #C97B5C;
    --umber: #A99C8C;
    --mortar: #3A3128;
  }
}

* { box-sizing: border-box; margin: 0; }

html {
  color-scheme: light dark;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus-visible { top: 1rem; color: var(--paper); }

/* ---- masthead ---- */

.masthead {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand span { color: var(--brick); }

.masthead nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.masthead nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--umber);
}
.masthead nav a:hover { color: var(--brick); }

/* ---- content column ---- */

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- hero ---- */

.hero { padding: 5.5rem 0 4.5rem; }

.kicker,
.section-label {
  display: block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}

.kicker { margin-bottom: 1.6rem; }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 8.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

.lede {
  font-size: 1.22rem;
  line-height: 1.55;
  max-width: 34rem;
}

.lede-second {
  margin-top: 0.9rem;
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--umber);
}

/* ---- sections ---- */

.section {
  border-top: 1px solid var(--mortar);
  padding: 3.4rem 0 3.6rem;
}

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-label { margin-bottom: 0.9rem; }

.section p + p { margin-top: 1rem; }
.section p { max-width: 38rem; }

/* ---- criteria ---- */

.criteria {
  list-style: none;
  padding: 0;
  margin-top: 2.2rem;
  counter-reset: rule;
}

.criteria li {
  counter-increment: rule;
  position: relative;
  padding-left: 4.2rem;
  max-width: 38rem;
}

.criteria li + li {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mortar);
}

.criteria li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--brick);
}
.criteria li + li::before { top: calc(2rem - 0.05em); }

.criteria h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}

.criteria p { color: var(--umber); }

/* ---- contact ---- */

.contact-action { margin-top: 1.8rem; }

.button {
  display: inline-block;
  background: var(--brick);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
}
.button:hover { color: var(--paper); filter: brightness(0.92); }

.contact-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--umber);
}

/* ---- footer ---- */

.footer {
  border-top: 1px solid var(--mortar);
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 2.4rem 1.5rem 3.2rem;
  font-size: 0.92rem;
  color: var(--umber);
}

.footer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.footer-fine { margin-top: 0.9rem; font-size: 0.84rem; }

/* ---- small screens ---- */

@media (max-width: 640px) {
  .hero { padding: 3.6rem 0 3.2rem; }
  .criteria li { padding-left: 0; }
  .criteria li::before {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }
}
