:root {
  --ink: #201a16;
  --muted: #695f59;
  --charcoal: #171310;
  --paper: #fbf7ef;
  --panel: #ffffff;
  --line: #e4ded2;
  --accent: #2f6f61;
  --accent-dark: #1f5046;
  --gold: #d6a35f;
  --clay: #b86643;
  --cream: #fffaf1;
  --mint: #eef7f3;
  --shadow: 0 14px 38px rgba(54, 42, 32, 0.1);
  --deep-shadow: 0 22px 60px rgba(23, 19, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.88);
  border-bottom: 1px solid rgba(32, 26, 22, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  color: transparent;
  background: url("assets/beandial-mark.svg") center / contain no-repeat;
  border-radius: 10px;
  font-size: 0;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-header nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.related-links a:hover,
.content-grid a:hover {
  color: var(--accent-dark);
}

.hero {
  min-height: min(720px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 12, 9, 0.88), rgba(16, 12, 9, 0.62), rgba(16, 12, 9, 0.24)),
    linear-gradient(0deg, rgba(16, 12, 9, 0.46), rgba(16, 12, 9, 0.04)),
    url("https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c397;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button.primary,
button {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button.small {
  min-height: 38px;
  padding-inline: 14px;
  color: var(--accent-dark);
  border-color: var(--line);
  background: #fff;
  font-size: 0.88rem;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary:hover,
button:hover {
  background: var(--accent-dark);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button.small:hover {
  border-color: rgba(47, 111, 97, 0.36);
  color: #fff;
  background: var(--accent-dark);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 22px clamp(18px, 4vw, 48px);
  background: var(--cream);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(52px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(22px, 5vw, 56px);
  align-items: end;
  margin-bottom: 30px;
}

.section-intro .section-heading {
  margin-bottom: 0;
}

.section-image {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(32, 26, 22, 0.12);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.surface {
  background: #efe8dc;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(32, 26, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.76), rgba(238, 232, 220, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(214, 163, 95, 0.26), transparent 32%);
}

.tool-panel,
.gear-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-panel {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
}

.tool-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.instrument-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(32, 26, 22, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 241, 0.98));
  box-shadow: var(--deep-shadow);
}

.instrument-card.wide {
  grid-template-columns: 156px minmax(0, 1fr);
}

.instrument-card .calculator {
  grid-column: 1 / -1;
}

.instrument-visual {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 1px solid rgba(32, 26, 22, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255, 250, 241, 0.96) 0 42%, rgba(238, 247, 243, 0.96) 43% 66%, rgba(31, 80, 70, 0.96) 67%),
    #fffdf8;
  box-shadow: inset 0 12px 24px rgba(23, 19, 16, 0.1);
}

.instrument-ring {
  position: relative;
  width: 86px;
  height: 86px;
  border: 9px solid rgba(47, 111, 97, 0.18);
  border-top-color: var(--gold);
  border-right-color: var(--accent);
  border-radius: 999px;
}

.instrument-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: var(--clay);
  transform: translateX(-50%) rotate(38deg);
  transform-origin: bottom center;
}

.cold-card .instrument-needle {
  transform: translateX(-50%) rotate(-25deg);
}

.grind-card .instrument-needle {
  transform: translateX(-50%) rotate(78deg);
}

.instrument-label {
  position: absolute;
  bottom: 16px;
  color: #fffaf1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-panel.wide {
  grid-column: 1 / -1;
}

.panel-heading p,
.gear-card p,
.guide-list p,
.email-band p,
.site-footer p {
  color: var(--muted);
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.calculator {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(32, 26, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-form button {
  width: fit-content;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffdf8;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 97, 0.16);
  border-color: var(--accent);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.input-row span {
  color: var(--muted);
}

.result {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(214, 163, 95, 0.38);
  border-radius: 8px;
  color: #fffaf1;
  background:
    linear-gradient(135deg, rgba(23, 19, 16, 0.96), rgba(31, 80, 70, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(23, 19, 16, 0.12);
}

.result-label,
.result-note,
.result-chip {
  display: block;
}

.result-label {
  color: #f0c397;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-metric {
  display: block;
  color: #fffaf1;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
}

.result-note {
  color: rgba(255, 250, 241, 0.9);
  font-size: 0.98rem;
  font-weight: 700;
}

.result-chip {
  width: fit-content;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 750;
}

.grind-form {
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: end;
}

.grind-result {
  min-height: 112px;
}

.affiliate-note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 111, 97, 0.22);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #eef7f3;
  font-size: 0.95rem;
}

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

.gear-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gear-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--deep-shadow);
}

.gear-card img {
  height: 210px;
  object-fit: cover;
}

.gear-card div {
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.guide-list article,
.guide-list a {
  min-height: 230px;
  padding: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.guide-list span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--clay);
  font-weight: 900;
}

.section-cta {
  margin-top: 22px;
}

.email-band {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(31, 80, 70, 0.96), rgba(31, 80, 70, 0.9)),
    url("https://images.unsplash.com/photo-1498804103079-a6351b050096?auto=format&fit=crop&w=1600&q=82") center / cover;
  color: #fff;
}

.email-band .eyebrow {
  color: #f0c397;
}

.email-band p {
  color: rgba(255, 255, 255, 0.78);
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-form input {
  border-color: rgba(255, 255, 255, 0.3);
}

.email-band > .button {
  justify-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: #171310;
  color: #fff;
}

.site-footer p {
  margin-bottom: 0;
}

.article-page {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.article-shell {
  max-width: 880px;
  margin: 0 auto;
}

.article-shell h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.7rem);
}

.article-shell h2 {
  margin-top: 40px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.article-shell table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.article-shell th {
  color: var(--accent-dark);
  background: #eef7f3;
  font-size: 0.9rem;
}

.article-shell tr:last-child td {
  border-bottom: 0;
}

.article-shell ol,
.article-shell ul {
  padding-left: 1.25rem;
}

.article-shell li + li {
  margin-top: 8px;
}

.ad-slot,
.product-callout,
.gear-section {
  scroll-margin-top: 96px;
  margin: 34px 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gear-section-image {
  aspect-ratio: 16 / 7;
  margin: -24px -24px 22px;
  width: calc(100% + 48px);
  max-width: none;
  object-fit: cover;
}

.ad-slot {
  display: grid;
  min-height: 92px;
  align-content: center;
  color: var(--accent-dark);
  background: #eef7f3;
  font-size: 0.92rem;
  font-weight: 750;
}

.product-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(47, 111, 97, 0.24);
  background: #eef7f3;
}

.product-callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.choice-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(47, 111, 97, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffdf8, #fffaf1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

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

.score-pill {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #eef7f3;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-top: 0;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #eef7f3;
}

.related-links,
.content-grid {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.guide-group {
  margin-top: 38px;
}

.guide-group h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.guide-group .content-grid {
  margin-top: 14px;
}

.faq-section {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-section summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 850;
}

.faq-section details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.related-links a,
.content-grid a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.gear-section h2 {
  margin-top: 0;
}

.printable-body {
  background: #fff;
}

.printable-sheet {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  color: var(--ink);
  background: #fff;
}

.printable-sheet h1 {
  font-size: 3.2rem;
}

.printable-sheet h2 {
  margin-top: 26px;
  font-size: 1.45rem;
}

.printable-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.printable-sheet th,
.printable-sheet td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.printable-sheet th {
  background: #eef7f3;
}

@media print {
  .printable-sheet {
    padding: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .section-intro,
  .trust-strip,
  .tool-grid,
  .gear-grid,
  .guide-list,
  .email-band,
  .choice-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .grind-form {
    grid-template-columns: 1fr;
  }

  .instrument-card,
  .instrument-card.wide {
    grid-template-columns: 1fr;
  }

  .instrument-visual {
    min-height: 120px;
  }

  .gear-card {
    grid-template-rows: 240px 1fr;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 150px;
  }

  .section,
  .gear-section {
    scroll-margin-top: 150px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 650px;
    background-position: center;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .email-band > .button {
    justify-self: stretch;
  }

  .article-shell table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

  .gear-section-image {
    margin: -16px -16px 20px;
    width: calc(100% + 32px);
  }
}
