/* Paper, ink and green from Dot; warm gold and the serif treatment from Writer.
   Intentionally separate from main.css: the legacy pages keep their own styles. */
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #343930;
  --muted: #62675c;
  --line: #dbddd3;
  --green: #476352;
  --gold: #8a6d3b;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #dde6d8; }
a { color: inherit; }
a:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
.page-shell { width: min(100% - 96px, 1080px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; top: 12px; left: 24px; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; flex-wrap: wrap; padding-block: 24px; align-items: center; justify-content: space-between; gap: 24px; min-height: 116px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.identity h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.monogram { font-family: var(--serif); font-size: 36px; letter-spacing: -3px; }
.monogram span { color: var(--green); }
.site-address { font-size: 12px; color: var(--muted); }
p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 32px; background: #fbfcf8; }
.dot-card { background: #eff2e9; }
.writer-card { background: #f5f0e5; border-color: #e0d7c6; }
.marlow-card { background: #eef1eb; border-color: #d4ddd0; }
.practice-card { background: #f2ece3; border-color: #dfd3c4; }
.practice-symbol svg { width: 42px; height: 42px; }
.project-card .practice-title { font-family: var(--serif); }
.fretwise-card { background: #eaf0e4; border-color: #d2dcc8; }
.afterglow-card { background: #f1eee3; border-color: #ddd7c4; }
.afterglow-symbol svg { width: 42px; height: 42px; }
.project-card .afterglow-title { font-family: var(--serif); }
.fretwise-symbol svg { width: 42px; height: 42px; }
.project-card .fretwise-title { font-family: var(--serif); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 33px; }
.project-symbol { width: 42px; height: 42px; display: grid; place-items: center; }
.dot-symbol { border: 1px solid #d5deca; border-radius: 12px; background: #e3e9d9; }
.dot-symbol i { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #d5deca; }
.writer-symbol svg, .marlow-symbol svg { width: 42px; height: 42px; }
.project-category { color: var(--muted); font-size: 10px; }
.project-card h2 { margin: 9px 0 13px; font-size: 39px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.project-title-link { display: inline-block; min-width: 44px; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; text-decoration: none; }
.project-title-link:hover, .project-title-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.dot-title span { color: var(--green); }
.project-card .writer-title { font-family: var(--serif); font-style: italic; font-weight: 400; }
.project-card .marlow-title { font-family: var(--serif); }
.project-description { max-width: 29ch; color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 640px) {
  .page-shell { width: calc(100% - 40px); }
  .site-header { min-height: 92px; gap: 12px; }
  .identity { gap: 11px; font-size: 12px; }
  .site-address { font-size: 10px; }
  .monogram { font-size: 32px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card { padding: 26px; }
  .card-top { margin-bottom: 25px; }
  .project-description { max-width: none; }
}
@media (forced-colors: active) {
  .dot-symbol i { background: CanvasText; }
  .project-card { border-color: CanvasText; }
}

.matho-card { background: #f5efe2; border-color: #ddd1b9; }
.matho-card .project-symbol svg { width: 42px; height: 42px; }
