/*
Theme Name: Artificial Consequences
Theme URI: https://artificialconsequences.com
Author: Artificial Consequences
Description: A cinematic block theme for the AI Realism Index and essays about artificial intelligence in fiction.
Version: 1.1.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: artificial-consequences
*/

:root {
  --ac-ink: #090b0f;
  --ac-paper: #f2efe8;
  --ac-lime: #c7ff37;
  --ac-coral: #ff684b;
  --ac-line: rgba(242, 239, 232, 0.18);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: var(--ac-lime); color: var(--ac-ink); }
a { text-underline-offset: .2em; }

.ac-site-header {
  border-bottom: 1px solid var(--ac-line);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}

.ac-wordmark { letter-spacing: -.04em; }
.ac-wordmark mark { border-radius: 999px; padding: .08em .38em; }

.ac-logo {
  color: var(--ac-paper);
  display: inline-flex;
  flex-direction: column;
  line-height: .92;
  text-decoration: none;
  white-space: nowrap;
}
.ac-logo:hover { color: var(--ac-paper); }
.ac-logo-first { font-size: .75rem; font-weight: 800; letter-spacing: .2em; margin-left: .16em; text-transform: uppercase; }
.ac-logo-second { color: var(--ac-lime); font-family: Georgia, serif; font-size: 2rem; font-style: italic; letter-spacing: -.055em; }
.ac-logo--footer .ac-logo-first { font-size: .82rem; }
.ac-logo--footer .ac-logo-second { font-size: 2.5rem; }

.ac-hero {
  min-height: 78vh;
  position: relative;
  overflow: hidden;
}

