/* ShadeSakhi: one stylesheet, system fonts, no external requests. */
:root {
  --bg: #fbf6ee;
  --paper: #fffdf9;
  --ink: #2b2220;
  --muted: #6b5d57;
  --accent: #7a1f34;
  --accent-dark: #5e1727;
  --soft: #f1e5d6;
  --line: #e3d4c3;
  --gold: #b8860b;
  --font: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 56rem; }
section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 1rem; }

/* header and footer */
.site-head { padding: 14px 0; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 1.25rem; font-weight: 600; color: var(--accent); text-decoration: none; letter-spacing: 0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; font-size: 0.95rem; }
.site-foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  font-family: var(--font); font-size: 1.05rem; font-weight: 600;
  text-decoration: none; border-radius: 4px; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--soft); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.addr { user-select: all; -webkit-user-select: all; }
.textlink { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; font-weight: 600; }

/* hero: on phones the photo sits beside the sub-line so photo, price and button share one screen */
.hero { padding: 20px 0 28px; }
.hero .sub { font-size: 1rem; max-width: 34rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(9rem, 32vw, 14rem); column-gap: 16px; row-gap: 12px; align-items: start; }
.hero-copy { display: contents; }
.hero-copy h1 { grid-column: 1 / -1; margin: 0; }
.hero-copy .sub { grid-column: 1; grid-row: 2; margin: 0; }
.hero-copy .btn-row { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
.hero-photo { grid-column: 2; grid-row: 2; margin: 0; }
.hero .hero-photo img { width: 100%; }
.hero .hero-photo figcaption { font-size: 0.875rem; line-height: 1.35; }

/* sticky buy bar: phones only, no script */
.buybar { display: none; }

/* facts strip */
.facts-band { padding: 8px 0; background: var(--soft); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 10px 8px; text-align: center; font-weight: 600; font-size: 1rem; color: var(--accent-dark); }

/* inside the report: swatch row and function photos */
.palette { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.palette .chip { display: block; height: 48px; border-radius: 4px; border: 1px solid var(--line); margin-bottom: 6px; }
.palette b { display: block; font-size: 1rem; line-height: 1.3; }
.palette code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; color: var(--muted); }
.funcs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.funcs li { grid-column: span 2; }
.funcs li:nth-child(n+4) { grid-column: span 3; }
.funcs img { display: block; width: 100%; height: auto; border-radius: 6px; }
.funcs span { display: block; text-align: center; font-size: 1rem; font-weight: 600; padding-top: 4px; }

/* lists and steps */
.plain { padding-left: 1.2rem; margin: 0 0 16px; }
.plain li { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.steps strong { display: block; }

/* cards and boxes */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px 18px; margin-bottom: 16px; }
.card h3, .card .h3 { margin-top: 0; }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 0 0 18px; font-size: 0.97rem; }
.photo { margin: 0 0 16px; }
.photo img { display: block; width: 100%; max-width: 28rem; height: auto; border-radius: 6px; }
.photo figcaption { font-size: 1rem; color: var(--muted); margin-top: 6px; }
.price { font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }

/* details / FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 28px 14px 0; min-height: 48px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--accent); font-size: 1.4rem; line-height: 1.2; }
details[open] summary::after { content: "\2212"; }
details p { padding-right: 8px; }

/* swatches */
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.sw { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sw .chip { display: block; height: 64px; border-bottom: 1px solid var(--line); }
.sw .t { padding: 8px 10px 10px; font-size: 0.88rem; line-height: 1.35; }
.sw b { display: block; font-size: 0.95rem; }
.sw code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--muted); }

/* sample report */
.sample-banner { background: var(--accent); color: #fff; padding: 12px 0; font-size: 0.95rem; }
.sample-banner a { color: #fff; }
.report section { padding: 34px 0; }
.fn { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.fn h3 { margin-bottom: 6px; }
.fn dl { margin: 0; }
.fn dt { font-size: 0.92rem; font-weight: 600; color: var(--accent); margin-top: 10px; }
.fn dd { margin: 2px 0 0; }
.fn .dots { display: flex; gap: 6px; margin: 6px 0 10px; }
.fn .dots i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.guide { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px; text-align: center; font-size: 0.88rem; line-height: 1.35; }
.guide svg { display: block; margin: 0 auto 6px; width: 100%; max-width: 140px; }
.guide b { display: block; font-size: 0.95rem; }
.guide .yes { color: #2f6b3a; }
.guide .maybe { color: #8a5a00; }
.guide.aside { background: var(--soft); }
table.formulas { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.formulas th, table.formulas td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
table.formulas th { font-weight: 600; width: 38%; }
.check { list-style: none; padding: 0; margin: 0 0 16px; }
.check li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 3px; }

@media (max-width: 639px) {
  .hero-copy h1 { font-size: 1.8rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .buybar {
    display: block; position: sticky; bottom: 0; z-index: 10;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .buybar .btn { width: 100%; }
}
@media (min-width: 640px) {
  body { font-size: 19px; }
  .hero .sub { font-size: 1.15rem; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.9rem; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .palette { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .funcs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .funcs li, .funcs li:nth-child(n+4) { grid-column: auto; }
  .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 17rem; align-items: center; gap: 32px; }
  .hero-copy { display: block; }
  .hero-copy .sub { margin-bottom: 16px; }
  .hero-copy .btn-row { margin-top: 8px; }
  .hero-photo { grid-row: 1; }
  .hero .hero-photo figcaption { font-size: 1rem; }
}
@media print {
  .site-head, .site-foot, .btn-row, .buybar { display: none; }
  body { background: #fff; }
}
