/* ===================================================
   LERSIRE — Editorial Anime Magazine
   Design tokens
=================================================== */
:root {
  --paper: #F7F4EC;
  --paper-dim: #EFEAE0;
  --ink: #1A1714;
  --ink-soft: #2E2A25;
  --stamp: #B33A3A;
  --stamp-dark: #8F2C2C;
  --pine: #2C4A3E;
  --stone: #8A8475;
  --stone-light: #C7C1B3;
  --line: rgba(26, 23, 20, 0.12);

  --serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

/* ---------------------------------------------------
   Utility text styles
--------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
}

.eyebrow.pine { color: var(--pine); }
.eyebrow.stone { color: var(--stone); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.meta {
  font-size: 12.5px;
  color: var(--stone);
  font-weight: 500;
}

.meta .dot { margin: 0 6px; opacity: 0.6; }

/* ---------------------------------------------------
   Topbar (ad-friendly thin strip, optional)
--------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--paper-dim);
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------
   Masthead
--------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  display: none;
}

@media (min-width: 720px) {
  .brand-sub {
    display: block;
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-left: 1px solid var(--line);
    padding-left: 12px;
    margin-left: 4px;
  }
}

nav.main-nav {
  display: none;
  gap: 28px;
}

@media (min-width: 860px) {
  nav.main-nav { display: flex; }
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a:hover { color: var(--stamp); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}

@media (min-width: 860px) {
  .mobile-nav { display: none !important; }
}

/* ---------------------------------------------------
   Hero / Lead story
--------------------------------------------------- */
.lead {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.lead-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .lead-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

.lead-image {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}

.lead-image img { width: 100%; height: 100%; object-fit: cover; }

.lead h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 14px 0 18px;
}

.lead .dek {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 20px;
}

.stamp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
}

.stamp-tag svg { width: 14px; height: 14px; }

/* ---------------------------------------------------
   Section headers
--------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 0 24px;
}

.section-head h2 {
  font-size: 26px;
}

.section-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--stamp);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------
   Article cards / grid
--------------------------------------------------- */
.grid-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
}

.card-image {
  aspect-ratio: 16/10;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-dim);
  margin-bottom: 14px;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.card:hover .card-image img { transform: scale(1.04); }

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card .excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* ---------------------------------------------------
   Editor's picks rail
--------------------------------------------------- */
.picks {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  margin-top: 56px;
}

.picks .section-head h2,
.picks .section-head a { color: var(--paper); }
.picks .eyebrow { color: var(--stamp); }

.pick-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .pick-list { grid-template-columns: repeat(3, 1fr); }
}

.pick-item {
  border-top: 1px solid rgba(247,244,236,0.18);
  padding-top: 16px;
}

.pick-rank {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stamp);
  font-weight: 700;
}

.pick-item h4 {
  color: var(--paper);
  font-size: 18px;
  margin: 8px 0 6px;
}

.pick-item p {
  color: var(--stone-light);
  font-size: 13.5px;
}

/* ---------------------------------------------------
   Ad slots — clearly labeled, AdSense policy-safe
--------------------------------------------------- */
.ad-slot {
  margin: 48px 0;
  padding: 18px;
  border: 1px dashed var(--stone-light);
  border-radius: 4px;
  text-align: center;
  background: var(--paper-dim);
}

.ad-slot .ad-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------------------------------------------------
   Newsletter / signup strip
--------------------------------------------------- */
.signup {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 56px;
}

.signup-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.signup h3 { font-size: 22px; max-width: 28ch; }
.signup p { color: var(--stone); font-size: 14px; margin: 6px 0 0; }

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup-form input {
  font-family: var(--sans);
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-size: 14px;
  min-width: 220px;
  background: var(--paper);
  color: var(--ink);
}

.signup-form input:focus {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--stamp);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--stamp-dark); }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand .brand-name { color: var(--paper); }

.footer-brand p {
  font-size: 13.5px;
  color: var(--stone-light);
  max-width: 32ch;
  margin-top: 12px;
}

footer h5 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}

footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

footer a { font-size: 14px; color: var(--paper-dim); }
footer a:hover { color: var(--stamp); }

.footer-bottom {
  border-top: 1px solid rgba(247,244,236,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--stone);
}

/* ---------------------------------------------------
   Inner page (article / static page) layout
--------------------------------------------------- */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 12px;
}

.article-body {
  max-width: 700px;
  margin: 40px auto;
  font-size: 17px;
}

.article-body h2 {
  font-size: 24px;
  margin: 36px 0 14px;
}

.article-body p { margin-bottom: 1.2em; color: var(--ink-soft); }

.article-body img {
  border-radius: 4px;
  margin: 24px 0;
}

.static-body {
  max-width: 760px;
  margin: 40px auto;
}

.static-body h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.static-body p, .static-body li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.static-body ul { padding-left: 20px; }

/* breadcrumb */
.crumb {
  font-size: 12.5px;
  color: var(--stone);
}
.crumb a { color: var(--stone); font-weight: 600; }
.crumb a:hover { color: var(--stamp); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
