/* Ethan Hawkes personal site. One family (Archivo, variable width and weight),
   cool paper, navy ink, one harbor-teal accent. Structure encodes information:
   rules separate entries in a real chronological record; nothing is decorative. */

:root {
  --paper: #EDF0F0;
  --ink: #15222D;
  --harbor: #1E5E63;
  --slate: #5B6B74;
  --rule: #C9D1D3;
  --white: #FFFFFF;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
  padding: 0 var(--gutter) 4rem;
}
a { color: var(--harbor); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .skip:focus-visible { outline: 3px solid var(--harbor); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem;
}
.skip:focus { left: 0.5rem; }

.mast { max-width: 74rem; margin: 0 auto; padding: 1.1rem 0 0; }
.mast-note { margin: 0; color: var(--slate); font-size: 0.95rem; }
.mast-note a { color: inherit; }

main { max-width: 74rem; margin: 0 auto; }

/* Hero: the nameplate is the one loud element. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2.5rem, 8vh, 6rem) 0 clamp(2rem, 6vh, 4rem);
  border-bottom: 2px solid var(--ink);
}
h1 {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-variation-settings: "wdth" 78, "wght" 800;
  font-size: clamp(3.75rem, 12vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { max-width: var(--measure); margin: 0 0 1.5rem; font-size: 1.15em; line-height: 1.45; text-wrap: pretty; }
.primary-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--rule); background: var(--white);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-variation-settings: "wdth" 90, "wght" 700;
  color: var(--slate);
}
section { padding: 2.5rem 0 0; }
section + section { margin-top: 0.5rem; }

/* What he operates: two named things, term and description. */
.orgs { margin: 0; display: grid; gap: 1.25rem; }
.orgs > div { max-width: var(--measure); }
.orgs dt { font-weight: 700; font-size: 1.15em; margin: 0 0 0.2rem; }
.orgs dt span { font-weight: 400; color: var(--slate); }
.orgs dd { margin: 0; }

/* Record: a real sequence, so a numbered-by-year list with rules between entries. */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, var(--measure));
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline .when { color: var(--slate); font-variant-numeric: tabular-nums; }
.timeline .role { font-weight: 700; margin: 0; }
.timeline .org { font-weight: 400; }
.timeline .detail { margin: 0.2rem 0 0; color: var(--ink); }

.plain { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.plain li { padding: 0.35rem 0; }
.plain .muted { color: var(--slate); }

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

.foot { max-width: 74rem; margin: 4rem auto 0; padding-top: 1.25rem; border-top: 2px solid var(--ink); color: var(--slate); font-size: 0.95rem; }
.foot p { max-width: var(--measure); margin: 0 0 0.5rem; }
.foot-note a { color: inherit; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { order: -1; width: min(52vw, 220px); }
  .timeline li { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  html { background: #fff; }
  a { color: inherit; text-decoration: none; }
  .mast-note, .foot-note, .skip { display: none; }
}
