/* harrycrane.com — Direction C: editorial index.
   Sticky left column (name, nav, contact); right column reads like a table of contents. */

:root {
  --bg: #f7f6f3;
  --fg: #111111;
  --muted: #5f5b55;
  --line: #d9d5ce;
  --accent: #b3121a;
  --soft: #eeebe5;
  --btn: #111111;
  --btn-fg: #f7f6f3;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --fg: #f0eee9; --muted: #a19c93; --line: #2c2a27;
    --accent: #ff5a5f; --soft: #1c1b19; --btn: #f0eee9; --btn-fg: #121212;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
em { font-style: italic; }

/* Layout */
.page {
  max-width: 72rem; margin: 0 auto;
  padding-inline: 1.25rem; padding-block: 2.5rem 4rem;
  display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr; gap: 3rem;
}
.left { position: sticky; top: 1.5rem; align-self: start; display: grid; gap: 1.75rem; }
.right { min-width: 0; display: grid; gap: 3rem; align-content: start; }

/* Left column */
.left h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .95; letter-spacing: -.015em;
  margin: 0; text-wrap: balance;
}
.left h1 a:hover { color: inherit; }
.left .role { font-family: var(--mono); font-size: .78rem; color: var(--muted); line-height: 1.5; margin: .75rem 0 0; }
.left img { width: 100%; max-width: 12rem; height: auto; display: block; border-radius: 6px; }
.left nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.left nav a { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.left nav li:last-child a { border-bottom: 1px solid var(--line); }
.left nav a[aria-current] { color: var(--accent); font-weight: 500; }
.left nav a span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.contact { display: grid; gap: .6rem; }
.contact .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact .email { font-family: var(--mono); font-size: .85rem; word-break: break-all; }
.contact .links { font-family: var(--mono); font-size: .75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem 1rem; }

/* Buttons */
.btn {
  font: 500 .8rem/1 var(--sans); background: var(--btn); color: var(--btn-fg);
  border: 0; border-radius: 4px; padding: .55rem .8rem; cursor: pointer;
  display: inline-flex; gap: .4rem; align-items: center; justify-self: start;
}
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn:hover { opacity: .85; color: inherit; }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }

/* Right column pieces */
h2 {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 1rem;
}
.pagetitle {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.05; margin: 0 0 .5rem; letter-spacing: -.01em; text-wrap: balance;
}
.lede { font-size: 1.15rem; max-width: 42rem; margin: 0; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose p:first-child { font-size: 1.2rem; line-height: 1.5; }
.prose p:last-child { margin-bottom: 0; }

.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.offer > div { background: var(--soft); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; }
.offer h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; margin: 0; }
.offer p { margin: 0; font-size: .92rem; color: var(--muted); }
.offer a.more { margin-top: .25rem; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.areas h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin: 0 0 .5rem; }
.areas p { margin: 0; font-size: .92rem; color: var(--muted); }

