/* A · Darkroom, light — dark frame (header, lead photo, subscribe, footer) around a light page */
:root {
  --paper: #f4f2ee; --paper-2: #eae7e1; --ink: #161615; --muted: #6f6b63; --rule: #dcd8d0; --accent: #a8792f;
  --frame: #111110; --frame-ink: #ecebe6; --frame-muted: #9a968d; --brass: #d6b37a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #161615; --paper-2: #1e1e1c; --ink: #ecebe6; --muted: #9a968d; --rule: #2c2b28; --accent: #d6b37a; }
}
:root[data-theme="dark"] { --paper: #161615; --paper-2: #1e1e1c; --ink: #ecebe6; --muted: #9a968d; --rule: #2c2b28; --accent: #d6b37a; }

.theme-a { font-family: var(--sans); font-size: 17px; line-height: 1.75; }
.theme-a h1, .theme-a h2, .theme-a h3, .theme-a .card h3, .theme-a .page-title, .theme-a .pager strong {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em;
}

/* dark frame: header */
.theme-a .site-header { position: sticky; top: 0; z-index: 10; background: rgba(17,17,16,.94); backdrop-filter: blur(10px); border-bottom: 0; color: var(--frame-ink); }
.theme-a .brand { font: 600 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--frame-ink); }
.theme-a .brand span { color: var(--brass); letter-spacing: .28em; }
.theme-a .nav { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.theme-a .nav a { color: var(--frame-muted); }
.theme-a .nav a:hover, .theme-a .nav a[aria-current] { color: var(--frame-ink); }
.theme-a .nav .sub { color: var(--brass); }

/* lead photo, edge to edge with the title on it */
.a-hero { position: relative; display: block; text-decoration: none; color: #fff; background: var(--frame); }
.a-hero img { width: 100%; height: min(84vh, 880px); object-fit: cover; }
.a-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.a-hero-text { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); z-index: 1; }
.a-hero h1 { font-size: clamp(32px, 5.4vw, 68px); line-height: 1.02; margin: 10px 0 12px; max-width: 16ch; color: #fff; }
.a-hero p { max-width: 60ch; color: #dedbd4; margin: 0; font-size: 17px; }
.a-hero .kicker { color: var(--brass); }
.a-hero:hover h1 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* light page */
.theme-a main > .wrap { padding-top: 64px; }
.theme-a .section-head { border-top: 2px solid var(--ink); }
.theme-a .section-head h2 { font-size: 12px; letter-spacing: .2em; }
.a-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.theme-a .card h3 { font-size: 24px; }
.theme-a .card p { font-family: var(--sans); font-size: 15px; }
.theme-a .post-head h1 { font-size: clamp(34px, 5vw, 58px); }
.theme-a .prose { font-size: 18px; }
.theme-a .chips a[aria-current] { background: var(--frame); border-color: var(--frame); color: var(--frame-ink); }

/* dark frame: subscribe and footer */
.theme-a .subscribe { background: var(--frame); color: var(--frame-ink); }
.theme-a .subscribe h2 { font-family: var(--sans); font-weight: 600; }
.theme-a .subscribe input { background: #1c1c1a; border-color: #34332f; color: var(--frame-ink); }
.theme-a .subscribe button { background: var(--brass); color: #111; }
.theme-a .subscribe button:hover { background: #e6c793; }
.theme-a .site-footer { background: var(--frame); color: var(--frame-muted); border-top: 1px solid #2a2926; }
.theme-a .site-footer a { color: var(--frame-muted); }


@media (max-width: 700px) {
  .a-grid { grid-template-columns: 1fr; }
  .a-hero img { height: 72vh; }
  .a-hero::after { inset: 20% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88) 70%); }
  .a-hero p { display: none; }
  .a-hero h1 { font-size: 32px; }
  .theme-a .brand { font-size: 11px; letter-spacing: .18em; }
  .theme-a .nav { gap: 14px; font-size: 11px; letter-spacing: .04em; }
}
