:root {
  --bg: #2B2019;
  --bg-deep: #201811;
  --surface: #3A2C22;
  --border: #5C4A3B;
  --ink: #F7EDE0;
  --muted: #CBB79E;
  --lime: #D9A441;
  --lime-tint: rgba(217, 164, 65, 0.12);
  --blue: #6FB1E8;
  --blue-tint: rgba(111, 177, 232, 0.12);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--muted); }

a {
  color: var(--lime);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

.eyebrow {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.6em;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: #000000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 700px) {
  .site-header .container {
    flex-wrap: nowrap;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  -webkit-text-stroke: 0.4px currentColor;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--ink);
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav.primary-nav {
  width: 100%;
  order: 3;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-toggle-input:checked ~ nav.primary-nav {
  max-height: 2000px;
  overflow: visible;
}

.site-header .site-search {
  order: 4;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-toggle-input:checked ~ .site-search {
  max-height: 200px;
  overflow: visible;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem 0 0;
}

nav.primary-nav a {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.primary-nav a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

nav.primary-nav a.is-active {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--lime-tint);
  font-weight: 700;
}

@media (min-width: 700px) {
  .nav-toggle-label {
    display: none;
  }

  nav.primary-nav {
    width: auto;
    order: 0;
    max-height: none;
    overflow: visible;
  }

  nav.primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.4rem;
    padding-top: 0;
  }

  nav.primary-nav a {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.98rem;
  }

  nav.primary-nav a.is-active {
    border: none;
    background: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  nav.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1.4rem;
    min-width: 0;
  }

  .site-header .site-search {
    order: 0;
    width: auto;
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
  }
}

/* Site search */

.site-search {
  position: relative;
  margin-top: 1rem;
}

.site-search-input {
  width: 100%;
  padding: 0.55rem 0.8rem 0.55rem 2.3rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBB79E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.7rem center;
  background-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, width 0.2s ease;
}

.site-search-input::placeholder {
  color: var(--muted);
}

.site-search-input:focus {
  outline: none;
  border-color: var(--lime);
}

@media (min-width: 700px) {
  .site-search {
    margin: 0;
  }

  .site-search-input {
    width: 40px;
    cursor: pointer;
  }

  .site-search-input:focus {
    width: 210px;
    cursor: text;
  }
}

.site-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 700px) {
  .site-search-results {
    left: auto;
    width: 320px;
  }
}

.site-search-result {
  display: block;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.site-search-result:last-child {
  border-bottom: none;
}

.site-search-result:hover,
.site-search-result:focus {
  background: var(--bg-deep);
}

.site-search-result-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  margin-bottom: 0.2rem;
}

.site-search-result-title {
  display: block;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.site-search-result-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-search-empty {
  margin: 0;
  padding: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

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

.btn-primary {
  position: relative;
  background: var(--lime);
  color: var(--bg-deep);
  overflow: hidden;
}

.btn-primary:hover {
  background: #fff;
  color: var(--bg-deep);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 130%;
}

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

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn-row:has(> :only-child) {
  justify-content: center;
}

.hero .btn-row {
  justify-content: center;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.store-badge {
  opacity: 0.55;
  cursor: default;
}

/* Hero */

.hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg-deep);
}

.hero .container {
  max-width: 780px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Section spacing */

section {
  padding: 3rem 0;
}

section.alt {
  background: var(--bg-deep);
}

section > .container > h2 {
  max-width: 700px;
}

.section-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Quick self-check quiz */

.quick-check {
  max-width: 700px;
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

.quick-check-q {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 0;
}

.quick-check-q legend {
  padding: 0 0.3rem;
  font-weight: 700;
  color: var(--ink);
}

.quick-check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 0.8rem;
}

.quick-check-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.quick-check-options input {
  width: auto;
  min-height: 0;
}

#quick-check-result {
  max-width: 700px;
  margin-top: 1.6rem;
}

/* Pillar cards */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-card {
  --accent: var(--lime);
  position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.1rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  /* !important: .reveal-stagger > * sets its own transition shorthand on this same element for the
     scroll-in fade, and shares equal specificity with this rule but comes later in the file, which
     would otherwise silently strip the border-color/box-shadow transitions below on hover. */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.9s ease, box-shadow 0.9s ease, opacity 0.6s ease !important;
}

.pillar-card { --accent: var(--lime); }

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  background: var(--lime-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pillar-icon svg { width: 30px; height: 30px; }

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.75;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card h3 {
  margin-bottom: 0;
}

.pillar-card .status-tag {
  margin-bottom: 0;
}

.pillar-card p {
  color: var(--muted);
  margin-bottom: 0;
  flex-grow: 1;
}

.pillar-card .card-note {
  margin-top: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.75;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  width: fit-content;
}

.status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: status-pulse 2.2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-live {
  background: var(--lime-tint);
  color: var(--lime);
}

.status-soon {
  background: var(--lime-tint);
  color: var(--lime);
}

.status-fixsoon {
  background: var(--blue-tint);
  color: var(--blue);
}

.pillar-card a.card-link {
  margin-top: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}

.pillar-card a.card-link:hover {
  transform: translateX(4px);
}

/* Callout boxes */

.callout {
  border-left: 4px solid var(--lime);
  background: var(--lime-tint);
  padding: 1.1rem 1.3rem;
  border-radius: 6px;
  margin: 1.6rem 0;
}

.callout p { color: var(--ink); opacity: 0.85; }

.callout ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2em;
  color: var(--ink);
  opacity: 0.85;
}

.callout li {
  margin-bottom: 0.6rem;
}

.callout li:last-child { margin-bottom: 0; }

.callout h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.callout.blue {
  border-color: var(--blue);
  background: var(--blue-tint);
}

/* Book block */

.book-block {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .book-block {
    flex-direction: row;
    align-items: stretch;
  }
}

.book-cover {
  position: relative;
  flex: 0 0 213px;
  width: 213px;
  height: 320px;
  margin: 0 8px 8px 0;
  border-radius: 3px 8px 8px 3px;
  display: flex;
  flex-direction: column;
  font-family: Georgia, serif;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.45),
    6px 6px 0 0 var(--surface),
    6px 6px 0 1px var(--border),
    11px 11px 0 0 var(--bg-deep),
    11px 11px 0 1px var(--border);
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.book-cover-art {
  position: relative;
  flex: 1;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(217, 164, 65, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 164, 65, 0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(111, 177, 232, 0.55) 1.4px, transparent 1.6px);
  background-size: 14px 14px, 14px 14px, 28px 28px;
  background-position: 0 0, 0 0, 7px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.4rem 1rem;
  color: #fff;
  text-align: center;
}

.book-cover-icon {
  width: 30px;
  height: 30px;
  color: var(--lime);
  opacity: 0.9;
}

.book-cover .vol {
  color: var(--lime);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover-title-plate {
  background: #fff;
  border-top: 3px solid var(--lime);
  padding: 0.9rem 0.8rem 1.1rem;
  text-align: center;
}

.book-cover .title {
  color: var(--bg-deep);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}

.price-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  font-weight: 700;
  color: var(--lime);
}

/* Series list */

.series-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.series-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
}

.series-list .num {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--lime);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.6rem;
}

.series-list .tag {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.series-list li:has(> details) {
  display: block;
  padding: 0;
}

.series-list summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  transition: background-color 0.15s ease;
}

.series-list summary:hover {
  background-color: var(--bg-deep);
}

.series-list summary::-webkit-details-marker {
  display: none;
}

.series-list .series-title {
  flex: 1;
  min-width: 0;
}

.series-list .chevron {
  flex-shrink: 0;
  width: 1em;
  text-align: center;
  color: var(--lime);
  font-weight: 700;
  font-size: 1.2rem;
}

.series-list .chevron::before {
  content: "+";
}

.series-list details[open] .chevron::before {
  content: "\2212";
}

.series-list .series-detail {
  overflow: hidden;
  max-height: 0;
  padding: 0 1.2rem;
  border-top: 0 solid var(--border);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.series-list details[open] .series-detail {
  max-height: 600px;
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--border);
}

.series-list .series-detail p {
  margin-top: 1rem;
  color: var(--muted);
}

.series-list .series-detail .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Process steps */

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

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.6rem;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--lime);
  color: var(--bg-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
}

