/* ==========================================================================
   Dovetail Web Studio — Version B "Workshop" (override layer, loads after styles.css)
   Dark-led, condensed sans, brass + clay, real timber joint.
   Contrast (WCAG): brass #C9A04A on #1E1D22 = 6.9:1, on #161519 = 7.4:1, on #252328 = 6.1:1.
   Clay #C98670 on #1E1D22 = 5.7:1. Body #B3ADA4 on #1E1D22 = 7.6:1. Brass is never used as text on cream.
   ========================================================================== */

/* ---------- Tokens: dark by default; .tone-cream flips back to light ---------- */
html.ws {
  --brass: #C9A04A;
  --brass-soft: #DDBB72;
  --clay: #C98670;
  --steel: #2E2C31;

  --cream: #1E1D22;          /* page background */
  --cream-deep: #252328;     /* alt dark band */
  --paper: #26242A;          /* raised surfaces */
  --panel: #161519;          /* deepest band */
  --panel-2: #222026;
  --ink: #F1ECE4;
  --ink-soft: #B3ADA4;
  --charcoal: #F1ECE4;       /* "structural ink" flips to light on dark */
  --gold: var(--brass);
  --gold-soft: var(--brass-soft);
  --terra: var(--clay);
  --link: var(--brass);
  --terra-ink: var(--clay);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --on-panel: #EDE8E0;
  --on-panel-soft: #B3ADA4;
  --sec-bg: var(--cream);

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 6px;
  --radius-lg: 8px;
  --shadow-1: none;
  --shadow-2: 0 14px 28px -16px rgba(0, 0, 0, .7);

  --ruler: repeating-linear-gradient(90deg, var(--brass) 0 1px, transparent 1px 80px) 0 100% / 100% 12px no-repeat,
           repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 40px) 0 100% / 100% 8px no-repeat,
           repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 8px) 0 100% / 100% 4px no-repeat;
  --blueprint: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
               linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px;
  --dt-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='10'%3E%3Cpath d='M12 0H52L49 10H15Z'/%3E%3C/svg%3E");

  font-stretch: 84%;          /* drives Archivo's width axis; Outfit and Mono ignore it */
}

.ws .tone-cream {
  --cream: #F6F3EE;
  --cream-deep: #EDE7DD;
  --paper: #FFFFFF;
  --ink: #2E2C31;
  --ink-soft: #57535C;
  --charcoal: #2E2C31;
  --link: #9A5A45;
  --terra-ink: #9A5A45;
  --line: rgba(46, 44, 49, .14);
  --line-strong: rgba(46, 44, 49, .3);
  --sec-bg: #F6F3EE;
  background: var(--cream);
  color: var(--ink);
}
.ws .dark { --sec-bg: var(--panel); background: var(--panel); }
.ws .work { --sec-bg: var(--cream-deep); background: var(--cream-deep); }
.ws .dt-top::before { background: var(--sec-bg); top: -9px; }

/* ---------- Type ---------- */
.ws body { background: var(--cream); color: var(--ink); }
.ws h1, .ws h2, .ws h3, .ws h4 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.012em; line-height: .96;
}
.ws h3 { font-weight: 700; letter-spacing: 0; line-height: 1.1; }
.ws em { font-style: normal; color: var(--link); }
.ws h1, .ws h2, .ws .price, .ws .footer-word { font-stretch: 76%; }
.ws .hero h1 { font-weight: 850; letter-spacing: -.012em; line-height: .9; font-size: clamp(3.1rem, 1.7rem + 5.6vw, 6.4rem); }
.ws .hero h1 em { font-style: normal; font-weight: 850; color: var(--brass); }
.ws .section-head h2, .ws .about-copy h2, .ws .contact-copy h2 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.75rem); }
.ws .section-head h2 em, .ws .about-copy h2 em, .ws .contact-copy h2 em,
.ws .footer-word em, .ws .thanks h1 em { font-style: normal; }
.ws .section-head h2 em, .ws .about-copy h2 em { color: var(--link); }
.ws .dark .section-head h2 em, .ws .contact-copy h2 em { color: var(--brass); }

/* Mono labels */
.ws .eyebrow {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em;
  color: var(--brass); gap: .7rem;
}
.ws .eyebrow::before { background: var(--clay); margin-top: .3em; }
.ws .tone-cream .eyebrow { color: var(--ink-soft); }
.ws .on-dark .eyebrow { color: var(--brass); }