.ac-hero::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(199,255,55,.17), transparent 28%),
    radial-gradient(circle at 30% 90%, rgba(255,104,75,.12), transparent 26%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ac-kicker, .ac-label {
  font-family: var(--wp--preset--font-family--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ac-display { font-size: clamp(4.1rem, 7.5vw, 8.4rem) !important; letter-spacing: -.065em; line-height: .94; }
.ac-display em { color: var(--ac-lime); display: inline-block; font-family: Georgia, serif; font-size: .82em; font-weight: 400; white-space: nowrap; }

.ac-verdict-card {
  background: linear-gradient(145deg, #171b22, #0c0f14 65%);
  border: 1px solid rgba(199,255,55,.38);
  box-shadow: 0 36px 100px rgba(0,0,0,.5), inset 0 0 50px rgba(199,255,55,.035);
  min-height: 520px;
  overflow: hidden;
  position: relative;
  transform: rotate(1.5deg);
}

.ac-verdict-card::after {
  border: 1px solid rgba(199,255,55,.12);
  border-radius: 50%;
  content: "";
  height: 390px;
  position: absolute;
  right: -130px;
  top: -130px;
  width: 390px;
}

.ac-score {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--ac-lime);
  border-radius: 50%;
  color: var(--ac-lime);
  display: flex;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  justify-content: center;
  line-height: 1;
  margin: 70px auto 34px;
  max-width: 240px;
  position: relative;
  width: 64%;
}

.ac-score::before {
  border: 1px dashed rgba(199,255,55,.45);
  border-radius: 50%;
  content: "";
  inset: -12px;
  position: absolute;
}

.ac-score small { font-size: .22em; margin-left: .18em; opacity: .6; }

.ac-metric-strip { border-block: 1px solid var(--ac-line); }
.ac-metric { border-right: 1px solid var(--ac-line); }
.ac-metric:last-child { border-right: 0; }

.ac-section-number { color: var(--ac-lime); font-family: var(--wp--preset--font-family--mono); }

.ac-editorial-card {
  border-top: 1px solid var(--ac-line);
  min-height: 330px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.ac-editorial-card:hover { border-color: var(--ac-lime); transform: translateY(-5px); }
.ac-editorial-card .wp-block-heading { max-width: 12ch; }
.ac-card-number { color: rgba(242,239,232,.2); font-size: 4.6rem; letter-spacing: -.08em; line-height: 1; }

.ac-method-card { border: 1px solid rgba(9,11,15,.18); min-height: 255px; }
.ac-method-card strong { color: var(--ac-coral); font-size: 2.5rem; }
.ac-score-bands { border-top: 1px solid rgba(9,11,15,.22); }
.ac-scale-heading { color: #555a55; font-size: .72rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 1.5rem; text-transform: uppercase; }
.ac-scale { border-top: 1px solid rgba(9,11,15,.2); }
.ac-scale-row { align-items: baseline; border-bottom: 1px solid rgba(9,11,15,.16); display: grid; gap: 1.5rem; grid-template-columns: 112px minmax(210px, .8fr) minmax(0, 1.3fr); padding: 1.05rem 0; }
.ac-scale-range { color: #596923; font-family: var(--wp--preset--font-family--mono); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.ac-scale-row:nth-child(n+4) .ac-scale-range { color: #a84f3b; }
.ac-scale-name { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.ac-scale-description { color: #545a56; font-size: .94rem; line-height: 1.55; }
.ac-scale-note { color: #555a55; font-size: .83rem; line-height: 1.6; margin: 1.3rem 0 0; }

.ac-newsletter { border: 1px solid var(--ac-lime); box-shadow: 12px 12px 0 var(--ac-lime); }
.ac-footer { border-top: 1px solid var(--ac-line); padding: 4rem clamp(1.25rem, 4vw, 4rem) 2rem; }
.ac-footer-inner { margin: auto; max-width: 1280px; }
.ac-footer-main { align-items: start; display: grid; gap: 4rem; grid-template-columns: minmax(0, 1fr) auto; }
.ac-footer-brand { max-width: 440px; }
.ac-footer-brand .ac-logo { margin-left: 0; }
.ac-footer-tagline { color: var(--wp--preset--color--steel); font-size: 1rem; line-height: 1.5; margin: 1.3rem 0 0; }
.ac-footer-nav { display: grid; gap: .8rem; grid-template-columns: repeat(3, auto); padding-top: .5rem; }
.ac-footer-nav a { color: var(--ac-paper); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ac-footer-nav a:hover { color: var(--ac-lime); }
.ac-footer-meta { align-items: center; border-top: 1px solid var(--ac-line); color: var(--wp--preset--color--steel); display: flex; font-size: .78rem; gap: 1rem; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.25rem; }

.ac-article-header { border-bottom: 1px solid var(--ac-line); }
.ac-article-header .wp-block-post-title { font-size: clamp(2.8rem, 5.5vw, 5.6rem) !important; letter-spacing: -.055em; line-height: 1.02; }
.ac-post-content > p:first-of-type { font-size: 1.3em; line-height: 1.55; }
.ac-post-content h2 { margin-top: 2.5em; }
.ac-post-content blockquote { border-left: 3px solid var(--ac-lime); margin-left: 0; padding-left: 1.5rem; }
.ac-post-content table { border-collapse: collapse; display: block; font-size: .94rem; max-width: 100%; overflow-x: auto; width: 100%; }
.ac-post-content th, .ac-post-content td { border-bottom: 1px solid var(--ac-line); padding: .85rem 1rem .85rem 0; text-align: left; vertical-align: top; }
.ac-post-content th { color: var(--ac-lime); font-family: var(--wp--preset--font-family--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.ac-post-content td:nth-child(2) { color: var(--ac-lime); font-weight: 700; white-space: nowrap; }

@media (max-width: 781px) {
  .ac-hero { min-height: auto; }
  .ac-display { font-size: clamp(2.8rem, 13vw, 5rem) !important; }
  .ac-verdict-card { min-height: 430px; transform: none; }
  .ac-metric { border-bottom: 1px solid var(--ac-line); border-right: 0; }
  .ac-logo-first { font-size: .65rem; }
  .ac-logo-second { font-size: 1.65rem; }
  .ac-logo--footer .ac-logo-first { font-size: .82rem; }
  .ac-logo--footer .ac-logo-second { font-size: 2.5rem; }
  .ac-article-header { padding-top: 4rem !important; padding-bottom: 3rem !important; }
  .ac-scale-row { align-items: start; gap: .25rem .7rem; grid-template-columns: 90px minmax(0, 1fr); padding: 1.1rem 0; }
  .ac-scale-description { grid-column: 2; }
  .ac-footer { padding-block: 3rem 1.5rem; }
  .ac-footer-main { gap: 2rem; grid-template-columns: 1fr; }
  .ac-footer-nav { justify-content: start; }
  .ac-footer-meta { align-items: flex-start; flex-direction: column; gap: .25rem; margin-top: 2.5rem; }
  .ac-newsletter { box-shadow: 7px 7px 0 var(--ac-lime); }
}
