/* Dos Nombres LLC — dosnombre.com
   Hand-written. No build step. Relative paths throughout. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --ink: #16181d;
  --ink-soft: #565c66;
  --paper: #ffffff;
  --wash: #eceff2;
  --rule: #d7dbe0;
  --ember: #e8891a;
  --spark: #4fb3e8;
  --slate: #3d4756;
  --farm: #22402f;

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --shell: 64rem;
}

/* ---------- Reset ---------- */

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 6vw, 3.15rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1.05em;
  max-width: var(--measure);
}

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

ul,
ol {
  max-width: var(--measure);
  margin: 0 0 1.05em;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4em;
}

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

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.stamp {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin: 0.85rem 0 0;
}

/* ---------- Shell ---------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Block rhythm lives on classes only — never on bare element selectors,
   so nothing here can be quietly outranked. */
.band {
  padding-block: clamp(3rem, 7vw, 4.75rem);
}

.band--tight {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.band--wash {
  background: var(--wash);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
}

/* ---------- Topbar ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav a {
  text-decoration: none;
  padding-block: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--rule);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--ember);
}

/* ---------- Hero: the one centred moment ---------- */

.hero {
  text-align: center;
  padding-block: clamp(3.25rem, 9vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.hero__mark {
  width: min(340px, 66vw);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.hero__wordmark {
  font-size: clamp(2.4rem, 8.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__line {
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 1.15rem auto 0;
}

/* Everything below the hero is hard left. */

.pagehead {
  padding-block: clamp(2.5rem, 6vw, 3.75rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.pagehead p {
  margin-top: 1rem;
}

/* ---------- Ledger ---------- */

.ledger {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1rem 2.5rem;
  align-items: start;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.ledger__row:first-child {
  border-top: 0;
}

.ledger__name {
  margin: 0 0 0.35rem;
}

.ledger__blurb {
  margin: 0;
  color: var(--ink-soft);
  max-width: 30rem;
}

.ledger__rail {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.ledger__rail span {
  display: block;
}

.ledger__rail span + span {
  margin-top: 0.2rem;
}

@media (max-width: 38rem) {
  .ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

/* ---------- Panels ---------- */

.panel {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  align-items: start;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.panel:first-child {
  border-top: 0;
}

.panel__body > * + h3 {
  margin-top: 1.6rem;
}

.panel__meta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
  max-width: var(--measure);
}

@media (max-width: 38rem) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tiles that sit in the panel's narrow left column */

.tile {
  width: 8.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--wash);
}

.tile img {
  height: 44%;
  width: auto;
  display: block;
}

.tile--farm {
  background: var(--farm);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.badge {
  width: 8.5rem;
  height: auto;
}

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

.bigmail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 1.35rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  word-break: break-word;
}

.bigmail:hover {
  text-decoration-thickness: 3px;
}

.address {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.35rem;
  max-width: var(--measure);
}

.address span {
  display: block;
}

/* ---------- Legal pages ---------- */

.legal h2 {
  font-size: 1.3125rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal .note {
  border-left: 2px solid var(--ember);
  padding-left: 1rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: var(--measure);
}

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

.sitefoot {
  border-top: 1px solid var(--ink);
  padding-block: 2.25rem 2.75rem;
  font-size: 0.9375rem;
}

.sitefoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.sitefoot__entity {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