/* ---------- Buttons: squarer, solid, firm ---------- */
.ws .btn { border-radius: 5px; border-width: 1.5px; font-weight: 600; letter-spacing: .01em; }
.ws .btn-primary, .ws .btn-gold { --bg: var(--brass); --fg: #1A191D; border-color: var(--brass); }
.ws .btn-primary::before, .ws .btn-gold::before { background: #F1ECE4; }
.ws .btn-primary:hover, .ws .btn-gold:hover { --fg: #1A191D; border-color: #F1ECE4; }
.ws .tone-cream .btn-primary { --bg: #2E2C31; --fg: #F6F3EE; border-color: #2E2C31; }
.ws .tone-cream .btn-primary::before { background: var(--brass); }
.ws .tone-cream .btn-primary:hover { --fg: #1A191D; border-color: var(--brass); }
.ws .btn-ghost { border-color: var(--line-strong); }
.ws .btn-ghost:hover { --fg: #1A191D; border-color: #F1ECE4; }
.ws .btn-ghost::before { background: #F1ECE4; }

/* ---------- Header + drawer ---------- */
.ws .site-header.is-condensed { background: rgba(22, 21, 25, .9); box-shadow: 0 1px 0 var(--line); }
.ws .brand-name b { font-family: var(--font-display); font-weight: 800; font-size: 1.42rem; letter-spacing: -.01em; }
.ws .brand-name span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; }
.ws .nav a:not(.btn) { font-weight: 500; }
.ws .nav a:not(.btn)::after { background: var(--brass); }
.ws .drawer { background: var(--panel); }
.ws .drawer li a { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; }
.ws .drawer li a small { font-family: var(--font-mono); color: var(--brass); }

/* ---------- Hero ---------- */
.ws .hero { position: relative; background: var(--cream); }
.ws .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--blueprint);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 30%, transparent 85%);
}
.ws .hero::after { /* measuring rule along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none;
  background: var(--ruler); opacity: .8;
}
.ws .hero .wrap { position: relative; }
.ws .hero-price {
  font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: 0; color: var(--ink);
}
.ws .hero-price::before { background: var(--brass); height: 2px; }
.ws .hero-facts { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }

/* Joint on dark: crisp dark edges, mono annotations */
.ws .joint .board-edge { stroke: #0E0D10; stroke-width: 1.6; }
.ws .joint .grid line { stroke: #FFFFFF; stroke-opacity: .06; }
.ws .joint .scribe { stroke: var(--brass); stroke-opacity: .6; }
.ws .joint .note { font-family: var(--font-mono); font-size: 10.5px; fill: var(--brass); }
.ws .joint .note-serif {
  font: 500 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  fill: #3A2614; fill-opacity: .85;
}
.ws .joint .note-serif.on-walnut { fill: #F3E6D6; fill-opacity: .85; }
.ws .joint .seam { stroke: var(--brass-soft); }
.ws .joint ellipse { opacity: .5; }

/* ---------- Process ---------- */
.ws .steps::after { background: var(--brass); }
.ws .step-num {
  border-radius: 5px; background: var(--cream); border: 1.5px solid var(--line-strong);
  font-size: 0;
}
.ws .step-num::before {
  content: ""; width: 14px; height: 10px; background: var(--brass);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.ws .step.is-reached .step-num { background: var(--brass); border-color: var(--brass); }
.ws .step.is-reached .step-num::before { background: #1A191D; }
.ws .step-tag {
  display: block; margin: 0 0 .6rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--clay);
}
.ws .step h3 { margin-top: 0; font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }
@media (min-width: 860px) { .ws .step { padding-top: 70px; } }

/* ---------- Why ---------- */
.ws .why-item { background: var(--panel); }
.ws .why-item .num { font-family: var(--font-mono); font-style: normal; font-size: .8rem; letter-spacing: .14em; color: var(--brass); }
.ws .why-item h3 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); }

/* ---------- Pricing (cream breathing room) ---------- */
.ws .price-card { border: 1.5px solid #2E2C31; box-shadow: 8px 8px 0 rgba(46, 44, 49, .12); }
.ws .price-card::after { background: var(--brass); }
.ws .price-label { font-family: var(--font-mono); letter-spacing: .14em; }
.ws .price { font-family: var(--font-display); font-weight: 850; letter-spacing: -.03em; line-height: .86; font-size: clamp(5.5rem, 3.6rem + 8vw, 9.5rem); }
.ws .price sup { font-weight: 700; }
.ws .price-terms .save { background: rgba(201, 160, 74, .3); border-radius: 4px; color: #2E2C31; }
.ws .mini-card { border: 1.5px solid var(--line-strong); }
.ws .row-list b { font-family: var(--font-display); font-weight: 800; }
.ws .care { background: #1E1D22; border-color: #1E1D22; }
.ws .care-price { color: var(--brass); }
.ws .care-price b { font-weight: 850; }
.ws .fine::before { background: #2E2C31; }

/* ---------- Work ---------- */
.ws .work-card { background: var(--cream); border: 1px solid var(--line-strong); }
.ws .work-card:hover { border-color: var(--brass); }
.ws .work-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--brass); }
.ws .mock { background: #2E2C31; }
.ws .mock .mk-logo, .ws .mock .mk-h { font-style: normal; }
.ws .work-card.next { background: transparent; border: 1.5px dashed var(--line-strong); }
.ws .work-card.next:hover { background: var(--cream); border-color: var(--brass); }
.ws .next-art { border-bottom-color: var(--line-strong); }
.ws .next-art .tailpiece { fill: var(--brass); stroke: #0E0D10; }

/* ---------- About ---------- */
.ws .about-photo::before { background: var(--brass); }
.ws .about-photo img { filter: saturate(.9) contrast(1.04); }
.ws .about-copy .tick-list { font-size: var(--step-0); }

/* ---------- FAQ (cream) ---------- */
.ws .faq { padding-top: var(--section); }
.ws .faq-list summary { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.ws .faq-list summary .pm { border-radius: 5px; }

/* ---------- Contact ---------- */
.ws .contact-lines dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; }
.ws .contact-lines dd { font-family: var(--font-display); font-weight: 700; }
.ws .contact-lines dd.small { font-family: var(--font-body); font-weight: 400; }
.ws .form { background: var(--cream); border: 1px solid var(--line-strong); box-shadow: none; }
.ws .form h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.ws .field input, .ws .field textarea { border-radius: 5px; background: var(--paper); }
.ws .field input:focus, .ws .field textarea:focus { background: #2B2930; box-shadow: 0 0 0 3px rgba(201, 160, 74, .4); }

/* ---------- Footer ---------- */
.ws .site-footer { position: relative; background: var(--panel); }
.ws .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; transform: scaleY(-1);
  background: var(--ruler); opacity: .6;
}
.ws .footer-word { font-family: var(--font-display); font-weight: 850; letter-spacing: -.025em; line-height: .88; }
.ws .footer-word em { color: var(--brass); }
.ws .footer-links a:hover { color: var(--brass); }
.ws a[href^="tel:"] { white-space: nowrap; }
