/* ==========================================================
   CanClamp brand stylesheet
   Color: kraft + charcoal, the same palette as the box
   ========================================================== */

:root {
  --ink:        #2A2622;
  --ink-soft:   #4A433D;
  --kraft:      #D9BB8E;
  --kraft-deep: #C8A876;
  --kraft-pale: #F1E2C7;
  --paper:      #FAF6EE;
  --line:       rgba(42, 38, 34, 0.18);
  --accent:     #C2410C;
  --max:        1080px;
  --radius:     6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--ink); }

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

h1, h2, h3 {
  font-family: 'Rockwell', 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0.5em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7em;
}

/* -------------------- Header -------------------- */
.site-header {
  background: var(--ink);
  color: var(--kraft-pale);
  border-bottom: 4px solid var(--kraft-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  color: var(--kraft);
  font-family: 'Rockwell', 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.logo-rule {
  width: 100%;
  height: 2px;
  background: var(--kraft);
  display: block;
}
.site-nav a {
  border: none;
  color: var(--kraft-pale);
  margin-left: 22px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
}
.site-nav a.active,
.site-nav a:hover {
  border-bottom: 2px solid var(--kraft);
  color: #fff;
}

/* -------------------- Hero -------------------- */
.hero {
  background: linear-gradient(180deg, var(--kraft-pale) 0%, var(--paper) 100%);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 1.6em;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* -------------------- Hero illustration -------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* -------------------- Detail illustrations -------------------- */
.base-detail {
  display: flex;
  justify-content: center;
  margin: 24px 0 36px;
}
.detail-image {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.step-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* -------------------- Features -------------------- */
.features { padding: 72px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.feature-card {
  background: #fff;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--kraft);
  font-family: 'Rockwell', serif;
  font-weight: 700;
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* -------------------- Callout -------------------- */
.callout {
  background: var(--ink);
  color: var(--kraft-pale);
  padding: 56px 0;
  text-align: center;
}
.callout blockquote {
  margin: 0;
  font-family: 'Rockwell', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--kraft);
  max-width: 26em;
  margin: 0 auto;
}

/* -------------------- Contact -------------------- */
.contact { padding: 72px 0; background: var(--kraft-pale); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.contact-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 1.05rem;
}
.contact-list li { margin-bottom: 8px; }

/* -------------------- Instructions page -------------------- */
.instructions-hero {
  background: var(--kraft-pale);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.instructions-hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38em;
}

.step-section { padding: 56px 0; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stepc;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--kraft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rockwell', serif;
  font-weight: 700; font-size: 1.15rem;
}
.step-body h2 { margin-top: 0; font-size: 1.4rem; }
.step-body p  { color: var(--ink-soft); }

.callout-box {
  background: var(--kraft-pale);
  border-left: 4px solid var(--kraft-deep);
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 12px !important;
}
.warning-box {
  background: #FFF1EC;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 12px !important;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.mode-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.mode-card h3 { margin-top: 0; font-size: 1rem; color: var(--accent); letter-spacing: 0.04em; }
.mode-card p  { font-size: 0.94rem; color: var(--ink-soft); }
.mode-use { font-size: 0.86rem !important; color: var(--ink) !important; margin-top: 12px !important; }

/* -------------------- FAQ -------------------- */
.faq { background: #fff; padding: 64px 0; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: var(--kraft-pale);
  padding: 28px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tagline-foot {
  font-style: italic;
  color: var(--kraft);
  margin: 0;
}
.site-footer p { margin: 0; }

/* -------------------- Responsive -------------------- */
@media (max-width: 800px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual   { order: -1; }
  .feature-grid  { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .mode-grid     { grid-template-columns: 1fr; }
  .header-inner  { flex-direction: column; gap: 14px; }
  .step          { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-num      { width: 40px; height: 40px; font-size: 1rem; }
}
