/*
 * liamscanlan.com — a personal page.
 *
 * Deliberately not an agency site. Scanlan & Associates already sells services;
 * this one is a person, and a person who has written two books. So it is
 * typographic rather than photographic: a bookish paper white, one warm ochre
 * accent, and a serif that carries the whole page. Nothing moves, nothing
 * slides, nothing needs explaining.
 *
 * No photograph, because there isn't one on the account. The design does not
 * depend on getting one — a headshot can slot into the intro later without
 * anything else changing.
 */

:root {
  --paper:  #FAF9F6;   /* warm off-white, book stock rather than screen white */
  --paper-2:#F1EFE8;   /* alternating bands                                   */
  --rule:   #E0DCD1;
  --ink:    #14161A;
  --ink-2:  #3E4248;   /* body copy                                           */
  --ink-3:  #74787E;   /* dates, captions                                     */
  --ochre:  #9A5B2E;   /* the single accent                                   */

  --shell: min(940px, 100% - 2.6rem);
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper); color: var(--ink-2);
  font-family: var(--serif); font-size: 18px; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 640px; }
a { color: var(--ochre); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }

/* ── header ──────────────────────────────────────────────────────────────── */

.head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-in { display: flex; align-items: baseline; gap: 2rem; padding: 1.4rem 0; }
.me {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.nav { margin-left: auto; display: flex; gap: 1.5rem; font-family: var(--sans); font-size: .9rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) { .nav { gap: 1rem; font-size: .84rem; } .head-in { gap: 1rem; } }

/* ── intro ───────────────────────────────────────────────────────────────── */

.intro { padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(2.5rem, 7vw, 4rem); }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.4rem;
}
h1 {
  font-family: var(--serif); color: var(--ink); font-weight: 700;
  font-size: clamp(2.1rem, 6.4vw, 3.5rem); line-height: 1.14; letter-spacing: -0.015em;
}
.lede { font-size: clamp(1.05rem, 2.3vw, 1.22rem); max-width: 60ch; margin-top: 1.5rem; }

/* ── sections ────────────────────────────────────────────────────────────── */

.sec { padding: clamp(3rem, 7vw, 4.6rem) 0; }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
section[id] { scroll-margin-top: 1.5rem; }
.h-sec {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--ink-3);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.8rem;
}
h3 { font-family: var(--serif); color: var(--ink); font-size: 1.24rem; font-weight: 700; }
.meta {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-3);
  margin-top: .2rem; margin-bottom: .55rem;
}

.cols { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols p { margin-top: .5rem; font-size: .98rem; }

.work { display: grid; gap: 2.2rem; }
.item p:last-child, .book p:last-child { font-size: 1rem; max-width: 62ch; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }

.books { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── the path ────────────────────────────────────────────────────────────── */

/* A list, not a timeline graphic. No dates on purpose: the sequence is the
   point, and precise years invite argument without adding anything. */
.path { list-style: none; display: grid; gap: 0; max-width: 44rem; }
.path li {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  padding: .95rem 0; border-bottom: 1px solid var(--rule);
}
.path li:first-child { border-top: 1px solid var(--rule); }
.where { font-family: var(--serif); font-weight: 700; color: var(--ink); min-width: 12rem; }
.what { font-size: .98rem; color: var(--ink-2); }
.foot-note { margin-top: 1.6rem; font-size: .98rem; color: var(--ink-3); max-width: 56ch; }

/* ── contact ─────────────────────────────────────────────────────────────── */

.contact-lines { margin-top: 1.6rem; }
.big-link {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ochre); padding-bottom: .1rem;
}
.big-link:hover { color: var(--ochre); }
.or { display: block; margin-top: .8rem; font-size: .98rem; color: var(--ink-3); }

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--rule); padding: 2rem 0 2.6rem; }
.foot-in {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-family: var(--sans); font-size: .86rem; color: var(--ink-3);
}
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ochre); text-decoration: underline; }
