@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #14100b;
  --bg-soft: #1b160f;
  --surface: #211b14;
  --surface-strong: #2c241a;
  --surface-soft: rgba(27, 21, 14, 0.9);
  --ink: #f6efe6;
  --muted: #c8b9a2;
  --accent: #d6a85a;
  --accent-strong: #b88435;
  --accent-warm: #f0c27a;
  --accent-forest: #7b8a4f;
  --edge: rgba(214, 168, 90, 0.18);
  --edge-strong: rgba(214, 168, 90, 0.45);
  --shadow: 0 24px 60px rgba(8, 6, 3, 0.55);
  --glow: 0 0 0 1px rgba(214, 168, 90, 0.2),
    0 0 32px rgba(123, 138, 79, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

.calc-zone {
  --bg: #15110d;
  --bg-soft: #1d1712;
  --surface: #221c16;
  --surface-strong: #2a231b;
  --surface-soft: rgba(24, 19, 14, 0.9);
  --ink: #f4eee5;
  --muted: #c8b8a2;
  --accent: #f2a54d;
  --accent-strong: #d67625;
  --accent-warm: #f5c77d;
  --accent-forest: #8a9a59;
  --edge: rgba(242, 165, 77, 0.22);
  --edge-strong: rgba(242, 165, 77, 0.45);
  --shadow: 0 22px 48px rgba(8, 6, 4, 0.5);
  --glow: 0 0 0 1px rgba(242, 165, 77, 0.2),
    0 0 28px rgba(214, 118, 37, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
      880px circle at 12% -12%,
      rgba(214, 168, 90, 0.24),
      transparent 55%
    ),
    radial-gradient(
      1100px circle at 92% 8%,
      rgba(123, 138, 79, 0.26),
      transparent 60%
    ),
    var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  z-index: -1;
}

.page::before {
  background: radial-gradient(circle, rgba(214, 168, 90, 0.32), transparent 65%);
  top: -220px;
  left: -180px;
}

.page::after {
  background: radial-gradient(circle, rgba(123, 138, 79, 0.28), transparent 65%);
  top: 200px;
  right: -220px;
}

.hero {
  padding: 36px 6vw 72px;
  background: linear-gradient(
    160deg,
    rgba(24, 19, 13, 0.98) 0%,
    rgba(32, 26, 18, 0.94) 58%,
    rgba(18, 14, 10, 0.96) 100%
  );
  border-bottom: 1px solid var(--edge-strong);
  position: relative;
  overflow: hidden;
}

.hero.hero-compact {
  padding: 28px 6vw 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px circle at 15% 20%,
    rgba(214, 168, 90, 0.2),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 9px
    );
  opacity: 0.4;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  background: rgba(19, 15, 10, 0.78);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 2;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(214, 168, 90, 0.7),
    rgba(123, 138, 79, 0.5),
    rgba(214, 168, 90, 0.7)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: -28px 0 28px;
  padding: 0 12px;
}

