:root {
  --bg: #0B0C0E;
  --ivory: #EDE6D6;
  --gold: #C4A35A;
  --red: #B42318;
  --dust: #8A8478;
  --line: rgba(196, 163, 90, 0.35);
  --sans: Arial, Helvetica, "Liberation Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ivory); }
body { font-family: var(--serif); line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden], .slot[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--bg); padding: 10px 14px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

.frame { max-width: 960px; margin: 0 auto; padding: 20px 22px 64px; }

/* Header / nav */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-family: var(--sans); font-weight: 800; letter-spacing: 0.08em; text-decoration: none; color: var(--ivory); font-size: 18px; white-space: nowrap; }
.wordmark sup { font-size: 9px; color: var(--gold); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: block; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dust); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.hero-figure { width: 140px; height: auto; display: block; padding: 0 28px; background: radial-gradient(closest-side, rgba(196,163,90,0.16), rgba(196,163,90,0) 100%); box-sizing: content-box; }
h1 { font-weight: 500; font-size: clamp(36px, 7vw, 64px); line-height: 0.98; margin: 0 0 20px; }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.label { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }

.btn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; border: 1px solid var(--gold); background: transparent; color: var(--ivory); text-decoration: none; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 18px; cursor: pointer; }
.btn:hover { background: rgba(196,163,90,0.12); }
.btn-primary { background: var(--gold); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: #d4b46b; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--dust); margin-left: 8px; }

/* Who is Eddie / email signup (homepage) */
.about { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.about p { margin: 0 0 12px; max-width: 42em; color: #d7d0c0; }
.about p:last-child { margin-bottom: 0; }
.signup { margin: 28px 0 0; padding: 24px; border: 1px solid var(--line); }
.signup-h { font-weight: 500; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; margin: 0 0 16px; }
.signup-note { margin: 8px 0 0; font-family: var(--sans); font-size: 12px; color: var(--dust); }
.signup-sub { margin: -8px 0 16px; font-family: var(--sans); font-size: 12px; color: var(--dust); }
.signup-embed { width: 100%; min-height: 120px; overflow: visible; }
.signup-embed > *, .signup-embed iframe { max-width: 100%; }
.signup-embed iframe { display: block; width: 100%; border: 0; }
.sr { position: absolute; left: -9999px; }

/* Social row */
.follow { padding: 28px 0 8px; }
.socials { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.socials a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); text-decoration: none; transition: background .15s, border-color .15s; }
.socials a:hover { background: rgba(196,163,90,0.10); border-color: var(--gold); }
.socials .net { font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--ivory); }
.socials .handle { font-family: var(--sans); font-size: 12px; color: var(--gold); }
.socials-big { grid-template-columns: 1fr; max-width: 520px; }
.socials-big a { flex-direction: row; justify-content: space-between; align-items: center; min-height: 56px; }
.socials-big .net { font-size: 16px; }
.socials-big .handle { font-size: 14px; }

/* Cards */
.latest { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.card { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 16px 18px; }
.amt { font-family: var(--sans); font-weight: 800; color: var(--red); font-size: 22px; }
.amt.big { font-size: 64px; line-height: 1; margin-bottom: 12px; }
.card p { margin: 0 0 4px; }
.watch { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; white-space: nowrap; }

/* Inner pages */
.page { padding: 48px 0 24px; }
.page .label { margin-top: 36px; }
.lead { color: #d7d0c0; max-width: 42em; }
.index, .linklist { padding-left: 18px; line-height: 1.8; }
.linklist { margin-top: 24px; }
.linklist a { display: inline-block; padding: 6px 0; }

/* CA waste: "On the file" series (newest first) */
.file-series { margin-top: 12px; }
.file-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.file-entry { display: grid; grid-template-columns: 130px 110px 1fr; grid-template-areas: "date amt desc" "date amt src"; column-gap: 16px; row-gap: 4px; align-items: center; border: 1px solid var(--line); padding: 16px 18px; }
.file-entry p { margin: 0; }
.file-date { grid-area: date; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust); }
.file-entry .amt { grid-area: amt; }
.file-desc { grid-area: desc; }
.file-src { grid-area: src; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--dust); }
.file-src .placeholder { color: var(--gold); }

/* Hidden future slots (email signup / merch) */
.slot { margin: 36px 0 0; padding: 24px; border: 1px solid var(--line); }
.slot-email form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.slot-email input[type="email"] { flex: 1 1 240px; min-height: 44px; padding: 10px 12px; background: transparent; border: 1px solid var(--line); color: var(--ivory); font: 16px var(--sans); }
.slot-email label { position: absolute; left: -9999px; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

footer { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--dust); font-family: var(--sans); font-size: 12px; }
.foot-socials { line-height: 2.4; }
.foot-socials a { padding: 8px 2px; }
.fine { font-size: 11px; }

@media (max-width: 820px) {
  .socials { grid-template-columns: repeat(2, 1fr); }
  .socials li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .socials-big { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .frame { padding: 14px 18px 56px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 4px; }
  nav { width: 100%; justify-content: space-between; border-top: 1px solid rgba(196,163,90,0.15); }
  nav a { flex: 1 1 0; justify-content: center; min-height: 48px; font-size: 13px; padding: 0 4px; letter-spacing: 0.1em; }
  nav a:first-child { justify-content: flex-start; }
  nav a:last-child { justify-content: flex-end; }
  .hero { grid-template-columns: 1fr 96px; gap: 14px; padding-top: 32px; }
  .hero-figure { width: 96px; padding: 0; }
  .card { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { min-width: 0; }
  .hero .btn { justify-content: center; text-align: center; }
  .about p, .signup-h, .file-desc, .card p { overflow-wrap: break-word; }
  .signup { padding: 18px; }
  .file-entry { grid-template-columns: 1fr; grid-template-areas: "date" "amt" "desc" "src"; row-gap: 6px; }
}