.step-list h3 {
  margin-bottom: 0.2rem;
  color: var(--ink);
}

/* Contact card */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-card dl {
  margin: 1.2rem 0 0;
}

.contact-card dt {
  font-weight: 700;
  color: var(--lime);
  margin-top: 1rem;
}

.contact-card dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

form.enquiry {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

form.enquiry label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

form.enquiry input,
form.enquiry textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

form.enquiry input:focus,
form.enquiry textarea:focus {
  outline: none;
  border-color: var(--lime);
}

form.enquiry textarea {
  min-height: 130px;
  resize: vertical;
}

form.enquiry .btn-row {
  margin-top: 0;
}

/* Resource hub */

.resource-jump-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 1.1rem 0;
}

.resource-jump {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .resource-jump {
    grid-template-columns: repeat(4, 1fr);
  }
}

.resource-jump a {
  display: block;
  text-align: center;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.resource-jump a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

@media (min-width: 700px) {
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-body .resource-card {
  margin-bottom: 1.2rem;
}

.text-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
}

.resource-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.resource-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.resource-head h3 {
  margin-bottom: 0;
}

.resource-favicon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--bg-deep);
  flex-shrink: 0;
  object-fit: contain;
  padding: 3px;
}

.resource-icon-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--lime-tint);
  color: var(--lime);
  flex-shrink: 0;
}

