/* NGLHRC Site Guide — self-contained styles */

@font-face {
  font-family: 'plain-font';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Plain-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'plain-font';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Plain-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'plain-font';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Plain-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'plain-font';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Plain-Extrabold.otf') format('opentype');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-variable.ttf') format('truetype');
}

:root {
  --bg: #fdf6ee;
  --ink: #181818;
  --ink-2: #3a2c22;
  --paper: #ffece5;
  --wine: #852847;
  --teal: #055242;
  --teal-deep: #043b30;
  --terra: #ff8f69;
  --terra-deep: #d85527;
  --gold: #efca79;
  --aubergine: #3d1f54;
  --aubergine-deep: #230f33;
  --faq-surface: #0d080f;
  --faq-accent: #f45b87;
  --faq-text: #f8f4ef;
  --panel: #fff;
  --border: rgba(18, 16, 16, 0.12);
  --shadow: 0 18px 48px rgba(18, 16, 16, 0.08);
  --hero-bg:
    radial-gradient(120% 80% at 18% 12%, rgba(232, 10, 99, 0.07) 0%, rgba(232, 10, 99, 0) 58%),
    radial-gradient(90% 70% at 88% 4%, rgba(255, 143, 105, 0.06) 0%, rgba(255, 143, 105, 0) 56%),
    linear-gradient(180deg, #3a1d50 0%, #1a0a28 52%, #08040e 100%);
  --toc-width: 260px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'plain-font', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-deep); }

.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 34px;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.guide-topbar img { height: 56px; width: auto; }

.guide-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 12px 20px;
  border: 2px solid #121010;
  background: var(--terra);
  color: #121010;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: -4px -4px 0 #121010;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: -6px -6px 0 #121010;
  color: #121010;
}

.guide-btn--ghost {
  background: var(--panel);
  box-shadow: none;
  border-color: var(--border);
  color: var(--ink);
}

.guide-btn--ghost:hover {
  border-color: #121010;
  box-shadow: -4px -4px 0 #121010;
}

.guide-hero {
  background: var(--hero-bg);
  color: var(--faq-text);
  padding: 72px 34px 88px;
}

.guide-hero__inner {
  max-width: 920px;
  margin: 0 auto;
}

.guide-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra);
}

.guide-hero h1 {
  margin: 0 0 20px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 900;
}

.headline-swipe {
  --headline-swipe-bg: #d85527;
  --headline-swipe-fg: #fff;
  position: relative;
  display: inline-block;
  padding: 0 0.12em 0.05em 0;
  white-space: nowrap;
  vertical-align: baseline;
}

.headline-swipe__slab {
  position: absolute;
  inset: 10% -3% 6% -4%;
  background: var(--headline-swipe-bg);
  transform: rotate(-3deg);
  z-index: 0;
}

.headline-swipe__text {
  position: relative;
  z-index: 1;
  color: var(--headline-swipe-fg) !important;
}

.guide-hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(248, 244, 239, 0.88);
}

.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--faq-text);
}

.guide-layout {
  display: grid;
  grid-template-columns: var(--toc-width) minmax(0, 1fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 34px 100px;
}

.guide-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px 18px;
  background: var(--panel);
  border: 2px solid #121010;
  box-shadow: -6px -6px 0 var(--terra);
}

.guide-toc h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.guide-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
}

.guide-toc a {
  color: var(--ink);
  text-decoration: none;
}

.guide-toc a:hover { color: var(--terra-deep); text-decoration: underline; }

.guide-main section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.section-heading {
  margin: 0 0 18px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 900;
}

.section-lede {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 18px;
}

.guide-card {
  background: var(--panel);
  border: 2px solid #121010;
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.guide-card p:last-child { margin-bottom: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 16px;
  padding: 18px 18px 18px 62px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--terra);
  border: 2px solid #121010;
  font-size: 14px;
  font-weight: 800;
}

.steps strong { display: block; margin-bottom: 4px; }

.callout {
  padding: 18px 20px;
  margin: 22px 0;
  border-left: 4px solid var(--terra);
  background: var(--paper);
}

.callout--warn {
  border-left-color: var(--gold);
  background: #fff8e8;
}

.callout--dark {
  border-left: none;
  background: var(--faq-surface);
  color: var(--faq-text);
}

.callout h4 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callout p { margin: 0; }

.guide-table-wrap { overflow-x: auto; margin: 18px 0 24px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--panel);
  border: 2px solid #121010;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: none; }

code, .code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

code {
  padding: 2px 6px;
  background: rgba(18, 16, 16, 0.06);
  border-radius: 4px;
}

.code-block {
  display: block;
  padding: 16px 18px;
  margin: 14px 0;
  background: #121010;
  color: #f8f4ef;
  overflow-x: auto;
  border: 2px solid #121010;
  box-shadow: -4px -4px 0 var(--terra);
  white-space: pre-wrap;
}

.screenshot {
  margin: 24px 0;
  border: 2px solid #121010;
  box-shadow: -8px -8px 0 var(--terra);
  background: #0d0d12;
  overflow: hidden;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Crop one real Studio capture for focused figures */
.screenshot--nav img {
  height: clamp(280px, 42vw, 480px);
  object-fit: cover;
  object-position: left center;
}

.screenshot--editor img {
  height: clamp(280px, 42vw, 480px);
  object-fit: cover;
  object-position: right center;
}

.screenshot--publish img {
  height: 88px;
  object-fit: cover;
  object-position: bottom;
}

.screenshot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.task-card {
  padding: 18px;
  background: var(--panel);
  border: 2px solid #121010;
}

.task-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.task-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg);
}

.tag--cms { background: #e8f5f1; border-color: #055242; color: #055242; }
.tag--code { background: #fff0e8; border-color: #d85527; color: #a2320b; }

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.color-swatch {
  border: 2px solid #121010;
  overflow: hidden;
}

.color-swatch__chip {
  height: 64px;
}

.color-swatch__meta {
  padding: 10px 12px;
  background: var(--panel);
  font-size: 13px;
  line-height: 1.35;
}

.color-swatch__meta strong {
  display: block;
  font-size: 14px;
}

.guide-footer {
  padding: 48px 34px 64px;
  background: var(--faq-surface);
  color: var(--faq-text);
}

.guide-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-end;
}

.guide-footer img {
  width: 130px;
  height: auto;
  margin-bottom: 12px;
}

.guide-footer p {
  margin: 0;
  max-width: 48ch;
  color: rgba(248, 244, 239, 0.75);
  font-size: 15px;
}

.guide-footer a {
  color: var(--terra);
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
    padding: 28px 20px 72px;
  }

  .guide-toc {
    position: static;
    box-shadow: -4px -4px 0 var(--terra);
  }

  .guide-topbar { padding: 12px 20px; }
  .guide-hero { padding: 56px 20px 72px; }
}
