/* implacable.us */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #0a0a0a;
  --fg:     #e8e8e8;
  --ice:    #a8bcc8;
  --dim:    rgba(232,232,232,0.38);
  --rule:   rgba(168,188,200,0.15);
  --accent: rgba(168,188,200,0.7);
}
[data-theme="light"] {
  --bg:     #e8e4e0;
  --fg:     #0a0a0a;
  --ice:    #4a6878;
  --dim:    rgba(10,10,10,0.38);
  --rule:   rgba(74,104,120,0.15);
  --accent: rgba(74,104,120,0.7);
}

html { font-size: 16px; }
body {
  background-color: var(--bg);
  background-image: url('parchment-speckle-dark.jpg');
  background-repeat: repeat;
  background-size: 512px 512px;
  color: var(--fg);
  font-family: 'Libre Baskerville', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
[data-theme="light"] body {
  background-image: url('parchment-speckle-light.jpg');
}

/* HEADER */
header { padding: 2rem 2.5rem; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.header-inner { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.22em;
  color: var(--fg); opacity: 0.9;
}

.def-inline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.06em; color: var(--accent); opacity: 0.6;
}
.toggle-btn {
  background: none; border: 1px solid var(--rule); color: var(--ice);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; cursor: pointer; opacity: 0.55;
}
.toggle-btn:hover { opacity: 1; border-color: var(--ice); }

/* HERO */
.hero {
  padding: 6rem 2.5rem 5rem;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-start; gap: 5rem;
  flex-wrap: wrap; position: relative;
}

.hero::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}
.hero-inner { flex: 1 1 400px; }

/* HERO IMAGE — in its own section, no stacking context */
.hero-img-wrap {
  text-align: center;
  padding: 3rem 2.5rem 0;
}
.hero-img {
  display: inline-block; width: 840px; max-width: 90%;
  border-radius: 6px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 90%);
}
[data-theme="dark"] .hero-img { mix-blend-mode: normal; }

h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(4rem, 10vw, 8rem); line-height: 0.95;
  letter-spacing: 0.03em; color: var(--fg);
}
h1 em {
  font-family: 'Libre Baskerville', serif; font-style: italic;
  font-size: 0.7em; color: var(--ice); letter-spacing: 0.01em;
}
.hero-aside {
  flex: 0 0 180px; padding-top: 0.4rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.aside-text {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  font-weight: 400; color: var(--fg); opacity: 0.6; line-height: 1.6;
}
.phonetic { font-weight: 300; color: var(--ice); opacity: 0.7; }
.aside-def {
  font-family: 'Libre Baskerville', serif; font-size: 0.82rem;
  font-style: italic; line-height: 1.8; color: var(--dim);
}

/* BODY COPY */
.body-copy { padding: 5rem 2.5rem 6rem; flex: 1; }
.content-col { max-width: 620px; }
.drop-cap { font-size: 2.3rem; line-height: 1.75; color: var(--fg); opacity: 0.88; margin-bottom: 1.8rem; }
.body-copy p { font-size: 2.1rem; line-height: 1.9; color: var(--fg); opacity: 0.55; margin-bottom: 1.6rem; font-weight: 400; }
.body-copy p em { font-style: italic; opacity: 1; color: var(--fg); }
blockquote {
  margin: 3rem 0; padding: 0; border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.3;
  letter-spacing: 0.04em; color: var(--ice); opacity: 0.65;
}
.divider { margin: 3rem 0 2.5rem; }
.rule-line { display: block; height: 1px; width: 3rem; background: var(--rule); }
.status-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.3em; color: var(--fg); opacity: 0.15; margin-bottom: 0 !important;
}

/* FOOTER — 2x original font size */
footer { padding: 1.8rem 2.5rem; border-top: 1px solid var(--rule); }
.copy {
  font-size: 1.3rem; letter-spacing: 0.08em;
  opacity: 0.18; font-family: 'IBM Plex Mono', monospace; font-weight: 300;
}

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner { animation: fadeUp 0.7s ease both; }
.hero-aside { animation: fadeUp 0.7s 0.08s ease both; }
.content-col { animation: fadeUp 0.7s 0.14s ease both; }
