/* Silai Studio: terracotta, cream and mustard. Fraunces for headings, Karla for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FBF3E6;
  --surface: #FFFDF8;
  --soft: #F6E6D6;
  --ink: #2B1D14;
  --muted: #6B5444;
  --line: #EAD7C3;
  --line-strong: #D2B79C;
  --brand: #B4532A;
  --brand-hover: #96421F;
  --brand-ink: #FFFFFF;
  --brand-text: #9A4321;
  --mustard: #E2A33B;
  --rose: #F2D4C2;
  --eyebrow: #9A4321;
  --badge-bg: #E2A33B;
  --badge-ink: #2B1D14;
  --out-bg: #2B1D14;
  --out-ink: #FBF3E6;
  --out-accent: #E2A33B;
  --out-btn: #E2A33B;
  --out-btn-ink: #2B1D14;
  --head: "Fraunces", Georgia, serif;
  --body: "Karla", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --btn-radius: 999px;
  --wrap: 1180px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--brand); font-weight: 500; }

/* header: a stitch line under the bar */
.topbar { background: var(--brand); color: #FFF4E8; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 560px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }
.header { background: var(--bg); }
.header::after { content: ""; display: block; height: 0; border-bottom: 2px dashed var(--line-strong); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo span { display: grid; line-height: 1.1; }
.logo b { font: 700 1.4rem var(--head); }
.logo small { font-size: .74rem; color: var(--muted); }
.nav a { font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--rose); color: var(--ink); border-radius: 999px; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; margin: 14px 0 18px; }
.hero h1 em { display: block; }
.hero .t-actions { margin-top: 26px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; padding-top: 22px; border-top: 2px dashed var(--line-strong); }
.hero-facts li { display: grid; }
.hero-facts b { font: 700 1.6rem var(--head); color: var(--brand-text); }
.hero-facts span { color: var(--muted); font-size: .9rem; }
.hero-art { position: relative; padding-bottom: 40px; }
.arch { border-radius: 999px 999px 24px 24px; background: var(--rose); overflow: hidden; aspect-ratio: 4 / 4.2; display: grid; place-items: center; border: 2px solid var(--brand); }
.arch svg { width: 100%; height: auto; }
.slip { position: absolute; right: -6px; bottom: 0; width: min(260px, 70%); padding: 16px 18px; background: #FFFDF8; border: 1.5px solid var(--line-strong); border-radius: 6px; box-shadow: 0 18px 40px -20px rgba(43,29,20,.45); transform: rotate(-3deg); font-size: .9rem; display: grid; gap: 2px; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px; background: radial-gradient(circle at 6px 0, var(--bg) 4px, transparent 5px) 0 0 / 12px 8px repeat-x; }
.slip-no { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.slip-total { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font: 700 1.4rem var(--head); color: var(--brand-text); }
.slip-total span { display: block; font: 600 .8rem var(--body); color: var(--muted); }

/* neck styles strip */
.necks-band { background: var(--surface); border-block: 1px solid var(--line); }
.necks { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .necks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .necks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.necks li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: var(--radius-lg); background: var(--bg); }
.necks svg { width: 100%; max-width: 120px; }
.necks span { font-size: .86rem; color: var(--muted); }

/* tape measure steps */
.steps-band { background: var(--ink); color: #FBF3E6; }
.steps-band .eyebrow { color: var(--mustard); }
.tape-steps { list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; background: var(--mustard); color: var(--ink); border-radius: 8px; position: relative; padding-top: 22px;
  background-image: repeating-linear-gradient(90deg, rgba(43,29,20,.55) 0 2px, transparent 2px 18px), repeating-linear-gradient(90deg, rgba(43,29,20,.55) 0 2px, transparent 2px 90px);
  background-size: 100% 10px, 100% 18px; background-repeat: no-repeat; }
.tape-steps li { counter-increment: t; padding: 18px 20px 22px; border-left: 1px solid rgba(43,29,20,.25); }
.tape-steps li:first-child { border-left: 0; }
.tape-steps li::before { content: counter(t, decimal-leading-zero); display: block; font: 700 2rem var(--head); }
.tape-steps b { font: 600 1.15rem var(--head); }
.tape-steps p { font-size: .94rem; margin-top: 4px; }
@media (max-width: 820px) { .tape-steps { grid-template-columns: 1fr 1fr; } .tape-steps li:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .tape-steps { grid-template-columns: 1fr; } .tape-steps li { border-left: 0; border-top: 1px solid rgba(43,29,20,.25); } }

.measure-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .measure-list { grid-template-columns: 1fr; } }
.measure-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.measure-list .ic { color: var(--brand); }
.measure-list span { display: grid; }
.measure-list small { color: var(--muted); }

.c-card { border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line); }
.quotes li { background: var(--surface); border-radius: var(--radius-lg); }
.quotes blockquote { font: italic 500 1.1rem/1.5 var(--head); }

/* inner pages */
.page-head { text-align: center; }
.page-head .lede { margin-inline: auto; }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.numbers-band { background: var(--rose); }

/* order builder */
.neck-pick { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .neck-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.neck-pick .pick { justify-items: center; text-align: center; padding: 10px; }
.neck-pick svg { width: 100%; max-width: 100px; }
.add-btn { justify-self: start; }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .measures { grid-template-columns: 1fr 1fr; } }
.cart-list small { opacity: .75; }
.cart-list:empty { display: none; }

/* CTA + footer */
.cta-band { padding-block: clamp(44px, 6vw, 80px); background: var(--brand); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-band p { margin-top: 6px; color: #FCE6D6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--mustard); color: var(--ink); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.footer { background: var(--ink); color: #E9D9C8; --footer-line: rgba(255,255,255,.14); }
.footer .logo small { color: #CDB8A3; }
.footer h2 { color: #fff; }
.f-about { margin-top: 12px; max-width: 34ch; }
.footer .credit a { color: var(--mustard); }
