/* =========================================================
   anoren.me — shared stylesheet
   Editorial / paper aesthetic. Fraunces + Space Mono + Inter.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --paper:    #F3EFE6;
  --paper-2:  #ECE6D8;
  --ink:      #17130E;
  --ink-soft: #4C463B;
  --accent:   #E2552B;   /* persimmon */
  --accent-2: #5E6A4C;   /* sage      */
  --line:     rgba(23,19,14,0.14);
  --line-2:   rgba(23,19,14,0.30);

  --display: 'Fraunces', Georgia, serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --body:    'Inter', system-ui, sans-serif;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(var(--paper) 60%, rgba(243,239,230,0));
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.wordmark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(.4,0,.1,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 48px var(--pad);
  margin: 80px auto 0;
  max-width: var(--maxw);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Reusable bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

/* entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   HOME
   ========================================================= */
.hero {
  padding: clamp(40px, 9vw, 110px) 0 clamp(30px, 6vw, 70px);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  font-size: clamp(4.2rem, 19vw, 15rem);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero .lede {
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}
.hero .lede b { color: var(--ink); font-weight: 600; }

/* socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}
.social svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.social .handle { color: var(--ink-soft); transition: color 0.22s; }
.social:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.social:hover .handle { color: var(--paper); }

/* contents index */
.contents {
  margin-top: clamp(56px, 9vw, 100px);
  border-top: 1px solid var(--line);
}
.contents .index-row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(20px, 3.5vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s cubic-bezier(.3,.7,.2,1), color 0.25s;
}
.contents .index-row:hover { padding-left: 14px; color: var(--accent); }
.contents .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  width: 3ch;
}
.contents .title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  flex: 1;
}
.contents .meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.contents .arrow { font-size: 1.4rem; transition: transform 0.3s; }
.contents .index-row:hover .arrow { transform: translate(6px,-6px); }

/* =========================================================
   PAGE HEADER (subpages)
   ========================================================= */
.page-head {
  padding: clamp(36px, 7vw, 80px) 0 clamp(24px, 4vw, 44px);
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(3rem, 11vw, 8rem);
}
.page-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.page-head .sub {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   COOKING — carousel
   ========================================================= */
.carousel { position: relative; margin-top: 12px; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 78vh;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.stage .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.stage .slide.active { opacity: 1; pointer-events: auto; }
.stage .slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #100d0a;
}
.stage .frame-label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  background: rgba(20,16,12,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 100px;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(243,239,230,0.6);
  background: rgba(20,16,12,0.4);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.car-btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.06); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }

