/* mham.co
   bench  — the public page: deep petrol, brass, tight display type
   paper  — trip pages: pale sage, same brass, serif-forward reading
*/

:root {
  --bench: #0e2129;
  --bench-raised: #16323c;
  --chalk: #e8efec;
  --chalk-dim: #9cb2b3;
  --brass: #cf9c43;

  --paper: #eef1ea;
  --paper-raised: #e3e8de;
  --ink: #1c2a25;
  --ink-dim: #566159;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Newsreader", ui-serif, Georgia, serif;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 6vw, 5rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.65;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}

body.bench {
  background: var(--bench);
  color: var(--chalk);
}

body.paper {
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 120ms ease;
}

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

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

/* ---------- public page ---------- */

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 8rem) var(--gutter) clamp(3rem, 10vh, 6rem);
}

.masthead {
  margin-bottom: clamp(2.5rem, 7vw, 4rem);
}

.name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.75rem, 17vw, 8.5rem);
  font-stretch: 88%;
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  color: var(--chalk);
}

.name-break {
  display: block;
  height: 0;
}

@media (min-width: 34rem) {
  .name-break {
    display: inline;
    height: auto;
  }
}

.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  max-width: 24ch;
  margin: 0;
  color: var(--chalk);
}

.bio {
  max-width: var(--measure);
  margin: 0 0 clamp(2.75rem, 7vw, 4.5rem);
  color: var(--chalk-dim);
}

.bio p {
  margin: 0 0 1.1em;
}

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

.block {
  margin-bottom: clamp(2.75rem, 7vw, 4.25rem);
}

.block-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--chalk-dim);
  margin: 0 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--bench-raised);
}

.now {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  font-size: 1.05em;
}

.now li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.7rem;
}

.now li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 1px;
  background: var(--brass);
}

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

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.roles > li + li {
  margin-top: 1.9rem;
}

.roles h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--chalk);
  margin: 0;
}

.role-meta {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--brass);
  margin: 0.15rem 0 0.4rem;
}

.roles p:last-child {
  margin: 0;
  color: var(--chalk-dim);
  font-size: 0.98em;
}

.facts {
  margin: 0;
  max-width: var(--measure);
}

.facts dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--chalk);
  margin-top: 1.4rem;
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: 0.2rem 0 0;
  color: var(--chalk-dim);
  font-size: 0.98em;
}

@media (min-width: 42rem) {
  .facts {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    column-gap: 1.5rem;
    row-gap: 1.1rem;
    max-width: 40rem;
  }

  .facts dt,
  .facts dt:first-child {
    margin-top: 0;
  }

  .facts dd {
    margin: 0;
  }
}

.bio-personal {
  color: var(--chalk);
  padding-top: 1.1rem;
  border-top: 1px solid var(--bench-raised);
}

.contact {
  border-top: 1px solid var(--bench-raised);
  padding-top: 1.5rem;
}

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1rem;
}

.colophon {
  margin: 0;
  font-size: 0.9rem;
  color: var(--chalk-dim);
}

/* ---------- trip pages ---------- */

.trip {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) clamp(3rem, 9vh, 5rem);
}

.trip-head {
  margin-bottom: clamp(2rem, 6vw, 3rem);
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--brass);
}

.trip-kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin: 0 0 0.75rem;
}

.trip h1 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin: 0;
}

.trip-sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-dim);
  margin: 0.85rem 0 0;
  max-width: 34ch;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2.75rem;
  margin-bottom: 0.4rem;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--brass);
  color: var(--ink-dim);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--paper-raised);
  vertical-align: top;
}

.prose th {
  font-family: var(--display);
  font-weight: 600;
}

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

.prose code {
  font-size: 0.9em;
  background: var(--paper-raised);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.trip-foot {
  margin-top: clamp(3rem, 9vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-raised);
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.trip-foot p {
  margin: 0;
  max-width: 48ch;
}

/* wide content never pushes the page sideways */
.prose > table,
.prose > pre {
  display: block;
  overflow-x: auto;
}

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