.idx { list-style: none; margin: 0; padding: 0; }
.idx li {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: .25rem 1rem; align-items: baseline;
  padding: .65rem 0; border-top: 1px solid var(--line);
}
.idx li:last-child { border-bottom: 1px solid var(--line); }
.idx .y { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.idx .t { font-weight: 500; }
.idx .m { font-size: .85rem; color: var(--muted); grid-column: 2; }
.idx .v { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-align: right; white-space: nowrap; }
.idx.cite li { grid-template-columns: 4rem 1fr; }
.idx.cite .m { grid-column: 2; }
.more { font-size: .9rem; font-weight: 500; color: var(--accent); display: inline-block; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.shortbio { background: var(--soft); padding: 1.5rem; display: grid; gap: 1rem; max-width: 44rem; }
.shortbio p { margin: 0; font-size: .95rem; }
.shortbio .row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.shortbio .ok { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

.twins { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.twin { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.twin.plain { grid-template-columns: 1fr; }
.twin img { width: 4.5rem; height: auto; display: block; }
.twin p { margin: 0; font-size: .92rem; color: var(--muted); }
.twin .t { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--fg); margin-bottom: .35rem; line-height: 1.2; }
.twin .mark { font-family: var(--display); font-size: 2rem; line-height: 1; }
.twin .mark span, .accent { color: var(--accent); }

/* Jump bar under a page title */
.jump { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .75rem; font-family: var(--mono); font-size: .78rem; }
.jump a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: .1rem; }
.jump a:hover { color: var(--accent); border-color: var(--accent); }
section[id] { scroll-margin-top: 1.5rem; }

/* Compact rows: one line per item */
.idx.compact li { padding: .45rem 0; }
.idx.compact .m { font-family: var(--mono); font-size: .72rem; }
.showmore { margin-top: .9rem; }
/* Course lists: first column holds a course code rather than a year */
.idx.codes li { grid-template-columns: 4.75rem 1fr auto; }
.idx.codes .y { white-space: nowrap; }

/* Press list: headline, outlet, date, then the snippet with the quote in context */
.press { list-style: none; margin: 0; padding: 0; display: grid; }
.press li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.press li:last-child { border-bottom: 1px solid var(--line); }
.press .meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.press .meta .outlet { color: var(--accent); }
.press .h { font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.press .snip { font-size: .95rem; color: var(--muted); max-width: 46rem; margin: 0; }
.press .snip q { color: var(--fg); font-style: italic; quotes: "\201C" "\201D"; }
.press .snip strong { color: var(--fg); font-weight: 500; }
.press .link { font-size: .85rem; }
.empty { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* Book page: cover beside the description, then chapter rows that open to the synopsis */
.book { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: start; max-width: 46rem; }
.book img { width: 100%; height: auto; display: block; }
.book p { margin: 0 0 .75rem; }
.book .pub { font-size: .85rem; color: var(--muted); }
.chapters details { border-top: 1px solid var(--line); }
.chapters details:last-child { border-bottom: 1px solid var(--line); }
.chapters summary {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: .25rem 1rem; align-items: baseline;
  padding: .65rem 0; cursor: pointer; list-style: none; font-weight: 500;
}
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--muted); }
.chapters details[open] summary::after { content: "\2212"; }
.chapters summary:hover { color: var(--accent); }
.chapters summary .y { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--accent); }
.chapters .syn { margin: 0 0 1rem 5rem; max-width: 42rem; font-size: .92rem; color: var(--muted); }
.chapters .syn p { margin: 0 0 .6rem; }
.chapters .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .85rem; }
.chapters .links a { color: var(--accent); }
.chapters .links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Click-to-play video: thumbnail with a play mark, swapped for the player on click */
.video { max-width: 42rem; }
.video + ul { margin-top: 1.5rem; }
.video button {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: #000; cursor: pointer; overflow: hidden;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video button::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: rgba(0, 0, 0, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.video button:hover::after { background-color: var(--accent); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video .cap { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }

/* Draft marker: shown on sections whose content is not yet approved. */
.draft { position: relative; }
.draft::before {
  content: "draft — not yet approved"; font-family: var(--mono); font-size: .65rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); border: 1px dashed var(--accent);
  padding: .15rem .45rem; border-radius: 3px; display: inline-block; margin-bottom: .75rem;
  grid-column: 1 / -1; justify-self: start;
}
li.draft::before { content: "draft"; margin-bottom: .25rem; }

footer.site { grid-column: 1 / -1; font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: 2rem; }

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; gap: 2rem; }
  .left { position: static; grid-template-columns: 1fr auto; align-items: start; }
  .left img { max-width: 6.5rem; grid-column: 2; grid-row: 1; }
  .left nav, .contact { grid-column: 1 / -1; }
  .offer, .areas, .twins { grid-template-columns: 1fr; }
  .idx li { grid-template-columns: 3.5rem 1fr; }
  .idx .v { grid-column: 2; text-align: left; }
  .idx.codes li { grid-template-columns: 4.75rem 1fr; }
  .book { grid-template-columns: 6rem 1fr; gap: 1rem; }
  .chapters summary { grid-template-columns: 3.5rem 1fr auto; }
  .chapters .syn { margin-left: 0; }
}
