/* ══════════════════════════════════════════════
   TAKYO NOVINY — blog stylesheet
   Derived from landing-page/index.html design system.
   Used by blog/index.html and every blog/<slug>.html
   ══════════════════════════════════════════════ */

@font-face {
  font-family: 'PiePie';
  src: url('../assets/fonts/piepie/PiePie.woff2') format('woff2'),
       url('../assets/fonts/piepie/PiePie.woff') format('woff'),
       url('../assets/fonts/piepie/PiePie.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #C9FA3F;
  --lime-deep: #B8E834;
  --pink: #FF1FA8;
  --orange: #FF5A1F;
  --blue: #0c1af8;
  --ink: #0A0A0A;
  --paper: #FBFAF5;
  --paper-dim: #EFEDE3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* photocopy grain over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--lime); color: var(--ink); }

/* ── TOP BAR ── */
.topbar {
  background: var(--ink);
  color: var(--lime);
  padding: 14px 56px;
  display: flex; align-items: baseline; gap: 20px;
  font-size: 14px;
}
.topbar .takyo-mark {
  font-family: 'PiePie', sans-serif;
  font-size: 26px;
  color: var(--lime);
  text-decoration: none;
  line-height: 1;
}
.topbar .crumb { color: var(--paper-dim); opacity: 0.75; }
.topbar .spacer { flex: 1; }
.topbar a.bar-link {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.topbar a.bar-link:hover { color: var(--pink); }

/* ── MASTHEAD (index) ── */
.masthead {
  padding: 52px 56px 36px;
  text-align: center;
  position: relative;
}
.masthead .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.masthead h1 {
  font-family: 'PiePie', 'Impact', sans-serif;
  font-size: clamp(58px, 10vw, 148px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.masthead h1 .stroke { color: var(--pink); }
.masthead .claim {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 16px 7px;
  margin-top: 20px;
  font-size: 16px;
  transform: rotate(-1.5deg);
}
.dateline {
  margin-top: 30px;
  padding: 10px 0;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 8px 26px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dateline .heart { color: var(--pink); }

/* ── FEATURED ARTICLE (index) ── */
.featured-wrap { padding: 44px 56px 8px; }
.featured {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--lime);
  background-color: var(--blue);
  padding: 44px 48px 48px;
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--pink);
  transform: rotate(-0.4deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.featured:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--pink);
}
.featured .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: right top;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 25%, transparent 60%);
          mask-image: linear-gradient(to left, #000 0%, #000 25%, transparent 60%);
  pointer-events: none;
}
.featured .inner { position: relative; z-index: 2; max-width: 720px; }
.featured .stamp {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  font-family: 'PiePie', sans-serif;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  padding: 6px 14px;
  transform: rotate(6deg);
  border: 2px solid var(--ink);
}
.featured .cat { color: #f3ffad; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.featured h2 {
  font-family: 'PiePie', sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--lime);
}
.featured p { margin-top: 18px; color: #f3ffad; font-size: 16px; max-width: 560px; }
.featured .read {
  display: inline-block;
  margin-top: 26px;
  background: var(--pink);
  color: var(--ink);
  font-family: 'PiePie', sans-serif;
  font-size: 20px;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ── CLIPPINGS GRID (index) ── */
.clippings {
  padding: 40px 56px 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 40px;
}
.clip {
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 34px 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.clip:nth-child(4n+1) { transform: rotate(-1deg);  box-shadow: 7px 7px 0 var(--lime); }
.clip:nth-child(4n+2) { transform: rotate(0.8deg); box-shadow: 7px 7px 0 var(--pink); }
.clip:nth-child(4n+3) { transform: rotate(0.6deg); box-shadow: 7px 7px 0 var(--orange); }
.clip:nth-child(4n+4) { transform: rotate(-0.7deg); box-shadow: 7px 7px 0 var(--blue); }
.clip:hover { transform: rotate(0deg) translate(-2px, -2px); }
.clip:nth-child(4n+1):hover { box-shadow: 11px 11px 0 var(--lime); }
.clip:nth-child(4n+2):hover { box-shadow: 11px 11px 0 var(--pink); }
.clip:nth-child(4n+3):hover { box-shadow: 11px 11px 0 var(--orange); }
.clip:nth-child(4n+4):hover { box-shadow: 11px 11px 0 var(--blue); }

/* tape strip */
.clip::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 110px; height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(239, 237, 227, 0.9);
  border-left: 1px dashed rgba(10,10,10,0.25);
  border-right: 1px dashed rgba(10,10,10,0.25);
  box-shadow: 0 1px 2px rgba(10,10,10,0.12);
}
.clip:nth-child(even)::before { transform: translateX(-50%) rotate(2.5deg); }

.clip .cat {
  align-self: flex-start;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  transform: rotate(-1.5deg);
}
.clip h2, .clip h3 {
  font-family: 'PiePie', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 0.98;
  text-transform: uppercase;
  margin-top: 16px;
}
.clip p { margin-top: 14px; font-size: 15px; line-height: 1.55; flex: 1; }
.clip .meta {
  margin-top: 20px;
  display: flex; align-items: baseline; gap: 14px;
  font-size: 13px;
  border-top: 1.5px dashed rgba(10,10,10,0.35);
  padding-top: 12px;
}
.clip .meta .read {
  margin-left: auto;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2.5px;
  white-space: nowrap;
}
.clip:hover .meta .read { color: var(--pink); }

/* ── ARTICLE PAGE ── */
.article-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}
.article-head .cat-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-head .cat {
  background: var(--ink);
  color: var(--lime);
  padding: 4px 12px;
  transform: rotate(-1.5deg);
  letter-spacing: 0.14em;
}
.article-head h1 {
  font-family: 'PiePie', 'Impact', sans-serif;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-top: 24px;
}
.article-head .perex {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.6;
}
.article-head .rule {
  margin-top: 34px;
  border: 0;
  border-top: 2.5px solid var(--ink);
  position: relative;
}
.article-head .rule::after {
  content: "✂";
  position: absolute;
  right: 24px; top: -13px;
  background: var(--paper);
  padding: 0 8px;
  font-size: 16px;
  font-family: sans-serif;
}

article.body {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 24px 72px;
}
article.body > p { margin-top: 22px; }
article.body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2.5px;
}
article.body a:hover { color: var(--pink); }
article.body strong { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 94%, transparent 94%); }

article.body h2 {
  font-family: 'PiePie', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: 64px;
  position: relative;
  padding-bottom: 14px;
}
article.body h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 88px; height: 7px;
  background: var(--pink);
  transform: rotate(-1deg);
}
article.body h2 + p { margin-top: 24px; }

