/* ============================================================
   CADRE — independent cinema journal
   Modern editorial stylesheet
   ============================================================ */


:root {
  --paper:      #f6f4ef;
  --surface:    #ffffff;
  --ink:        #15140f;
  --ink-soft:   #4a463d;
  --muted:      #847d70;
  --line:       #e6e1d6;
  --line-soft:  #efebe2;
  --accent:     #b22a1b;   /* festival red */
  --accent-dk:  #8d2014;
  --gold:       #b08534;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1120px;
  --read: 720px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,18,12,.04), 0 12px 30px -12px rgba(20,18,12,.16);
  --shadow-sm: 0 1px 2px rgba(20,18,12,.05), 0 6px 16px -10px rgba(20,18,12,.18);

  /* film-grain overlay */
  --grain: 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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { padding-top: 18px; padding-bottom: 16px; text-align: center; }
.site-title {
  font-family: var(--serif);
  font-weight: 900;
  font-optical-sizing: auto;
  letter-spacing: 0.34em;
  font-size: 32px;
  line-height: 1;
  margin: 0;
  text-indent: 0.34em;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--ink); }
.site-tagline {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}
.nav {
  margin-top: 15px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav a {
  color: var(--ink-soft);
  margin: 0 13px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Cover art (the "images") ---------- */
.cover {
  position: relative;
  overflow: hidden;
  background: #222;
  isolation: isolate;
}
.cover::before {            /* light beam / vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,.55), transparent 60%);
  z-index: 2;
}
.cover::after {             /* film grain + sprocket strip */
  content: ""; position: absolute; inset: 0;
  background: var(--grain);
  background-size: 180px 180px;
  opacity: .14; z-index: 3; mix-blend-mode: overlay;
}
.cover__cat {
  position: absolute; left: 16px; top: 14px; z-index: 4;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.cover__mark {             /* big faded C watermark for texture */
  position: absolute; right: -6px; bottom: -34px; z-index: 1;
  font-family: var(--serif); font-weight: 900; font-size: 200px;
  line-height: 1; color: rgba(255,255,255,.10);
  user-select: none; pointer-events: none;
}
/* sprocket holes top & bottom */
.cover .strip {
  position: absolute; left: 0; right: 0; height: 12px; z-index: 4;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px,
      rgba(0,0,0,.45) 9px 15px, transparent 15px 24px);
}
.cover .strip.top { top: 0; }
.cover .strip.bot { bottom: 0; }

/* palette per rubric */
.cover--festival { background: linear-gradient(135deg, #7a1810 0%, #c0392b 48%, #e8843b 100%); }
.cover--world    { background: linear-gradient(135deg, #11303a 0%, #1f6f7a 50%, #2bb1a8 100%); }
.cover--craft    { background: linear-gradient(135deg, #1b1f2b 0%, #38415c 55%, #5b6b8c 100%); }
.cover--auteurs  { background: linear-gradient(135deg, #2c1230 0%, #6d2160 52%, #b8447f 100%); }
.cover--dispatch { background: linear-gradient(135deg, #2a1c0c 0%, #7a4a16 52%, #d49a3c 100%); }
.cover--default  { background: linear-gradient(135deg, #14141c 0%, #2c2c44 55%, #4a4a6e 100%); }

/* ---------- Hero / lead story ---------- */
.lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 38px;
  align-items: center;
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}
.lead__cover {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lead__cover .cover__mark { font-size: 260px; }
.lead .eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.lead h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.04;
  letter-spacing: -.01em; margin: 0 0 16px;
}
.lead h2 a { color: var(--ink); }
.lead h2 a:hover { color: var(--accent); }
.lead p { margin: 0 0 18px; color: var(--ink-soft); font-size: 19px; }
.lead .readmore {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 46px 0 26px;
}
.section-head h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  margin: 0;
}
.section-head .more {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.kicker {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .18em; font-size: 11px; font-weight: 600;
  color: var(--accent); margin-bottom: 26px;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
  padding-bottom: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__cover { aspect-ratio: 16/10; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card .meta {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 9px;
}
.card h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px; line-height: 1.18; letter-spacing: -.005em;
  margin: 0 0 9px;
}
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

.feed { padding-bottom: 30px; }

/* ---------- Article page ---------- */
.article { padding-bottom: 70px; }
.article-hero {
  aspect-ratio: 21/9;
  max-height: 460px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex; align-items: flex-end;
}
.article-hero .cover__mark { font-size: 340px; }
.article-hero .inner {
  position: relative; z-index: 5;
  max-width: var(--read); margin: 0 auto; width: 100%;
  padding: 0 28px 38px; color: #fff;
}
.article-hero .meta {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 14px;
}
.article-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.03;
  letter-spacing: -.015em; margin: 0;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.article-body { max-width: var(--read); margin: 0 auto; padding: 40px 28px 0; }
.article-body .lede {
  font-family: var(--serif); font-size: 23px; line-height: 1.45;
  font-weight: 400; font-style: italic; color: var(--ink-soft);
  margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.article-body p { margin: 0 0 22px; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 700;
  font-size: 4.1em; line-height: .82; float: left;
  padding: 6px 12px 0 0; color: var(--accent);
}
.article-body h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px; line-height: 1.2; letter-spacing: -.01em;
  margin: 40px 0 14px;
}
.article-body blockquote {
  margin: 32px 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 22px;
  line-height: 1.4; color: var(--ink);
}
.byline {
  border-top: 1px solid var(--line); margin-top: 42px; padding-top: 22px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.byline em { color: var(--muted); }
.back {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- About / standards / contact ---------- */
.page { max-width: var(--read); margin: 0 auto; padding: 50px 28px 70px; }
.page h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px,4.4vw,44px); line-height: 1.05;
  letter-spacing: -.015em; margin: 0 0 22px;
}
.page h2 {
  font-family: var(--serif); font-weight: 600; font-size: 25px;
  margin: 34px 0 12px;
}
.page p { margin: 0 0 18px; color: var(--ink-soft); }
.masthead {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px; margin: 28px 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
}
.masthead dt {
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 16px;
}
.masthead dt:first-child { margin-top: 0; }
.masthead dd { margin: 3px 0 0; font-size: 15.5px; color: var(--ink); }

/* list pages (archive / related) */
.list-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.list-row .d {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.list-row h2 {
  font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0; line-height: 1.2;
}
.list-row h2 a { color: var(--ink); }
.list-row h2 a:hover { color: var(--accent); }
.list-row .r {
  display:block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.year-head {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 6px;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink); color: #cfc9bd;
  margin-top: 60px; padding: 48px 0 40px;
  font-family: var(--sans);
}
.site-foot .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-foot .brand {
  font-family: var(--serif); font-weight: 900; letter-spacing: .3em;
  font-size: 22px; color: #fff; text-indent: .3em;
}
.site-foot .brand + p { font-size: 14px; color: #9c958a; margin: 12px 0 0; max-width: 36ch; line-height: 1.5; }
.site-foot h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin: 0 0 12px;
}
.site-foot a { color: #cfc9bd; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; font-size: 14px; }
.site-foot .legal {
  padding-top: 22px; font-size: 12.5px; color: #8a8378;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lead { grid-template-columns: 1fr; gap: 26px; }
  .lead__cover { order: -1; aspect-ratio: 16/9; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .site-title { font-size: 25px; letter-spacing: .26em; text-indent: .26em; }
  .nav a { margin: 0 8px; font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .article-hero { aspect-ratio: 3/2; }
  .article-body > p:first-of-type::first-letter { font-size: 3.4em; }
  .site-foot .cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   Polish layer: depth, motion, newsletter
   ============================================================ */

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* richer cover art: soft film sheen + deeper vignette */
.cover::before {
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.14) 50%, transparent 66%),
    radial-gradient(120% 80% at 78% 12%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(90% 70% at 12% 88%, rgba(0,0,0,.36), transparent 60%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,.55), transparent 62%);
}
.card__cover, .lead__cover { transition: filter .25s ease; }
.card:hover .card__cover, .lead__cover:hover { filter: saturate(1.15) brightness(1.04); }

/* gentle entrance motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.lead { animation: rise .5s ease both; }
.grid .card { animation: rise .55s ease both; }
.grid .card:nth-child(2) { animation-delay: .06s; }
.grid .card:nth-child(3) { animation-delay: .12s; }
.grid .card:nth-child(4) { animation-delay: .18s; }
.grid .card:nth-child(5) { animation-delay: .24s; }
.grid .card:nth-child(6) { animation-delay: .30s; }
.article-hero, .article-body { animation: rise .5s ease both; }
.article-body { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  .lead, .grid .card, .article-hero, .article-body { animation: none; }
  .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* animated underline for body links */
.article-body a, .page a:not(.back) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .2s ease;
  padding-bottom: 1px;
}
.article-body a:hover, .page a:not(.back):hover { background-size: 100% 1.5px; }

/* newsletter band */
.newsletter {
  margin: 56px 0 8px;
  background: var(--ink);
  color: #f2efe8;
  border-radius: var(--radius);
  padding: 44px 46px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.newsletter::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(178,42,27,.55), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(176,133,52,.25), transparent 55%);
}
.newsletter h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.1;
  letter-spacing: -.01em; margin: 0 0 10px; color: #fff;
}
.newsletter p {
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  color: #c9c2b4; margin: 0;
}
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.newsletter input[type="email"]::placeholder { color: #9b948a; }
.newsletter button {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .03em;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.newsletter button:hover { background: var(--accent-dk); transform: translateY(-1px); }
.newsletter .fine {
  font-size: 12px; color: #8f887c; margin-top: 10px;
}
@media (max-width: 760px) {
  .newsletter { grid-template-columns: 1fr; padding: 32px 26px; gap: 20px; }
  .newsletter form { flex-direction: column; }
}

/* follow row in footer */
.follow {
  display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap;
}
.follow a {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: #cfc9bd;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color .15s, color .15s;
}
.follow a:hover { color: #fff; border-color: #fff; }
