/* itsalexhamilton.com. Inter for headings and UI, Source Serif 4 for reading text. One accent. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/SourceSerif4-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/SourceSerif4-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #f9f9f8;
  --ink: #2b2b2b;
  --muted: #6b6b66;
  --rule: #dcdcd6;
  --accent: #b4482c;      /* darkened Creo coral, 5.3:1 on --bg */
  --link-line: #c9c9c2;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Left column: name and nav */
.side { position: fixed; top: 0; left: 0; width: 200px; padding: 56px 0 0 48px; }
.name { display: block; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; padding-bottom: 14px; border-bottom: 1px solid var(--ink); width: 110px; }
.side ul { list-style: none; margin: 14px 0 0; padding: 0; }
.side li a { display: block; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 2; }
.side li a:hover, .side li a[aria-current] { color: var(--ink); }

main { margin-left: 320px; max-width: 880px; padding: 64px 48px 32px 0; }

/* Hero */
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; margin: 0; max-width: 820px; }
.hero h1 a { text-decoration: none; border-bottom: 3px solid var(--link-line); }
.hero h1 a:hover { border-bottom-color: var(--accent); }
.avatar { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; vertical-align: -0.18em; }
.links { margin: 28px 0 0; }
.links a, .foot a { text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 22px; }
.links a:hover, .foot a:hover { color: var(--ink); }

/* Sections */
section { border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 40px; }
h2 { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -.005em; margin: 0; max-width: 720px; }
.more { margin: 10px 0 0; }
.more a { text-decoration: none; font-size: 14px; color: var(--muted); }
.more a:hover { color: var(--ink); }
.intro, .prose p { font-family: var(--serif); font-size: 19px; line-height: 1.75; max-width: 640px; margin: 22px 0 0; }
.intro a, .prose a { text-decoration-color: var(--link-line); text-underline-offset: 3px; }

