/* SiP 3.0 — Styleguide (light canvas, dark chrome) */

:root {
  color-scheme: light;

  /* Page (gallery wall) */
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f4;

  /* Brand */
  --sip-red: #da3824;
  --lego-yellow: #ffd700;
  --teal: #2a5c4e;

  --ink: #1a1a1a;
  --white: #ffffff;
  --gallery: #f4f4f4;
  --rule: #e2e2e2;
  --rule-strong: #cfcfcf;
  --muted: #767676;

  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --space-section-x: clamp(1.5rem, 5vw, 4rem);
  --space-section-y: clamp(3.5rem, 8vw, 5rem);
  --content-max: 1100px;
  --reading-max: 42rem;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-soft: 0 1px 2px rgba(26, 26, 26, 0.04);

  /* Dark chrome (header / nav / footer) — scoped via explicit rules */
  --chrome-bg: #1a1a1a;
  --chrome-fg: #fafafa;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ——— Header ——— */
.guide-header {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 6rem) var(--space-section-x)
    clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(165deg, #222 0%, var(--chrome-bg) 45%, #121212 100%);
  color: var(--chrome-fg);
}

.guide-header::before,
.guide-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-header::before {
  top: -5rem;
  right: -4rem;
  width: min(28rem, 90vw);
  height: min(28rem, 90vw);
}

.guide-header::after {
  bottom: -6rem;
  right: 18%;
  width: 14rem;
  height: 14rem;
  border-color: rgba(255, 255, 255, 0.035);
}

.guide-header-headline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  width: 100%;
}

.guide-header-titles {
  flex: 1;
  min-width: 0;
}

.guide-header-logo-link {
  flex-shrink: 0;
  margin-left: auto;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

.guide-header-logo-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.guide-header-logo {
  display: block;
  width: clamp(6rem, 16vw, 9rem);
  height: auto;
  object-fit: contain;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sip-red);
}

.guide-header h1 {
  position: relative;
  z-index: 1;
  max-width: min(42rem, 100%);
  margin-bottom: 0;
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.guide-header h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.42);
}

