:root {
  color-scheme: light;
  --ink: #2d241b;
  --soft-ink: #706358;
  --paper: #fff8ed;
  --paper-deep: #efe0c7;
  --paper-warm: #f7ecd9;
  --panel: rgba(255, 252, 247, 0.9);
  --line: rgba(71, 50, 31, 0.16);
  --honey: #d7972d;
  --leaf: #6f8b63;
  --rose: #bd725f;
  --sky: #7aa7a2;
  --night: #18130f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(255, 248, 237, 0.78);
  border-bottom: 1px solid rgba(75, 54, 35, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow:
    8px 0 0 -4px var(--leaf),
    0 0 0 5px rgba(215, 151, 45, 0.16);
}

nav {
  gap: 18px;
}

nav a {
  color: var(--soft-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 90svh;
  overflow: hidden;
  padding: 118px clamp(20px, 6vw, 76px) 92px;
  background: var(--night);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(24, 19, 15, 0.94) 0%, rgba(24, 19, 15, 0.7) 42%, rgba(24, 19, 15, 0.08) 76%),
    linear-gradient(0deg, rgba(255, 248, 237, 1) 0%, rgba(255, 248, 237, 0) 24%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff8ed;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--honey);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(215, 151, 45, 0.2);
  color: #fff8ed;
  font-size: 0.9rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 13vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 0;
  color: rgba(255, 248, 237, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  background: #fff8ed;
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 248, 237, 0.1);
  color: #fff8ed;
}

.button.dark {
  width: fit-content;
  border-color: rgba(47, 38, 29, 0.2);
  background: var(--ink);
  color: #fff8ed;
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 64px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.center-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.split-layout,
.ethics-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 6vw, 78px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 92px;
}

.dossier-section {
  background: var(--paper);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact-card,
.tool-card,
.ethics-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fact-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
}

.fact-card.accent {
  background: #2f261d;
  color: #fff8ed;
}

.card-kicker {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card.accent .card-kicker {
  color: var(--honey);
}

.fact-card strong {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.fact-card p,
.ethics-panel p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.8;
}

.fact-card.accent p {
  color: rgba(255, 248, 237, 0.78);
}

.relation-section {
  background: var(--paper-deep);
}

.relation-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 252, 247, 0.68);
  color: var(--soft-ink);
  cursor: pointer;
}

.tab.is-active {
  background: var(--ink);
  color: #fff8ed;
}

.relation-panel {
  display: grid;
  gap: 12px;
  width: min(820px, 100%);
  min-height: 210px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 42px);
  background: rgba(255, 252, 247, 0.82);
}

.panel-label {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(215, 151, 45, 0.16);
  color: #8a5d14;
  font-size: 0.8rem;
  font-weight: 900;
}

.relation-panel strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.relation-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.06rem;
  line-height: 1.8;
}

.lab-section {
  background: #fbf2e4;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 370px;
  padding: 22px;
}

.score-card label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--honey);
}

.meter-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 4px 0 6px;
}

.meter {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 55%, transparent 56%),
    conic-gradient(var(--honey) var(--score-angle, 245deg), rgba(71, 50, 31, 0.12) 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.meter span {
  font-size: 2.6rem;
  font-weight: 950;
}

#meme-title {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.quote-output,
.translator-output {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

.quote-output {
  min-height: 150px;
  border-left: 4px solid var(--honey);
  padding: 8px 0 8px 18px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  line-height: 1.6;
}

textarea:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(215, 151, 45, 0.36);
  outline-offset: 3px;
}

.translator-output {
  border-radius: 8px;
  padding: 14px;
  background: rgba(215, 151, 45, 0.14);
  color: #553916;
  font-weight: 800;
}

.ethics-section {
  background: #2f261d;
  color: #fff8ed;
}

.ethics-section h2 {
  color: #fff8ed;
}

.ethics-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 248, 237, 0.08);
  border-color: rgba(255, 248, 237, 0.16);
}

.ethics-panel p {
  color: rgba(255, 248, 237, 0.78);
}

.rule-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(255, 248, 237, 0.9);
  line-height: 1.65;
}

.note-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.48em;
}

.note-dot.ready {
  background: var(--leaf);
}

.note-dot.pending {
  background: var(--rose);
}

.sources-section {
  background: var(--paper-warm);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.source-list a {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 252, 247, 0.72);
  color: var(--soft-ink);
  font-weight: 800;
  line-height: 1.5;
}

.source-list a:hover {
  color: var(--ink);
  border-color: rgba(215, 151, 45, 0.52);
}

@media (max-width: 980px) {
  .split-layout,
  .ethics-layout {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .lab-grid,
  .source-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.84rem;
  }

  .hero {
    min-height: 84svh;
    padding-top: 100px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(24, 19, 15, 0.9), rgba(24, 19, 15, 0.52)),
      linear-gradient(0deg, rgba(255, 248, 237, 1), rgba(255, 248, 237, 0.04) 46%);
  }

  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 14px;
  }

  .brand span:last-child {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav {
    gap: 9px;
  }

  .hero {
    min-height: 82svh;
    padding: 94px 18px 70px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .relation-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab {
    width: 100%;
  }

  .fact-card,
  .tool-card,
  .ethics-panel {
    padding: 18px;
  }
}
