/*
Theme Name: ΛNTRΞC.AI
Theme URI: https://antrec.ai/
Author: ΛNTRΞC.AI
Description: Near-future editorial theme built for AI SIGNAL, USE CASES, WORKFLOWS, TOOLS, and PRO.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: antrec-ai
*/

:root {
  --ink: #eef4ff;
  --muted: #9aa7b8;
  --bg: #07090d;
  --surface: #0d1118;
  --surface-2: #121824;
  --line: rgba(183, 211, 255, 0.14);
  --cyan: #6de7ff;
  --violet: #a58bff;
  --lime: #b8ff74;
  --max: 1180px;
  --reading: 720px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 4%, rgba(109, 231, 255, .08), transparent 30rem),
    radial-gradient(circle at 5% 35%, rgba(165, 139, 255, .07), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; border-radius: 14px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: white; color: black; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; letter-spacing: .04em; }
.brand-mark { font-weight: 820; font-size: 1.15rem; }
.brand-mark span { color: var(--cyan); }
.brand-caption { color: var(--muted); font-size: .72rem; letter-spacing: .13em; }
.menu { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--muted); font-size: .84rem; font-weight: 680; letter-spacing: .08em; text-decoration: none; }
.menu a:hover { color: var(--ink); }

.signal-deck { padding: clamp(46px, 7vw, 92px) 0 42px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: .78rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.signal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 24px; }
.lead-story, .brief-panel, .editorial-card, .newsletter-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18,24,36,.92), rgba(10,13,19,.92));
  border-radius: var(--radius);
}
.lead-story { min-height: 440px; padding: clamp(26px, 5vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.lead-story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(109,231,255,.08)); pointer-events: none; }
.lead-story h1 { position: relative; max-width: 840px; margin: 0; font-size: clamp(2.2rem, 5.8vw, 5.2rem); line-height: 1.04; letter-spacing: -.045em; }
.lead-story .dek { position: relative; max-width: 690px; margin: 22px 0 0; color: #c6d2e2; font-size: clamp(1rem, 2vw, 1.2rem); }
.brief-panel { padding: 24px; display: flex; flex-direction: column; }
.brief-list { display: grid; gap: 0; margin-top: auto; }
.brief-item { padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.brief-item small, .story-meta { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.brief-item strong { display: block; margin-top: 5px; line-height: 1.45; }

.section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.03em; }
.section-head a { color: var(--cyan); font-size: .84rem; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.editorial-card { padding: 24px; min-height: 280px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.editorial-card:hover { transform: translateY(-3px); border-color: rgba(109,231,255,.4); }
.card-kicker { color: var(--violet); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.editorial-card h3 { margin: 28px 0 12px; font-size: 1.32rem; line-height: 1.35; letter-spacing: -.02em; }
.editorial-card p { color: var(--muted); margin: 0 0 22px; }
.editorial-card .story-meta { margin-top: auto; }

.database-band { border-block: 1px solid var(--line); background: rgba(18, 24, 36, .58); }
.database-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: center; padding-block: 60px; }
.database-inner h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.12; }
.filter-cloud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.filter-chip { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; color: #d4deea; background: rgba(7,9,13,.65); }
.filter-chip small { display: block; color: var(--muted); }

.newsletter-panel { padding: clamp(26px, 5vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.newsletter-panel h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.newsletter-panel p { color: var(--muted); margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--cyan); border-radius: 999px; background: var(--cyan); color: #071018; font-weight: 800; text-decoration: none; }
.button:hover { background: transparent; color: var(--cyan); }

.archive-header { padding: 72px 0 34px; border-bottom: 1px solid var(--line); }
.archive-header h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.archive-header p { max-width: 650px; color: var(--muted); }
.archive-grid { padding-block: 34px 70px; }
.pagination { margin-top: 30px; }

.article-shell { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; padding: 64px 0 90px; }
.article-header { margin-bottom: 38px; }
.article-header h1 { margin: 10px 0 22px; font-size: clamp(2.2rem, 6vw, 4.7rem); line-height: 1.06; letter-spacing: -.045em; }
.article-dek { color: #becadb; font-size: 1.15rem; }
.article-body { font-family: "Noto Serif JP", "Yu Mincho", serif; }
.article-body h2, .article-body h3 { font-family: Inter, "Noto Sans JP", sans-serif; line-height: 1.35; letter-spacing: -.02em; margin-top: 2.2em; }
.article-body p, .article-body li { font-size: 1.08rem; }
.article-body a { color: var(--cyan); }
.article-body blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--violet); color: #c6d2e2; }
.quality-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.quality-strip span { color: var(--muted); font-size: .82rem; }
.quality-strip strong { color: var(--ink); }
.disclosure { margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; padding-block: 16px; }
  .site-nav { display: none; }
  .signal-grid, .database-inner, .newsletter-panel { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story { min-height: 380px; }
}

@media (max-width: 560px) {
  .container, .article-shell { width: min(calc(100% - 28px), var(--max)); }
  .brand-caption { display: none; }
  .signal-deck { padding-top: 28px; }
  .card-grid, .filter-cloud { grid-template-columns: 1fr; }
  .lead-story { min-height: 330px; padding: 24px; }
  .section { padding: 40px 0; }
}

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