/* Dalziel Digital — shared styles
   Palette: ink #14201f · slate-teal #1d3a37 · paper #faf8f4 · brass #c08a2d · mist #e4ebe8 · muted #5c6b68 */

:root {
  --ink: #14201f;
  --slate: #1d3a37;
  --slate-deep: #142927;
  --paper: #faf8f4;
  --brass: #c08a2d;
  --brass-deep: #a5741f;
  --mist: #e4ebe8;
  --muted: #5c6b68;
  --line: #d4ddd9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- skip link ---- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,244,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.brand .dot { color: var(--brass); }
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { font-size: .95rem; text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--brass-deep); }
.nav .btn { font-size: .9rem; }
.nav a.btn-primary { color: var(--paper); }
.nav a.btn-primary:hover { color: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; font-size: .9rem; cursor: pointer; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--slate); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- signature: plain-english device ---- */
.plain { display: inline; }
.plain .jargon { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.plain .human { color: var(--ink); font-weight: 600; }
.plain .arrow { color: var(--brass); font-family: var(--font-mono); padding: 0 .35rem; }

/* ---- hero ---- */
.hero { background: var(--slate-deep); color: var(--paper); padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(1200px 400px at 80% -10%, rgba(192,138,45,.16), transparent 60%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 1; max-width: 940px; }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.2rem; }
.hero h1 { color: var(--paper); font-size: clamp(2.35rem, 6vw, 4.1rem); letter-spacing: -.02em; margin-bottom: 1.3rem; }
.hero h1 em { font-style: italic; color: #f0d9a8; }
.hero .lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--mist); max-width: 46ch; margin-bottom: 2.2rem; line-height: 1.5; }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--paper); border-color: var(--mist); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---- sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--mist); }
.section-ink { background: var(--slate-deep); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head .eyebrow { color: var(--brass-deep); }
.section-ink .section-head .eyebrow { color: var(--brass); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.section .sub { font-size: 1.15rem; color: var(--muted); }
.section-ink .sub { color: var(--mist); }

/* ---- service grid ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card .tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.card h3 { font-size: 1.4rem; margin: .6rem 0 .7rem; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.card a.more { font-family: var(--font-mono); font-size: .85rem; text-decoration: none; color: var(--slate); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.card a.more:hover { color: var(--brass-deep); }
.card.featured { border-color: var(--brass); border-width: 1.5px; box-shadow: 0 1px 0 var(--brass); }

/* ---- prose (article / service body) ---- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 2.8rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: #26312f; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--brass); padding-left: 1.3rem; color: var(--muted); font-style: italic; }
.callout { background: var(--mist); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.callout p { margin: 0; }

/* ---- checklist ---- */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 2rem; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brass); font-weight: 700; }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: .95rem; color: var(--brass-deep); background: var(--mist); border-radius: var(--radius); padding: .4rem .6rem; line-height: 1; }
.section-ink .step::before { background: rgba(255,255,255,.08); color: var(--brass); }
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; }
.section-ink .step p { color: var(--mist); }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary { font-family: var(--font-display); font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .9rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: var(--brass); color: var(--ink); text-align: center; padding: clamp(3rem,7vw,5rem) 0; }
.cta-band h2 { color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { max-width: 48ch; margin: 0 auto 2rem; font-size: 1.15rem; color: #3a2c0c; }
.cta-band .btn { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.cta-band .btn:hover { background: var(--slate); }

/* ---- footer ---- */
.site-foot { background: var(--ink); color: var(--mist); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-foot a { color: var(--mist); }
.site-foot a:hover { color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: .5rem; }
.foot-grid a { text-decoration: none; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .85rem; }
.foot-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); margin-bottom: .6rem; }

/* ---- contact form ---- */
.form-grid { display: grid; gap: 1.3rem; max-width: 34rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .8rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* ---- misc ---- */
.lead-list { display: grid; gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); background: var(--mist); padding: .3rem .7rem; border-radius: 100px; }
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding: 1.2rem 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-deep); }

/* ---- focus visibility ---- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); gap: 1rem; align-items: flex-start; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
