/* magnusgrimmett.com — single page.
   Shares the Mustang design language: cool paper, spruce, brass, survey mono. */

:root {
  --paper:      #F1F2EE;
  --paper-2:    #E7E9E3;
  --ink:        #12181A;
  --ink-60:     rgba(18, 24, 26, .62);
  --ink-38:     rgba(18, 24, 26, .38);
  --spruce-deep:#14241F;
  --brass:      #A5822F;
  --rule:       1px solid rgba(18, 24, 26, .16);
  --rule-light: 1px solid rgba(241, 242, 238, .20);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(20px, 5vw, 64px);
}

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

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 {
  font-family: var(--display); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.04; margin: 0;
}

.eyebrow {
  font-family: var(--mono); font-size: .70rem; letter-spacing: .20em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: rgba(18,24,26,.16); }
.on-dark .eyebrow::after { background: rgba(241,242,238,.22); }

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

.hero {
  position: relative; overflow: hidden;
  background: var(--spruce-deep); color: var(--paper);
  padding: clamp(64px, 10vw, 130px) 0 clamp(56px, 8vw, 104px);
}
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; }
.hero-contours path { fill: none; stroke: #6E8C80; stroke-width: 1; }
.hero-inner { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; }
}
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); text-transform: uppercase; }
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55;
  color: rgba(241,242,238,.72); max-width: 46ch; margin: 24px 0 0;
}
.portrait { border: 1px solid rgba(241,242,238,.22); }
.portrait img { filter: grayscale(1) contrast(1.04); transition: filter .5s ease; width: 100%; height: auto; }
.portrait:hover img { filter: grayscale(0); }

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

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-tint { background: var(--paper-2); border-top: var(--rule); border-bottom: var(--rule); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* --- ventures ------------------------------------------------------------ */

.ventures { display: grid; gap: clamp(22px, 3vw, 34px); grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 700px)  { .ventures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ventures { grid-template-columns: repeat(4, 1fr); } }

.venture {
  display: block; text-decoration: none; border-top: 2px solid var(--ink);
  padding-top: 18px; transition: border-color .25s ease;
}
.venture:hover { border-top-color: var(--brass); }
.venture h3 { font-size: 1.2rem; }
.venture .role {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass); margin-top: 8px;
}
.venture p { font-size: .95rem; color: var(--ink-60); margin: 12px 0 0; }
.venture .go {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-38); margin-top: 14px; display: block;
}
.venture:hover .go { color: var(--ink); }

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

.plate { font-family: var(--mono); font-size: .78rem; border-top: var(--rule); margin: 26px 0 0; max-width: 560px; }
.plate div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: var(--rule); }
.plate dt { color: var(--ink-38); letter-spacing: .10em; text-transform: uppercase; font-size: .66rem; margin: 0; }
.plate dd { margin: 0; text-align: right; }
.plate a { text-decoration: none; border-bottom: 1px solid rgba(18,24,26,.25); }
.plate a:hover { border-bottom-color: var(--brass); }

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

.foot {
  background: var(--ink); color: rgba(241,242,238,.6);
  padding: 44px 0 34px; font-family: var(--mono); font-size: .66rem; letter-spacing: .10em;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.foot a { color: rgba(241,242,238,.6); text-decoration: none; }
.foot a:hover { color: var(--brass); }

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

.draw path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s cubic-bezier(.25,.8,.3,1) forwards; }
.draw path:nth-child(2) { animation-delay: .12s; }
.draw path:nth-child(3) { animation-delay: .24s; }
.draw path:nth-child(4) { animation-delay: .36s; }
.draw path:nth-child(5) { animation-delay: .48s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .draw path { animation: none; stroke-dashoffset: 0; }
  .portrait img { transition: none; }
}

@media (max-width: 720px) { body { font-size: 17px; } }