.breadcrumbs a {
  color: var(--accent-warm);
  font-weight: 600;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.crumb-separator {
  color: var(--muted);
}

.crumb-current {
  color: var(--ink);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  background: linear-gradient(135deg, #d6a85a, #7b8a4f);
  color: #fff;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: "Cinzel", serif;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 90, 0.2);
  background: rgba(17, 13, 9, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: rgba(214, 168, 90, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(214, 168, 90, 0.2);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-content.has-aside {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: var(--shadow);
  min-height: 220px;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 13, 9, 0.15) 0%,
    rgba(17, 13, 9, 0.65) 80%
  );
}

.hero-copy h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  margin: 0 0 16px;
  color: var(--ink);
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.accent {
  color: var(--accent);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta p {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.button {
  border: 1px solid var(--edge-strong);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(19, 15, 10, 0.75);
  color: var(--ink);
}

.button.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.button.primary {
  background: linear-gradient(135deg, #d6a85a, #b88435);
  color: #1b1208;
  box-shadow: var(--glow);
  border-color: rgba(214, 168, 90, 0.6);
}

.button.ghost {
  background: rgba(123, 138, 79, 0.12);
  color: var(--accent-forest);
  border-color: rgba(123, 138, 79, 0.6);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.calc-zone .button {
  background: rgba(19, 15, 11, 0.85);
  border-color: var(--edge);
}

.calc-zone .button.primary {
  background: linear-gradient(135deg, #f2a54d, #d67625);
  color: #1b1208;
  border-color: rgba(242, 165, 77, 0.6);
  box-shadow: var(--glow);
}

.calc-zone .button.ghost {
  background: rgba(242, 165, 77, 0.08);
  color: var(--accent-warm);
  border-color: rgba(242, 165, 77, 0.45);
}

.hero-panel {
  background: rgba(24, 19, 13, 0.7);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section .hero-panel {
  margin-top: 22px;
}

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

.panel-card {
  background: linear-gradient(
    160deg,
    rgba(34, 28, 20, 0.96),
    rgba(24, 19, 13, 0.92)
  );
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--edge);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.panel-thumb {
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--edge);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.panel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 45%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 10px
    );
  opacity: 0.35;
}

.tone-forest {
  background: linear-gradient(135deg, #47623c, #1f2016);
}

.tone-ember {
  background: linear-gradient(135deg, #7a4429, #2a2016);
}

.tone-steel {
  background: linear-gradient(135deg, #5b5346, #2a231a);
}

.tone-aurora {
  background: linear-gradient(135deg, #6f6a43, #242218);
}

.panel-card h3 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: var(--accent-warm);
}

.panel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  padding: 48px 6vw 80px;
  display: grid;
  gap: 48px;
  max-width: 1220px;
  margin: 0 auto;
}

.section {
  display: grid;
  gap: 20px;
}

.section.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 18, 12, 0.82);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.section.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(214, 168, 90, 0.45),
    rgba(123, 138, 79, 0.4),
    rgba(214, 168, 90, 0.35)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.section.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px circle at 10% 0%,
      rgba(214, 168, 90, 0.16),
      transparent 55%
    ),
    radial-gradient(
      500px circle at 90% 20%,
      rgba(123, 138, 79, 0.14),
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
}

.calc-zone.section.panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge-strong);
  background: linear-gradient(
    160deg,
    rgba(27, 21, 16, 0.95),
    rgba(18, 14, 11, 0.96)
  );
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
}

.calc-zone .section-head h2 {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calc-zone .section-head h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 10px rgba(242, 165, 77, 0.55);
}

.calc-zone .section-head p {
  font-size: 0.9rem;
}

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.calc-shell > * {
  min-width: 0;
}

.calc-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hero-tool .calc-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.calc-zone label {
  font-size: 0.8rem;
}

.calc-zone input,
.calc-zone select {
  font-size: 0.9rem;
  background: rgba(16, 13, 10, 0.92);
  color: var(--ink);
  border: 1px solid rgba(242, 165, 77, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-zone input:focus,
.calc-zone select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 165, 77, 0.2);
}

.calc-zone .longform-copy p {
  font-size: 0.92rem;
}

.calc-zone .button {
  font-size: 0.85rem;
  padding: 10px 16px;
}

.calc-zone .meta-text {
  font-size: 0.85rem;
}

.calc-zone .hint {
  font-size: 0.85rem;
}

.hero-tool .section-head h2 {
  font-size: 1.2rem;
}

.hero-tool .section-head p {
  font-size: 0.85rem;
}

.calc-zone.section.panel::before {
  content: none;
}

.calc-zone.section.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px circle at 10% 0%,
      rgba(242, 165, 77, 0.14),
      transparent 55%
    ),
    radial-gradient(
      500px circle at 90% 20%,
      rgba(138, 154, 89, 0.12),
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
}

.section.panel > * {
  position: relative;
  z-index: 1;
}

.section.longform {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  color: var(--accent-warm);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.longform-copy {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.longform-copy p {
  margin: 0;
  color: var(--muted);
  background: rgba(28, 22, 14, 0.75);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.section-media {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: var(--shadow);
  background: rgba(17, 13, 9, 0.7);
}

.section-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.section-media.tall img {
  height: 440px;
}

.section-media.compact img {
  height: 340px;
}

.calc-zone .longform-copy p {
  background: rgba(22, 18, 14, 0.78);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--edge);
  background: rgba(17, 13, 9, 0.65);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(17, 13, 9, 0.05) 0%,
    rgba(17, 13, 9, 0.6) 100%
  );
  opacity: 0.5;
  pointer-events: none;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.feature-card {
  background: var(--surface-strong);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: var(--accent-warm);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

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

.step-card {
  background: var(--surface-strong);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  color: var(--accent-warm);
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.faq-card {
  background: var(--surface-strong);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.step-card:hover,
.faq-card:hover,
.blog-card:hover,
.recommended-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.faq-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--accent-warm);
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

.cta {
  margin-top: 12px;
}

.cta-card {
  background: linear-gradient(
    135deg,
    rgba(32, 26, 18, 0.95) 0%,
    rgba(21, 17, 12, 0.95) 100%
  );
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--accent-warm);
}

.cta-card p {
  margin: 0;
  color: var(--muted);
}

.calc-card {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
  background: linear-gradient(
    140deg,
    rgba(26, 21, 16, 0.98),
    rgba(18, 14, 11, 0.95)
  );
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(242, 165, 77, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 32px rgba(8, 6, 4, 0.45);
  min-width: 0;
  overflow: hidden;
}

.hero-tool .calc-card {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full-span {
  grid-column: 1 / -1;
  align-items: start;
}

.full-span-button {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.is-hidden {
  display: none;
}

.meta-text {
  font-size: 0.9rem;
  margin-top: -8px;
  color: var(--muted);
}

.hint {
  font-size: 0.9rem;
  margin: 0;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(214, 168, 90, 0.5);
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(245, 242, 236, 0.95);
  color: #221a12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  width: 100%;
}

.results {
  background: rgba(15, 12, 9, 0.88);
  border: 1px solid rgba(242, 165, 77, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  min-height: 120px;
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 28px rgba(8, 6, 4, 0.35);
  min-width: 0;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(242, 165, 77, 0.25);
  background: rgba(24, 19, 14, 0.65);
}

.result-item:last-child {
  border-bottom: 1px solid rgba(242, 165, 77, 0.25);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  min-width: 0;
}

.item-card {
  background: rgba(20, 16, 12, 0.85);
  border: 1px solid rgba(242, 165, 77, 0.35);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(8, 6, 4, 0.4);
}

.item-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(12, 10, 8, 0.8);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.item-icon.large {
  width: 78px;
  height: 78px;
}

.item-icon.small {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.item-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.item-selected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 165, 77, 0.35);
  background: rgba(17, 13, 10, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-selected.is-hidden {
  display: none;
}

.item-selected-name {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: none;
}

.item-selected-clear {
  border: 1px solid rgba(242, 165, 77, 0.35);
  background: transparent;
  color: var(--accent-warm);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.item-selected-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.item-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 12px;
  padding-right: 6px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 165, 77, 0.55) transparent;
  min-width: 0;
}

.item-picker-grid.compact {
  max-height: 260px;
  grid-auto-rows: 96px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-picker-grid::-webkit-scrollbar {
  width: 8px;
}

.item-picker-grid::-webkit-scrollbar-track {
  background: rgba(17, 13, 10, 0.6);
  border-radius: 999px;
}

.item-picker-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242, 165, 77, 0.7), rgba(214, 118, 37, 0.8));
  border-radius: 999px;
}

.item-picker-card {
  appearance: none;
  font-family: inherit;
  border: 1px solid rgba(242, 165, 77, 0.25);
  background: rgba(17, 13, 10, 0.88);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-items: center;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.item-picker-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 20px rgba(8, 6, 4, 0.35);
}

.item-picker-card.is-active {
  border-color: var(--accent);
  background: linear-gradient(
    140deg,
    rgba(36, 28, 20, 0.96),
    rgba(20, 16, 12, 0.96)
  );
  box-shadow: 0 0 0 1px rgba(242, 165, 77, 0.25),
    0 16px 26px rgba(8, 6, 4, 0.45);
}

.item-picker-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.4em;
  overflow: hidden;
}

.item-picker-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.item-picker-count {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-picker-pagination .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.item-fallback {
  font-weight: 700;
  color: var(--accent-warm);
  display: none;
}

.item-icon.is-placeholder {
  border-color: rgba(242, 165, 77, 0.45);
  background: rgba(12, 10, 8, 0.85);
}

.item-icon.is-placeholder img {
  filter: saturate(0.9) drop-shadow(0 0 6px rgba(242, 165, 77, 0.25));
}

.item-icon.missing .item-fallback {
  display: inline;
}

.item-name {
  font-size: 0.9rem;
  color: var(--ink);
}

.item-qty {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-warm);
}

.output-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(
    135deg,
    rgba(24, 19, 14, 0.95),
    rgba(17, 13, 10, 0.95)
  );
  border: 1px solid rgba(242, 165, 77, 0.4);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 24px rgba(8, 6, 4, 0.35);
}

.output-meta {
  display: grid;
  gap: 4px;
}

.output-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.output-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.output-qty {
  font-size: 0.95rem;
  color: var(--accent-warm);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.drop-grid {
  display: grid;
  gap: 14px;
}

.drop-card {
  background: rgba(20, 16, 12, 0.88);
  border: 1px solid rgba(242, 165, 77, 0.35);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drop-item-info {
  display: grid;
  gap: 4px;
}

.drop-expected {
  font-size: 0.85rem;
  color: var(--muted);
}

.drop-expected .expected {
  font-weight: 700;
  color: var(--accent-warm);
}

.drop-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.drop-inputs label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.filter-chips .chip {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.chip {
  border: 1px solid rgba(242, 165, 77, 0.3);
  background: rgba(17, 13, 10, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chip.is-active {
  border-color: var(--accent);
  color: var(--accent-warm);
  background: rgba(242, 165, 77, 0.12);
}

.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.gear-grid {
  display: grid;
  gap: 16px;
}

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

.gear-card {
  background: rgba(20, 16, 12, 0.88);
  border: 1px solid rgba(242, 165, 77, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.gear-card h4 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
}

.gear-table {
  width: 100%;
  border-collapse: collapse;
}

.gear-table th,
.gear-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(242, 165, 77, 0.2);
  font-size: 0.95rem;
}

.gear-table th {
  color: var(--muted);
  font-weight: 600;
}

.diff-positive {
  color: #8ab76a;
  font-weight: 600;
}

.diff-negative {
  color: #d16a4a;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(20, 16, 12, 0.88);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(242, 165, 77, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.notice {
  margin-top: 12px;
  background: rgba(243, 178, 95, 0.12);
  border: 1px solid rgba(243, 178, 95, 0.5);
  color: #f0c27a;
  border-radius: var(--radius-md);
  padding: 12px;
}

.footer {
  padding: 48px 6vw 40px;
  text-align: left;
  color: var(--muted);
  border-top: 1px solid var(--edge);
  background: rgba(17, 13, 9, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col {
  display: grid;
  gap: 8px;
}

.footer-col h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--accent-warm);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--edge);
  padding-top: 16px;
  font-size: 0.85rem;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 15, 10, 0.75);
  border: 1px solid var(--edge);
}

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

.blog-gallery {
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.blog-card {
  background: var(--surface-strong);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow);
}

.blog-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--accent-warm);
  font-size: 1.2rem;
}

.blog-card h3 a {
  color: inherit;
}

.blog-excerpt {
  margin: 0;
  color: var(--muted);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(19, 15, 10, 0.75);
  border: 1px solid var(--edge);
  color: var(--muted);
}

.blog-empty {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--muted);
  background: rgba(19, 15, 10, 0.75);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.page-link.is-active {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.page-link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 6vw 80px;
}

.post {
  gap: 24px;
}

.post-content {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.post-content p {
  margin: 0;
  background: rgba(26, 20, 14, 0.7);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 14px;
}

.post-content ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.post-content li {
  background: rgba(26, 20, 14, 0.7);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 12px;
}

.post-content h2,
.post-content h3 {
  margin: 18px 0 0;
  font-family: "Cinzel", serif;
  color: var(--accent-warm);
}

.post-cover,
.post-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: var(--shadow);
}

.post-cover img,
.post-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.post-figure img {
  height: 240px;
}

.post-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.toc-panel h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  color: var(--accent-warm);
}

.toc {
  display: grid;
  gap: 10px;
}

.toc-link {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.toc-link.is-sub {
  font-size: 0.85rem;
  padding-left: 14px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(17, 13, 9, 0.7);
  z-index: 100;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d6a85a, #7b8a4f);
  box-shadow: 0 0 12px rgba(214, 168, 90, 0.45);
}

.recommended {
  display: grid;
  gap: 16px;
}

.recommended-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.recommended-card {
  background: rgba(26, 20, 14, 0.8);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.recommended-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--accent-warm);
}

.recommended-card h3 a {
  color: inherit;
}

.recommended-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.recommended-excerpt {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .section-head {
    flex-direction: column;
  }

  .calc-shell {
    grid-template-columns: 1fr;
  }

  .hero-tool .calc-shell {
    grid-template-columns: 1fr;
  }

  .item-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 420px;
  }

  .item-picker-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    gap: 16px;
    padding: 10px 12px;
    margin-bottom: 32px;
  }

  .brand-text {
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.85rem;
  }

  .nav-links a {
    padding: 6px 10px;
  }

  .breadcrumbs {
    margin: -20px 0 22px;
    padding: 0 8px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .button {
    width: 100%;
  }

  .section.panel {
    padding: 22px;
  }

  .calc-zone.section.panel {
    padding: 20px;
  }

  .calc-card,
  .results {
    padding: 16px;
  }

  .output-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .drop-inputs {
    grid-template-columns: 1fr;
  }

  .gear-table th,
  .gear-table td {
    font-size: 0.85rem;
  }

  .item-picker-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 40px 6vw 32px;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 6vw 48px;
  }

  .hero-media {
    min-height: 180px;
  }

  .section-media img {
    height: 240px;
  }

  .section-media.tall img {
    height: 280px;
  }

  .section-media.compact img {
    height: 240px;
  }

  .post-cover img {
    height: 220px;
  }

  .post-figure img {
    height: 180px;
  }

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

  .gear-meta {
    grid-template-columns: 1fr;
  }

  .item-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 440px;
  }

  .item-picker-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 22px 5vw 38px;
  }

  .hero.hero-compact {
    padding: 20px 5vw 32px;
  }

  main {
    padding: 32px 5vw 56px;
    gap: 32px;
  }

  .section {
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .hero-copy .lead {
    font-size: 0.98rem;
  }

  .button {
    padding: 10px 14px;
  }

  .nav {
    border-radius: 16px;
  }

  .nav-links {
    font-size: 0.78rem;
  }

  .breadcrumbs {
    font-size: 0.72rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .section-head p {
    font-size: 0.95rem;
  }

  .longform-copy {
    grid-template-columns: 1fr;
  }

  .longform-copy p {
    padding: 12px;
  }

  .section-media img {
    height: 200px;
  }

  .section-media.tall img {
    height: 220px;
  }

  .section-media.compact img {
    height: 200px;
  }

  .post-cover img {
    height: 200px;
  }

  .post-figure img {
    height: 160px;
  }

  .panel-card h3 {
    font-size: 1rem;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-card {
    padding: 10px;
  }

  .item-icon {
    width: 52px;
    height: 52px;
  }

  .item-icon.large {
    width: 60px;
    height: 60px;
  }

  .item-picker-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-picker-grid {
    grid-auto-rows: 92px;
    gap: 10px;
    max-height: 420px;
  }

  .item-picker-grid.compact {
    grid-auto-rows: 84px;
    max-height: 300px;
  }

  .item-picker-card {
    padding: 8px;
  }

  .item-picker-name {
    font-size: 0.78rem;
    min-height: 2.2em;
  }

  .item-picker-count {
    font-size: 0.75rem;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .footer-grid {
    gap: 16px;
  }

  .footer-bottom {
    gap: 8px;
  }
}
