:root {
  --ink: #141413;
  --cream: #faf9f5;
  --coral: #d97757;
  --coral-deep: #bd5f3e;
  --bg-alt: #f1efe6;
  --surface: #fff;
  --text: #1c1b18;
  --text-2: #57554d;
  --text-3: #8a877e;
  --border: #e6e3d9;
  --shadow: 0 16px 36px rgba(20, 20, 19, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, .brand, .prompt-text {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 12vw, 4.85rem);
  line-height: .98;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 3.35rem);
  line-height: 1.06;
}
h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1.2;
}
p { margin-bottom: 18px; }
.wrap {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
}
.skip-link:focus { transform: translateY(0); }
.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(230, 227, 217, .85);
  background: rgba(250, 249, 245, .88);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
  font-size: 1.13rem;
  line-height: 1;
  white-space: nowrap;
}
.brand-dot { color: var(--coral-deep); }
.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-ecomrads { display: none !important; }
.nav-user { min-height: 44px; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--coral-deep);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero {
  padding: 64px 0 50px;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--text-2);
  font-size: clamp(1.03rem, 4.4vw, 1.22rem);
}
.hero-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
}
.hero-note a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--coral-deep);
  text-underline-offset: 3px;
}
.hero-art {
  width: min(100%, 520px);
  margin: 34px auto 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.hero-art img { border-radius: inherit; }
.section { padding: 54px 0; }
.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.section-intro {
  max-width: 730px;
  margin-bottom: 28px;
}
.section-intro p:not(.eyebrow) { color: var(--text-2); }
.lane-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.btn, .copy-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .88; }
.btn:active, .copy-btn:active { transform: scale(.98); }
.btn-secondary {
  border-color: var(--border);
  background: var(--cream);
  color: var(--ink);
}
.btn-tertiary {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.case-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .24s ease;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.case-card:active { transform: translateY(0) scale(.99); }
.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.card-kicker {
  margin-bottom: 10px;
  color: var(--coral-deep);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-card p { color: var(--text-2); font-size: 1rem; }
.card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.card-link::after {
  position: absolute;
  inset: 0;
  content: "";
}
.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin-bottom: 13px;
  border: 1px solid rgba(189, 95, 62, .28);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(217, 119, 87, .09);
  color: var(--coral-deep);
  font-size: .72rem;
  font-weight: 600;
}
.engine-band {
  position: relative;
  overflow: hidden;
  padding: 34px 24px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--cream);
}
.engine-band::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 32px solid var(--coral);
  border-radius: 46% 54% 59% 41%;
  content: "";
  opacity: .76;
  transform: rotate(-13deg);
}
.engine-band > * { position: relative; z-index: 1; min-width: 0; }
.engine-band h2 { max-width: 760px; }
.engine-band p { max-width: 820px; color: #dedbd0; }
.model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.model-list span {
  border: 1px solid rgba(250, 249, 245, .28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .76rem;
}
.engine-band .btn {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--text-3);
  font-size: .82rem;
}
.breadcrumbs a { min-height: 44px; align-content: center; color: var(--text-2); }
.recipe-hero { padding: 34px 0 52px; }
.recipe-hero h1 { font-size: clamp(2.35rem, 11vw, 4.55rem); }
.recipe-summary {
  max-width: 710px;
  color: var(--text-2);
  font-size: clamp(1.03rem, 4.4vw, 1.2rem);
}
.recipe-content { padding: 54px 0; }
.step-list {
  display: grid;
  gap: 18px;
}
.step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.step-head > div { min-width: 0; }
.step-index {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--coral);
  color: var(--ink);
  font-size: .83rem;
  font-weight: 600;
}
.step ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-2);
}
.step li + li { margin-top: 8px; }
.result-card {
  margin-top: 18px;
  padding: 23px;
  border-left: 4px solid var(--coral);
  border-radius: 4px 14px 14px 4px;
  background: var(--bg-alt);
}
.result-card p { margin-bottom: 0; }
.prompt-box {
  margin-top: 34px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.prompt-text {
  margin: 18px 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.08rem, 4.8vw, 1.28rem);
  font-style: italic;
  line-height: 1.5;
  white-space: pre-wrap;
}
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.prompt-actions > * { max-width: 100%; }
.copy-btn {
  cursor: pointer;
  border-color: var(--border);
  background: var(--cream);
  color: var(--ink);
}
.facts-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed rgba(189, 95, 62, .45);
  border-radius: 14px;
}
.facts-panel code {
  display: block;
  margin-top: 9px;
  overflow-wrap: anywhere;
  color: var(--text-2);
  font-size: 1rem;
}
.facts-panel code a {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}
.faq-item p { margin-bottom: 0; color: var(--text-2); }
.footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: var(--cream);
}
.footer-grid {
  display: grid;
  gap: 30px;
}
.footer p { max-width: 520px; color: #bbb8ae; font-size: 1rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-links strong {
  display: block;
  margin-bottom: 8px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #d6d3c9;
  font-size: 1rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream); }
.footer-small {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 249, 245, .13);
  color: #8f8c83;
  font-size: 1rem;
}
.toast {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 16px;
  transform: translateY(20px);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--cream);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
html.js-anim.anim-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}
html.js-anim.anim-ready .reveal {
  transition: opacity .48s ease, transform .48s ease;
}

@media (min-width: 640px) {
  .wrap { width: calc(100% - 48px); }
  .nav-links { gap: 6px; }
  .nav-links a { padding-inline: 13px; font-size: .84rem; }
  .nav-ecomrads { display: inline-flex !important; }
  .hero { padding-top: 78px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-band { padding: 44px; }
  .step, .prompt-box, .faq-item { padding: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
  .toast { right: 24px; left: auto; max-width: 380px; }
}

@media (min-width: 900px) {
  .hero-layout, .recipe-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: 66px;
  }
  .hero-art { margin: 0; }
  .section { padding-block: 82px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipe-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 54px;
  }
  .prompt-box {
    position: sticky;
    top: 86px;
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .wrap { width: 1180px; }
  .hero { padding-top: 92px; }
  .card-grid { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}