/* Aaron Rossi — single stylesheet, no build step.
   The old theme's gold (#a6752e) is too dark on black for text: --gold is a lighter shade of it. */

/* Self-hosted variable font (OFL, licence in /fonts): same look on every device, no request to Google. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0f10;
  --surface: #19191c;
  --surface-2: #232327;
  --line: #2f2f34;
  --text: #e9e6e0;
  --muted: #aaa59c;
  --gold: #d6aa60;
  --gold-deep: #a6752e;
  --radius: 14px;
  --page: 60rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: #fff; line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.narrow { max-width: 42rem; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--gold); color: #000; padding: 0.75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #000; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1.05rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); background: var(--surface); }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(2.5rem, 8vw, 5rem) 0; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 44rem) { .hero .wrap { grid-template-columns: 17rem 1fr; } }
.hero img { width: min(17rem, 70vw); aspect-ratio: 400 / 423; border-radius: var(--radius); margin-inline: auto; filter: grayscale(1) contrast(1.05); }
.hero h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.3rem; }
.hero .role { font-size: 1.2rem; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.hero .tagline { color: var(--muted); letter-spacing: 0.08em; }
.hero .alias { color: var(--muted); margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); max-width: 28rem; }

/* ---------- cards (home) ---------- */
.works { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 8vw, 5rem); }
@media (min-width: 44rem) { .works { grid-template-columns: 1fr 1fr; } }
.work {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.work:hover { transform: translateY(-2px); border-color: var(--gold-deep); color: var(--text); }
.work img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.work .date { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.work h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.work .more { margin-top: auto; color: var(--gold); font-weight: 700; }

/* ---------- article pages ---------- */
.article { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.article-head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 40rem) { .article-head { grid-template-columns: 10rem 1fr; } }
.article-head img { width: 10rem; aspect-ratio: 1; border-radius: var(--radius); }
.article-head h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.7rem); margin-bottom: 0.3rem; }
.article-head .date { color: var(--muted); margin: 0; }

.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; border-radius: 14px; background: rgba(0, 0, 0, 0.72);
  display: grid; place-items: center; transition: background 0.2s;
}
.yt:hover .play, .yt:focus-visible .play { background: #e00; }
.yt .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { color: var(--muted); font-size: 0.9rem; margin-top: -1.8rem; margin-bottom: 2.5rem; }

.stores { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 36rem) { .stores { grid-template-columns: repeat(4, 1fr); } }
.stores a {
  display: grid; place-items: center; min-height: 72px; padding: 0.9rem; border-radius: 10px;
  background: #fff; border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s;
}
.stores a:hover { border-color: var(--gold); transform: translateY(-1px); }
.stores img { max-height: 40px; width: auto; max-width: 100%; }

.author { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.author strong { color: var(--gold); display: block; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 0.6rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.site-footer a:hover { color: var(--gold); }