article.body > h3 {
  font-family: 'PiePie', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 44px;
  position: relative;
  padding-bottom: 10px;
}
article.body > h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 5px;
  background: var(--lime);
  transform: rotate(-1deg);
}
article.body > h3 + p { margin-top: 16px; }

article.body ul, article.body ol { margin: 18px 0 0 4px; list-style: none; }
article.body li { margin-top: 10px; padding-left: 34px; position: relative; }
article.body ul li::before {
  content: "→";
  position: absolute; left: 4px;
  color: var(--pink);
  font-family: sans-serif;
  font-weight: 700;
}
article.body ol { counter-reset: krok; }
article.body ol li { counter-increment: krok; }
article.body ol li::before {
  content: counter(krok);
  position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

/* ── MISE CARD (playable mission) ── */
.mise {
  position: relative;
  margin-top: 48px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  padding: 30px 28px 28px;
  box-shadow: 8px 8px 0 var(--lime);
}
.mise:nth-of-type(even) { box-shadow: 8px 8px 0 var(--orange); }
.mise::before {
  content: "MISE";
  position: absolute;
  top: -16px; right: 18px;
  font-family: 'PiePie', sans-serif;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  transform: rotate(3deg);
}
.mise h3 {
  font-family: 'PiePie', sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1;
  text-transform: uppercase;
}
.mise p { margin-top: 16px; }
.mise .label {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-top: 22px;
  transform: rotate(-1deg);
}
.mise .label + p, .mise .label + ol, .mise .label + ul { margin-top: 12px; }

/* ── CTA BOX (mid-article + index) ── */
.cta-box {
  position: relative;
  margin: 56px 0 8px;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255,255,255,0.45) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 36px 32px;
  text-align: center;
  transform: rotate(-0.4deg);
}
.cta-box .big {
  font-family: 'PiePie', sans-serif;
  color: var(--lime);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
}
.cta-box p.small { color: #f3ffad; font-size: 15px; margin-top: 14px; }
.cta-box .btn {
  display: inline-block;
  margin-top: 22px;
  background: var(--pink);
  color: var(--ink);
  font-family: 'PiePie', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 2.5px solid var(--lime);
  box-shadow: 5px 5px 0 var(--lime);
  transition: transform 0.08s ease;
}
.cta-box .btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--lime); }
.index-cta-wrap { padding: 8px 56px 72px; }
.index-cta-wrap .cta-box { margin: 0; }

