/* Malholly — site stylesheet. Everything is served from this domain: the CSP allows 'self' only. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --mist: #eef5f0;
  --ink: #12211b;
  --muted: #55665d;
  --line: #d5e2da;
  --emerald: #0e7a57;
  --emerald-deep: #0a5a40;
  --night: #0f1f19;
  --mint: #3ddc97;
  --amber: #f2b33d;
  --amber-wash: #fff3d6;
  --amber-ink: #7a5200;
  --coral: #ef6f53;
  --display: "Bricolage Grotesque", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, "Liberation Mono", monospace;
  --shadow: 0 28px 60px -24px rgba(15, 31, 25, 0.5);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--emerald-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--emerald); }
a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--mist);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 10; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- top bar ---------- */

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 1.7rem; height: 1.7rem; display: block; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }

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

.hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) calc(100% - 15rem), var(--mist) calc(100% - 15rem));
}
.kicker {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--emerald-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
h1 {
  margin: 0 0 1.5rem;
  max-width: 17ch;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.mark { background: linear-gradient(transparent 58%, #ffd77a 58%, #ffd77a 92%, transparent 92%); }
.intro { max-width: 40rem; margin: 0; font-size: 1.25rem; line-height: 1.5; color: var(--muted); }

.board { margin: 3.5rem 0 0; }
.board-scroll { overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow); background: var(--night); }
.board-scroll img { display: block; width: 100%; min-width: 46rem; }
.caption { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }
.caption b { font-weight: 600; color: var(--ink); }

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

.block { padding: 5rem 0; }
.band { background: var(--mist); }

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
h3 { margin: 1.75rem 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.lead { max-width: 44rem; margin: 1.25rem 0 0; font-size: 1.15rem; color: var(--muted); }

/* picture + text rows */

.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: center;
  margin-top: 4.5rem;
}
.show.flip .shot { order: 2; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.show h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.show p { margin: 0 0 1rem; color: var(--muted); max-width: 30rem; }
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: 30rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--mint);
}

.aside {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: var(--amber-wash);
  color: var(--ink);
  font-size: 0.98rem;
}
.aside p { margin: 0; max-width: none; color: var(--ink); }

/* heading left, content right */

.part {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1.5rem 4rem;
}
.part-body > :first-child { margin-top: 0; }
.part-body p { max-width: 42rem; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1.25rem 0.85rem 0; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
td:first-child, th:first-child { white-space: nowrap; font-weight: 600; }
.level {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  background: #cfeede;
  color: var(--emerald-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
}
.level.change { background: #ffe2a8; color: var(--amber-ink); }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; max-width: 42rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--night);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.95rem;
  text-align: center;
  line-height: 2.2rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--line);
}
.steps strong { display: block; }
.steps span { color: var(--muted); }

/* ---------- retention list, contact ---------- */

.kept { margin: 1.5rem 0 0; max-width: 46rem; }
.kept div { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 0.25rem 2rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.kept dt { font-weight: 600; }
.kept dt small { display: block; font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.kept dd { margin: 0; color: var(--emerald-deep); font-family: var(--mono); font-size: 0.85rem; padding-top: 0.2rem; }

.plain { max-width: 42rem; padding-left: 1.2rem; }
.plain li { margin-bottom: 0.5rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.cards > div { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cards h3 { margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.cards p { margin: 0; font-size: 0.98rem; overflow-wrap: anywhere; }

/* ---------- legal pages ---------- */

.legal { max-width: 46rem; padding: 4rem 0 3rem; }
.legal h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.75rem; }
.legal .updated { margin: 0 0 2rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.legal h2 { margin: 2.5rem 0 0.6rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 1.5rem; font-weight: 700; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .aside { margin: 1.5rem 0; }

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

.bottom { background: var(--night); font-size: 0.92rem; color: #a9bdb2; }
.bottom .wrap { padding-top: 2.75rem; padding-bottom: 3rem; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin-bottom: 1.5rem; }
.bottom a { color: #e8f1ec; }
.bottom a:hover { color: var(--mint); }
.bottom a:focus-visible { outline-color: var(--mint); }
.bottom address { font-style: normal; margin-bottom: 0.75rem; }
.bottom p { margin: 0 0 0.4rem; max-width: 52rem; }

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

@media (max-width: 54rem) {
  .hero { padding-top: 2.75rem; background: linear-gradient(to bottom, var(--paper) 0, var(--paper) calc(100% - 11rem), var(--mist) calc(100% - 11rem)); }
  .block { padding: 3.25rem 0; }
  .show { grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
  .show.flip .shot { order: 0; }
  .part { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .kept div { grid-template-columns: minmax(0, 1fr); }
  td:first-child, th:first-child { white-space: normal; }
}

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