.resource-icon-glyph svg {
  width: 13px;
  height: 13px;
}

.resource-card p {
  margin-bottom: 0.8rem;
}

.resource-card a.card-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.resource-card a.card-link:hover {
  transform: translateX(4px);
}

/* Blog: Medium-inspired reading layout */

.blog-hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg-deep);
}

.blog-hero .container {
  max-width: 780px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

@media (min-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr 230px;
    align-items: start;
  }
}

.blog-main {
  min-width: 0;
}

.feed-month-heading {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.feed-month-heading:first-child {
  padding-top: 0;
  border-top: none;
}

.blog-layout > aside {
  display: grid;
  gap: 1.5rem;
}

.blog-archive {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

@media (min-width: 900px) {
  .blog-layout > aside {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

.blog-archive h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.archive-year {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-year + .archive-year {
  margin-top: 1rem;
}

.archive-year-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.archive-months {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
}

.archive-months li {
  margin-bottom: 0.3rem;
}

.archive-months a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.archive-months a:hover {
  color: var(--lime);
}

.feed-item {
  padding: 1.8rem 0;
  border-bottom: 1px dashed var(--border);
}

.feed-item:first-child {
  padding-top: 0;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.3rem, 4vw, 1.55rem);
}

.feed-item h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.feed-item h2 a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.feed-excerpt {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.byline-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lime-tint);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
}

.feed-byline {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.86rem;
  color: var(--muted);
}

.feed-byline .byline-name {
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
}

/* Blog search and category filter */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-search {
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.blog-search input[type="search"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.blog-search input[type="search"]:focus {
  outline: none;
  border-color: var(--lime);
}

.blog-search-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.blog-cat-btn {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-cat-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.blog-cat-btn.is-active {
  background: var(--lime-tint);
  border-color: var(--lime);
  color: var(--lime);
}

.blog-search-status {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-no-results {
  color: var(--muted);
  font-style: italic;
}

/* Post page */

.post-hero {
  padding: 3rem 0 0;
}

.post-hero .container {
  max-width: 700px;
}

.post-back {
  display: inline-block;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.post-hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 0;
  margin-bottom: 2.2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-byline .byline-avatar {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}

.post-byline .byline-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.post-byline .byline-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-hero-image {
  margin: 0 0 2.4rem;
  height: clamp(220px, 40vw, 420px);
  border-radius: 14px;
  overflow: hidden;
}

.post-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.post-body h2 {
  margin-top: 2.4rem;
  font-size: 1.5rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.pull-quote {
  border-left: 3px solid var(--lime);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin: 2.2rem 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
}

.post-footer-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 700px;
}

.post-footer-author .byline-avatar {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}

.post-footer-author p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-footer-author strong {
  color: var(--ink);
}

/* Cyber Awareness */

.score-scale {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0 0.4rem;
}

.scale-seg {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.3rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.scale-seg.is-active {
  background: var(--lime-tint);
  border-color: var(--lime);
  color: var(--lime);
}

.score-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin: 0.9rem 0;
}

.score-line .band {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--lime);
}

.score-line .band-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.note-preview {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0;
  display: grid;
  gap: 0.6rem;
}

.note-preview li {
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.note-preview li:first-child {
  border-top: none;
  padding-top: 0;
}

.note-preview .note-when {
  color: var(--lime);
  font-weight: 700;
  margin-right: 0.3rem;
}

/* Safety panel */

.safety-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  padding: 1.8rem;
  margin-top: 2rem;
}

.safety-numbers {
  display: grid;
  gap: 1.1rem;
  margin: 1.2rem 0 0.4rem;
  padding: 0;
}

@media (min-width: 700px) {
  .safety-numbers {
    grid-template-columns: 1fr 1fr;
  }
}

.safety-numbers dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.safety-numbers dd {
  margin: 0.2rem 0 0;
}

.safety-numbers dd a {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-block h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 0 0 0.6rem;
}

.footer-block p {
  margin: 0 0 0.3rem;
}

.footer-block .footer-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--lime);
}

/* Texture and glow (Aura-inspired polish) */

.grid-texture {
  position: relative;
  overflow: hidden;
}

.grid-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.grid-texture::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 900px;
  max-width: 140vw;
  height: 700px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.07), transparent 70%);
  pointer-events: none;
  animation: glow-drift 24s ease-in-out infinite;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-46%, 2%) scale(1.05); }
}

.grid-texture .container {
  position: relative;
}

/* Convergence graphic */

.convergence-section {
  text-align: center;
}

.convergence-section h2 {
  margin-left: auto;
  margin-right: auto;
}

.convergence-section .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Cyber fact widget */

.fact-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin-top: 1.5rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.fact-widget h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.fact-widget blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  flex-grow: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fact-widget .fact-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.fact-widget .fact-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.fact-widget .fact-dots span.is-active {
  background: var(--lime);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