.car-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.car-counter {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.car-counter b { color: var(--accent); }
.car-toggle {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.car-toggle:hover { background: var(--ink); color: var(--paper); }

.progress {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}

/* thumbnails */
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.thumbs button {
  flex: none;
  width: 76px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--paper-2);
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button:hover { opacity: 0.85; transform: translateY(-2px); }
.thumbs button.active { opacity: 1; border-color: var(--accent); }

/* =========================================================
   MUSIC
   ========================================================= */
.note-card {
  margin-top: 8px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}
.note-card .quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.note-card .quote .mk { color: var(--accent); }

.tracks {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  gap: 28px;
}
.track {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.track:last-child { border-bottom: none; }
.track .embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.track .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.track .meta-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.track h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 8px 0 12px;
}
.track .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.track .listen {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.track .listen:hover { color: var(--accent); }

.log {
  margin-top: clamp(48px, 7vw, 80px);
}
.log h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.log .log-sub { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 24px; }
.log-list { display: flex; flex-direction: column; }
.log-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.log-row .date { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); width: 5ch; flex: none; }
.log-row .what { font-size: 0.98rem; color: var(--ink-soft); }

/* =========================================================
   POKER — coming soon
   ========================================================= */
.coming {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 56vh;
  gap: 26px;
}
.suits {
  display: flex;
  gap: 16px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}
.suits span { line-height: 1; animation: float 3.6s ease-in-out infinite; }
.suits .red { color: var(--accent); }
.suits span:nth-child(2) { animation-delay: 0.4s; }
.suits span:nth-child(3) { animation-delay: 0.8s; }
.suits span:nth-child(4) { animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-4deg); } }
.coming .soon {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.coming .soon em { font-style: italic; font-weight: 400; color: var(--accent); }
.coming p {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.coming .chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 8px 18px;
  color: var(--ink-soft);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px) {
  .track { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .footer { justify-content: flex-start; }
  .car-btn { width: 42px; height: 42px; }
}

/* =========================================================
   POKER — earnings hero + results ledger
   ========================================================= */
.poker-hero {
  margin-top: 8px;
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.suit-row {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  margin-bottom: clamp(16px, 3vw, 26px);
}
.suit-row span { line-height: 1; animation: float 4s ease-in-out infinite; }
.suit-row span:nth-child(2) { animation-delay: .3s; }
.suit-row span:nth-child(3) { animation-delay: .6s; }
.suit-row span:nth-child(4) { animation-delay: .9s; }
.suit-row .red { color: var(--accent); }

.eh-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.eh-figure {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4rem, 16vw, 11rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 12px 0 4px;
}
.eh-figure .cur { font-style: italic; font-weight: 400; color: var(--accent); }
.eh-substats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 4vw, 40px);
  margin-top: clamp(20px, 3vw, 30px);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.eh-substats span { display: inline-flex; align-items: baseline; gap: 8px; }
.eh-substats b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* results ledger */
.ledger { margin-top: clamp(40px, 6vw, 64px); }
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.result {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "suit body stats";
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(22px, 3vw, 32px) 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s, padding-left 0.28s cubic-bezier(.3,.7,.2,1);
}
.result:hover { background: var(--paper-2); padding-left: 20px; }
.r-suit {
  grid-area: suit;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  width: 1.3em;
  text-align: center;
  color: var(--ink);
  transition: transform 0.3s;
}
.r-suit.red { color: var(--accent); }
.result:hover .r-suit { transform: rotate(-12deg) scale(1.12); }
.r-body { grid-area: body; min-width: 0; }
.r-event {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.r-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 9px;
}
.r-stats {
  grid-area: stats;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 40px);
}
.r-place {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  white-space: nowrap;
  text-align: right;
}
.r-place sup { font-size: 0.55em; }
.r-entries { font-size: 0.6em; color: var(--ink-soft); font-weight: 400; }
.r-prize {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  white-space: nowrap;
  text-align: right;
  min-width: 4.5ch;
}
.result.best { background: rgba(226,85,43,0.07); }
.result.best::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.result.best .r-prize { color: var(--accent); }
.best-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--accent);
  border-radius: 100px;
  padding: 3px 9px;
  margin-left: 10px;
  vertical-align: middle;
}
.source-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 26px;
}

@media (max-width: 720px) {
  .result {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "suit body"
      "suit stats";
    row-gap: 14px;
    column-gap: 18px;
  }
  .result:hover { padding-left: 10px; }
  .r-stats { justify-content: flex-start; gap: 28px; }
}

/* =========================================================
   MUSIC — carousel overrides + slide types
   ========================================================= */
.music-carousel .stage {
  aspect-ratio: unset;
  min-height: 460px;
  max-height: min(660px, 82vh);
}
.music-carousel .stage .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px clamp(14px, 4vw, 48px);
  box-sizing: border-box;
}
.sl-embed-wrap {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.sl-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.sl-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.slide-note { gap: 16px; text-align: center; }
.sn-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.sn-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  line-height: 1.25;
  max-width: 640px;
}
.slide-heading { text-align: center; }
.sh-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.sh-text em { font-style: italic; font-weight: 400; color: var(--accent); }

/* Music text thumbnails */
.music-thumbs button {
  width: 130px;
  height: 60px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
.th-src {
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1;
  flex-shrink: 0;
}
.th-note { opacity: 0.7; }
.th-head { color: var(--accent-2); }
.th-ttl {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