/* ── FAQ ── */
.faq { margin-top: 26px; border-top: 2.5px solid var(--ink); }
.faq details { border-bottom: 2.5px solid var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 4px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: 'PiePie', sans-serif;
  font-size: 26px;
  color: var(--pink);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 20px; }

/* ── BYLINE ── */
.byline {
  margin-top: 56px;
  display: flex; align-items: center; gap: 18px;
  border: 2px dashed rgba(10,10,10,0.4);
  padding: 18px 20px;
  transform: rotate(-0.5deg);
  font-size: 14px;
}
.byline img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.05);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

/* ── MORE ARTICLES (article page) ── */
.more {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.more .more-tag {
  display: inline-block;
  font-family: 'PiePie', sans-serif;
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
  padding: 8px 18px;
  transform: rotate(-1deg);
  margin-bottom: 30px;
}
.more .clippings { padding: 0; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }

/* ── FOOTER (identical to landing) ── */
.bar {
  background: var(--ink);
  color: var(--lime);
  padding: 18px 56px;
  display: flex; align-items: baseline; gap: 20px;
  font-size: 14px;
}
.bar .takyo-mark { font-family: 'PiePie', sans-serif; font-size: 28px; color: var(--lime); text-decoration: none; }
.bar .tag { color: var(--lime); flex: 1; }
.bar .bar-link {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.bar .bar-link:hover { color: var(--pink); }
.bar .socials { display: inline-flex; gap: 14px; color: var(--lime); align-items: center; transform: translateY(3px); }
.bar .socials a { color: var(--lime); display: inline-flex; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .topbar { padding: 12px 24px; }
  .masthead { padding: 40px 24px 28px; }
  .featured-wrap { padding: 36px 24px 4px; }
  .featured { padding: 34px 28px 38px; }
  .clippings { padding: 36px 24px 56px; grid-template-columns: 1fr; gap: 38px; }
  .index-cta-wrap { padding: 4px 24px 60px; }
  .more .clippings { grid-template-columns: 1fr; }
  .bar { padding: 16px 24px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { align-items: center; }
  .topbar .crumb { display: none; }
  .masthead h1 .stroke { -webkit-text-stroke: 2px var(--ink); }
  .dateline { font-size: 11px; gap: 6px 16px; }
  .featured .stamp { top: 12px; right: 12px; font-size: 15px; }
  .article-head { padding-top: 40px; }
  .article-head .perex { font-size: 17px; }
  .mise { padding: 26px 20px 22px; }
  .cta-box { padding: 30px 20px; }
  .byline { flex-direction: row; }
  .bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .bar .tag { flex: none; }
}