.pagehead h1 { font-size: 44px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.pagehead + section { margin-top: 56px; }

/* Thumbnail grid */
.grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.card a { text-decoration: none; display: block; }
.card img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; background: #ecece8; margin-bottom: 14px; }
.card a:hover h3 { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.outlet { color: var(--accent); font-weight: 600; }
.card h3, .rows h3 { font-size: 18px; line-height: 1.3; font-weight: 500; margin: 6px 0 0; }
.desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.also { margin: 36px 0 0; font-size: 14px; color: var(--muted); }

/* Text list */
.rows { list-style: none; margin: 24px 0 0; padding: 0; max-width: 700px; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: block; text-decoration: none; padding: 18px 0; }
.rows a:hover h3 { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

/* Worked with */
.worked { list-style: none; margin: 28px 0 0; padding: 0; max-width: 760px; }
.worked li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.worked h3 { font-size: 16px; font-weight: 600; margin: 0; }
.worked p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; }

/* Everything index */
section.yr { margin-top: 48px; padding-top: 28px; }
section.yr h2 { font-size: 22px; }
.index { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.index td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.index td.k { width: 90px; color: var(--muted); font-size: 13px; }
.index td.o { width: 210px; color: var(--accent); font-weight: 600; font-size: 13px; }
.index a { text-decoration: none; }
.index a:hover { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

.portrait { width: 200px; height: 200px; border-radius: 50%; margin-top: 8px; }

.foot { margin-left: 320px; padding: 0 48px 64px 0; max-width: 880px; margin-top: 72px; }
.foot p { margin: 0; padding-top: 40px; border-top: 1px solid var(--rule); }

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

/* Tablet: two columns */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone: name and nav move to the top */
@media (max-width: 760px) {
  .side { position: static; width: auto; padding: 24px 16px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
  .name { border-bottom: 0; padding: 0; width: auto; }
  .name br { display: none; }
  .side ul { margin: 0; display: flex; gap: 18px; }
  .side li a { line-height: 1.6; }
  main, .foot { margin-left: 0; padding-left: 16px; padding-right: 16px; }
  main { padding-top: 40px; }
  .hero h1, .pagehead h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  section { margin-top: 56px; padding-top: 32px; }
  .intro, .prose p { font-size: 18px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .worked li { grid-template-columns: 1fr; gap: 4px; }
  .index, .index tbody, .index tr, .index td { display: block; width: auto !important; }
  .index tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .index td { border: 0; padding: 2px 0; }
  .index td.k { display: inline; }
  .index td.o { display: inline; margin-right: 8px; }
  .index td.t { margin-bottom: 2px; }
  .side ul { flex-wrap: wrap; gap: 4px 16px; }
  .links a, .foot a { display: inline-block; margin-bottom: 8px; }
}

/* Home hero: name, credential, then a reading paragraph and the email button */
.hero2 { display: grid; grid-template-columns: 72px 1fr; gap: 0 20px; align-items: center; max-width: 760px; }
.hero2 img { width: 72px; height: 72px; border-radius: 50%; grid-row: span 2; }
.hero2 h1 { font-size: 36px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.hero2 .cred { margin: 6px 0 0; font-size: 17px; color: var(--muted); }
.lede { font-family: var(--serif); font-size: 19px; line-height: 1.7; max-width: 640px; margin: 28px 0 0; }
.lede a { text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.btn:hover { background: var(--ink); color: var(--bg); }
.tlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--muted); }
.tlink:hover { color: var(--ink); }

/* Thumbnail rows (Work page) */
.crow { list-style: none; margin: 28px 0 0; padding: 0; max-width: 760px; }
.crow li { border-bottom: 1px solid var(--rule); }
.crow a { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 16px 0; text-decoration: none; align-items: start; }
.crow img, .ph { width: 128px; aspect-ratio: 2 / 1; object-fit: cover; background: #ecece8; display: block; }
.crow h3 { font-size: 17px; line-height: 1.3; font-weight: 500; margin: 4px 0 0; }
.crow a:hover h3 { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.crow .desc { margin-top: 6px; }
.star { color: var(--accent); }
.role { color: var(--ink); }
.filters { margin: 24px 0 0; font-size: 14px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 20px; text-decoration: none; color: var(--muted); }
.filters a:hover { color: var(--ink); }

/* Talks */
.talks { list-style: none; margin: 28px 0 0; padding: 0; max-width: 720px; }
.talks li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.talks h3 { font-size: 19px; line-height: 1.3; font-weight: 500; margin: 6px 0 0; }
.talks h3 a { text-decoration: none; }
.talks h3 a:hover { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.talks .desc { font-size: 15px; }
.watch { display: inline-flex; align-items: center; min-height: 32px; margin-top: 6px; font-size: 14px; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.topics { margin: 24px 0 0; padding: 0; list-style: none; max-width: 700px; }
.topics li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.topics h3 { margin: 0; font-size: 16px; font-weight: 600; }
.topics p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.facts { margin: 24px 0 0; max-width: 700px; display: grid; grid-template-columns: 160px 1fr; gap: 0 24px; font-size: 15px; }
.facts dt { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bio { font-family: var(--serif); font-size: 17px; line-height: 1.65; max-width: 640px; margin: 16px 0 0; padding: 18px 20px; background: #f0f0ec; }

/* Contact */
.addr { font-size: 22px; font-weight: 500; margin: 24px 0 0; }
.addr a { text-decoration: none; border-bottom: 2px solid var(--link-line); }
.routes { list-style: none; margin: 28px 0 0; padding: 0; max-width: 720px; }
.routes li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.routes h3 { margin: 0; font-size: 19px; font-weight: 500; }
.routes p { margin: 8px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; max-width: 600px; }
.routes p a { text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 500; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

/* About timeline */
.tl { list-style: none; margin: 24px 0 0; padding: 0; max-width: 720px; }
.tl li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tl .yrs { font-size: 14px; color: var(--muted); padding-top: 2px; }
.tl h3 { margin: 0; font-size: 16px; font-weight: 600; }
.tl p { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; }

/* Phone: one-row header with three links (the rest are in the footer), compact rows, 44 px tap targets */
@media (max-width: 760px) {
  .side { flex-wrap: nowrap; padding-top: 12px; }
  .name { font-size: 13px; padding: 12px 0; white-space: nowrap; }
  .side ul { gap: 0 16px; flex-wrap: nowrap; }
  .side li a { padding: 12px 0; letter-spacing: .12em; }
  .side li.wide { display: none; }
  .hero2 { grid-template-columns: 56px 1fr; gap: 0 14px; }
  .hero2 img { width: 56px; height: 56px; }
  .hero2 h1 { font-size: 26px; }
  .hero2 .cred { font-size: 16px; }
  .lede { font-size: 17px; margin-top: 20px; }
  .btn { width: 100%; justify-content: center; }
  .grid { gap: 0; }
  .grid .card { border-bottom: 1px solid var(--rule); }
  .card a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; align-items: start; }
  .card img, .card .ph { width: 96px; margin: 0; }
  .card h3 { font-size: 16px; margin-top: 4px; }
  .card .desc { display: none; }
  .crow a { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; }
  .crow img, .crow .ph { width: 96px; }
  .crow .desc { display: none; }
  .crow h3 { font-size: 16px; }
  .topics li, .tl li { grid-template-columns: 1fr; gap: 4px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 2px; }
  .addr { font-size: 19px; overflow-wrap: anywhere; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 0; }
}

/* Footer and contact links wrap at any width (the links have no spaces between them) */
.foot p, .links { display: flex; flex-wrap: wrap; row-gap: 4px; }

/* Smallest phones (320 px): tighten the one-row header so it still fits */
@media (max-width: 360px) {
  .name { letter-spacing: .1em; font-size: 12px; }
  .side ul { gap: 0 12px; }
  .side li a { letter-spacing: .06em; font-size: 11px; }
}

/* Home hero, Lisa Charlotte Muth's structure: one first-person sentence with inline links, portrait floated right */
.hero3 { max-width: 780px; }
.hero3 .face { float: right; width: 96px; height: 96px; border-radius: 50%; margin: 4px 0 8px 24px; shape-outside: circle(50%); object-fit: cover; }
.hero3 h1 { font-size: 40px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.hero3 h1 a { text-decoration: none; border-bottom: 3px solid var(--link-line); }
.hero3 h1 a:hover { border-bottom-color: var(--accent); }
.hlinks { clear: both; display: flex; flex-wrap: wrap; gap: 0 22px; margin: 20px 0 0; }
.hlinks a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hlinks a.primary { color: var(--ink); }
.hlinks a:hover { color: var(--accent); }

/* One treatment for every thumbnail: 2:1, hairline border */
.card img, .crow img, .ph { border: 1px solid var(--rule); }
.outlet { white-space: nowrap; }
@media (min-width: 761px) {
  .crow { max-width: 820px; }
  .crow a { grid-template-columns: 180px 1fr; gap: 22px; }
  .crow img, .crow .ph { width: 180px; }
}

/* Tablet: name and nav move to a top bar below 1000 px so the content gets the full width */
@media (max-width: 1000px) {
  .side { position: static; width: auto; padding: 12px 32px 0; display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
  .name { border-bottom: 0; padding: 12px 0; width: auto; white-space: nowrap; }
  .name br { display: none; }
  .side ul { margin: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .side li a { padding: 12px 0; line-height: 1.6; }
  main, .foot { margin-left: 0; padding-left: 32px; padding-right: 32px; }
  main { padding-top: 40px; }
}
@media (max-width: 760px) {
  .side { padding: 12px 16px 0; }
  .side ul { flex-wrap: nowrap; gap: 0 16px; }
  main, .foot { padding-left: 16px; padding-right: 16px; }
  .hero3 .face { width: 64px; height: 64px; margin-left: 14px; }
  .hero3 h1 { font-size: 24px; line-height: 1.3; }
  .hero3 h1 a { border-bottom-width: 2px; }
  .hlinks { gap: 0 18px; margin-top: 14px; }
}
@media (max-width: 360px) {
  .side ul { gap: 0 12px; }
  .hero3 h1 { font-size: 22px; }
}

/* Legal pages */
section.legal { margin-top: 40px; padding-top: 28px; }
section.legal h2 { font-size: 22px; }
section.legal .prose p { font-size: 17px; margin-top: 12px; }
@media (min-width: 761px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