.intro {
  position: relative;
  z-index: 1;
  max-width: var(--reading-max);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

.header-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-pill {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.meta-pill span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
}

/* ——— Nav ——— */
.toc {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 0.125rem;
  overflow-x: auto;
  padding: 0 var(--space-section-x);
  background: var(--chrome-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.toc a {
  flex-shrink: 0;
  padding: 1rem 1.125rem;
  border-bottom: 2px solid transparent;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover {
  color: var(--chrome-fg);
  border-bottom-color: var(--sip-red);
}

/* ——— Sections ——— */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-section-y) var(--space-section-x);
  border-bottom: 1px solid var(--rule);
}

.section-label {
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin-bottom: 2.5rem;
  font-family: var(--f-display);
  font-size: clamp(1.65rem, 3.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 0.75rem;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: var(--reading-max);
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink);
}

/* ——— Swatches ——— */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1.125rem;
  margin-bottom: 2.25rem;
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.swatch-block {
  height: 4.75rem;
}

.swatch-info {
  padding: 0.875rem 1rem 1rem;
  background: var(--white);
}

.swatch-name {
  margin-bottom: 0.125rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink);
}

.swatch-hex {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: var(--muted);
}

.swatch-role {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ——— Type specimens ——— */
.type-specimen {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.type-label {
  position: absolute;
  top: 0.875rem;
  right: 1.125rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.type-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--muted);
}

.t-display {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.t-display-italic {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.22;
}

.t-subheading {
  font-family: var(--f-body);
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.58;
  color: var(--muted);
}

.t-body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.78;
}

.t-caption {
  font-family: var(--f-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.t-mono {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-quote {
  padding-left: 1.35rem;
  border-left: 3px solid var(--sip-red);
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.55;
}

/* ——— Voice ——— */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.25rem;
}

.voice-card {
  padding: 1.65rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.voice-card.do {
  border-color: #b4d9c5;
  background: #f0f8f4;
}

.voice-card.dont {
  border-color: #f0c4bc;
  background: #fdf2f0;
}

.vlabel {
  margin-bottom: 1rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.voice-card.do .vlabel {
  color: var(--teal);
}

.voice-card.dont .vlabel {
  color: var(--sip-red);
}

.voice-card p {
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}

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

/* ——— Tables ——— */
.rules-table {
  width: 100%;
  margin-bottom: 2.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rules-table th {
  padding: 0.75rem 1.125rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule-strong);
}

.rules-table td {
  padding: 1rem 1.125rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.rules-table tr:nth-child(even) td {
  background: #fafafa;
}

.rules-table strong {
  font-weight: 500;
  color: var(--ink);
}

/* ——— Buttons & tags ——— */
.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.8125rem 1.625rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-accent {
  border-color: var(--sip-red);
  background: var(--sip-red);
  color: var(--white);
}

.btn-yellow {
  border-color: var(--lego-yellow);
  background: var(--lego-yellow);
  color: var(--ink);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ——— Card ——— */
.card-preview {
  max-width: 20rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.card-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 11.875rem;
  padding: 1.125rem;
  background: linear-gradient(135deg, #1a1714 0%, #3a3230 55%, #121210 100%);
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(26, 26, 26, 0.65) 100%
  );
}

.card-img-meta {
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-body .eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.625rem;
}

.card-body h4 {
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.28;
}

.card-body p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ——— Pull quote ——— */
.pull-quote {
  margin: 2.75rem 0;
  padding: 2rem 2rem 2rem 2.25rem;
  border-left: 4px solid var(--sip-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gallery);
}

.pull-quote blockquote {
  margin-bottom: 1rem;
  font-family: var(--f-display);
  font-size: 1.3125rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.pull-quote cite {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Keywords ——— */
.keyword-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.keyword {
  display: inline-block;
  padding: 0.4rem 1.15rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink);
}

.keyword.red {
  border-color: var(--sip-red);
  color: var(--sip-red);
}

.keyword.filled {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.keyword.yellow {
  border-color: var(--lego-yellow);
  background: var(--lego-yellow);
  color: var(--ink);
}

/* ——— Callouts ——— */
.callout {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--lego-yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  background: #fffbea;
  color: var(--ink);
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a7800;
}

.note {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--sip-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  background: #fdf2f0;
  color: var(--ink);
}

.note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sip-red);
}

/* ——— Audiences ——— */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.35rem;
  margin-bottom: 2.25rem;
}

.audience-card {
  padding: 1.65rem 1.75rem;
  border: 1px solid var(--rule);
  border-top: 3px solid;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  background: var(--surface);
}

.audience-card.crew {
  border-top-color: var(--ink);
}

.audience-card.community {
  border-top-color: var(--teal);
}

.audience-card.lovers {
  border-top-color: var(--sip-red);
}

.a-label {
  margin-bottom: 0.65rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.audience-card h3 {
  font-size: 1.0625rem;
}

.audience-card p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ——— Spacing scale ——— */
.spacing-scale {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.spacing-row-item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.spacing-bar {
  flex-shrink: 0;
  height: 0.875rem;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.12;
}

.spacing-info {
  flex-shrink: 0;
  min-width: 5.75rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.spacing-use {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ——— Logo boxes ——— */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-bottom: 2.25rem;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-width: 11.5rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.logo-box.on-dark {
  border-color: var(--ink);
  background: var(--ink);
}

.logo-box.on-white {
  border-color: var(--rule);
  background: var(--white);
}

.logo-box.on-grey {
  border-color: var(--rule);
  background: var(--gallery);
}

.logo-img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.logo-context {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-box.on-dark .logo-context {
  color: rgba(255, 255, 255, 0.4);
}

.logo-box.on-white .logo-context,
.logo-box.on-grey .logo-context {
  color: #5c5c62;
}

/* ——— Footer ——— */
.guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.75rem var(--space-section-x);
  background: linear-gradient(180deg, #222 0%, var(--chrome-bg) 100%);
  color: rgba(255, 255, 255, 0.35);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.footer-name {
  font-family: "DM Sans", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-fg);
}

.guide-footer p {
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.guide-footer em {
  font-size: 0.6875rem;
  opacity: 0.9;
}

/* ——— Landing & sign-in (landing.html, index.html) ——— */
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--space-section-x) 4rem;
}

main h1 {
  margin-bottom: 1.25rem;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

main p {
  margin-bottom: 1.5rem;
  color: var(--ink);
}

main ul {
  padding-left: 1.25rem;
}

main li {
  margin-bottom: 0.5rem;
}

main a {
  color: #1a5a8a;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main a:hover {
  color: var(--sip-red);
}

/* ——— people.html ——— */
main.people-main {
  max-width: none;
  margin: 0;
  padding: 0 0 4rem;
}

.people-tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: people-tier;
  display: grid;
  gap: 1.25rem;
}

.people-tiers > li {
  counter-increment: people-tier;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--gallery);
  box-shadow: var(--shadow-soft);
}

.people-tiers > li::before {
  content: counter(people-tier, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.people-tiers > li h3 {
  margin-top: 0;
}

.tier-actions {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tier-actions li {
  margin-bottom: 0.35rem;
}

.ai-note {
  max-width: var(--reading-max);
  margin-bottom: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--sip-red);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cta-actions .btn {
  margin-bottom: 0;
}

/* ——— sip_30_announcement_bare.html ——— */
main.sip-announcement-main {
  max-width: var(--reading-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--space-section-x) 4rem;
}

.sip-announcement .section-label {
  margin-bottom: 1.5rem;
}

.sip-announcement .lead {
  margin-bottom: 1.75rem;
}

.sip-announcement-callout {
  margin: 2rem 0 2.25rem;
  padding: 1.35rem 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sip-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gallery);
  box-shadow: var(--shadow-soft);
}

.sip-announcement-callout p {
  margin-bottom: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
}

.sip-announcement-callout p:last-of-type {
  margin-bottom: 0;
}

.sip-announcement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--rule);
}

.sip-announcement-divider {
  height: 0;
  margin: 2.75rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.sip-announcement h2 {
  margin-top: 0;
  margin-bottom: 1.125rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sip-red);
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.sip-announcement h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.sip-announcement-panel {
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--surface) 0%, var(--gallery) 100%);
  box-shadow: var(--shadow-soft);
}

.sip-announcement-panel--compact {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem 1.15rem;
}

.sip-announcement-panel-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sip-red);
}

.sip-announcement-panel h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.sip-announcement-panel p:last-child {
  margin-bottom: 0;
}

.sip-announcement-kicker {
  margin-top: 1.75rem;
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.sip-announcement .pull-quote {
  margin: 2.25rem 0;
}

.sip-announcement-sig {
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sip-announcement-back {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ——— community-guidelines.html ——— */
.guidelines-item {
  max-width: var(--reading-max);
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--gallery);
  box-shadow: var(--shadow-soft);
}

.guidelines-item h3 {
  margin-top: 0;
}

.guidelines-item p:last-child {
  margin-bottom: 0;
}

.guidelines-list {
  max-width: var(--reading-max);
  margin: 0;
}

.guidelines-list dt {
  margin-top: 1.35rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.guidelines-list dt:first-child {
  margin-top: 0;
}

.guidelines-list dd {
  margin: 0.5rem 0 0;
  padding: 0;
  line-height: 1.65;
  color: var(--ink);
}

.discord-rules {
  max-width: var(--reading-max);
}

.discord-rules li {
  margin-bottom: 0.65rem;
}

.lego-disclaimer {
  max-width: var(--reading-max);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.login-main {
  max-width: 26rem;
}

.login-form {
  padding: 2rem 2.25rem 2.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.login-heading {
  margin-bottom: 0.35rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.login-hint {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.login-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.login-input:focus {
  outline: 2px solid rgba(218, 56, 36, 0.35);
  outline-offset: 2px;
}

.login-error {
  margin: -0.25rem 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--sip-red);
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
}

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .guide-header-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-header-logo-link {
    margin-left: 0;
    align-self: flex-end;
  }

  .guide-header-logo {
    width: min(6.5rem, 44vw);
  }

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

  .header-meta {
    gap: 1.5rem;
  }

  .rules-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .type-specimen {
    padding: 1.65rem 1.25rem 1.5rem;
  }

  .type-label {
    position: static;
    margin-bottom: 0.75rem;
  }

  .pull-quote {
    padding: 1.5rem 1.25rem 1.5rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
