/* Shared visual language, scoped to the two editorial templates. */
body.dke-shell {
  --paper: #faf7f1;
  --wash: #eee8dd;
  --ink: #252722;
  --muted: #53554e;
  --accent: #67432d;
  --bar: #d8cdbc;
  --on-accent: #fff9f3;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  margin: 0;
}
body.dke-shell--guide { --paper: #fbf8ef; --wash: #eeeee0; --accent: #3e5130; --bar: #ccceba; }
.dke-shell *, .dke-shell *::before, .dke-shell *::after { box-sizing: border-box; }
.dke-wrap { width: min(100% - 3.5rem, 1200px); margin-inline: auto; }
.dke-shell h1, .dke-shell h2, .dke-shell h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.026em;
  margin: 0;
  text-transform: none;
}
.dke-shell h1 { font-size: clamp(2.75rem, 5.3vw, 5.35rem); line-height: 1.025; max-width: 16ch; text-wrap: balance; }
.dke-shell h2 { font-size: clamp(2rem, 3.65vw, 3.45rem); line-height: 1.08; text-wrap: balance; }
.dke-shell h3 { font-size: clamp(1.44rem, 2.35vw, 2.15rem); line-height: 1.13; }
.dke-shell p { margin: 0; }
.dke-shell figure { margin: 0; }
.dke-shell img { display: block; width: 100%; height: auto; }
.dke-shell a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .19em; }
.dke-shell a:focus-visible { outline: .18rem solid var(--accent); outline-offset: .22rem; }
.dke-skip { position: absolute; left: 1rem; top: -.1rem; transform: translateY(-200%); z-index: 99999; background: var(--paper); padding: .65rem 1rem; }
.dke-skip:focus { transform: none; }
.dke-header { border-bottom: 1px solid var(--bar); }
.dke-header-inner { display: flex; gap: 1rem 2rem; min-height: 5.1rem; align-items: center; justify-content: space-between; }
.dke-brand { display: inline-flex; align-items: center; gap: .8rem; font: 1.55rem/.98 var(--display); white-space: nowrap; text-decoration: none; }
.dke-mark { display: grid; width: 2.6rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 600 .94rem var(--body); letter-spacing: -.06em; }
.dke-brand-sub { display: block; margin-top: .4rem; font: 650 .62rem/1.15 var(--body); letter-spacing: .12em; }
.dke-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem clamp(.85rem, 3vw, 2.2rem); }
.dke-nav a, .dke-header-contact { font-size: .91rem; font-weight: 650; text-decoration: none; padding-block: .5rem; }
.dke-shell a:hover { text-decoration: underline; }
.dke-header-contact { color: var(--accent); white-space: nowrap; border-bottom: 1px solid var(--bar); }
.dke-hero { background: var(--wash); padding-block: clamp(2.3rem, 5vw, 4.8rem); }
.dke-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.8rem, 5vw, 4.8rem); }
.dke-shell .dke-eyebrow { color: var(--accent); font: 720 .76rem/1.5 var(--body); letter-spacing: .085em; text-transform: uppercase; margin: 0 0 .9rem; }
.dke-shell .dke-lede { font-size: clamp(1.03rem, 1.6vw, 1.25rem); max-width: 40ch; color: var(--muted); margin-top: 1.15rem; }
.dke-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 1.5rem; }
.dke-shell .dke-button { display: inline-flex; min-height: 2.9rem; padding: .64rem 1.05rem; align-items: center; font-weight: 700; color: var(--on-accent); background: var(--accent); text-decoration: none; }
.dke-shell .dke-button:hover { text-decoration: underline; }
.dke-shell .dke-link { font-weight: 670; text-decoration: underline; color: var(--accent); }
.dke-shell figcaption { margin-top: .55rem; font-size: .83rem; color: var(--muted); }
.dke-hero-figure img { background: var(--paper); }
.dke-section { padding-block: clamp(2.6rem, 5.6vw, 5.1rem); }
.dke-section-wash { background: var(--wash); }
.dke-section-head { display: flex; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: 1.8rem; }
.dke-section-head h2 { max-width: 21ch; }
.dke-grid { display: grid; gap: clamp(.95rem, 2.3vw, 1.8rem); }
.dke-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dke-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dke-case { border: 1px solid var(--bar); background: var(--paper); }
.dke-case-text { padding: clamp(1.4rem, 3.7vw, 3rem); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.dke-case-copy { padding: clamp(1.15rem, 3vw, 2rem); }
.dke-case img { aspect-ratio: 16 / 8.5; object-fit: cover; }
.dke-case h3 a { text-decoration: none; }
.dke-case h3 a:hover { text-decoration: underline; }
.dke-shell .dke-case h3 + p, .dke-shell .dke-step h3 + p, .dke-shell .dke-callout h2 + p { color: var(--muted); margin-top: .7rem; max-width: 46ch; }
.dke-case .dke-link, .dke-step .dke-link { display: inline-block; margin-top: .85rem; align-self: flex-start; }
.dke-step { border-top: 1px solid var(--bar); padding-block: 1.1rem; }
.dke-number { display: block; font: 400 2rem/1.1 var(--display); color: var(--accent); margin-bottom: .9rem; }
.dke-callout { border: 1px solid var(--bar); background: var(--wash); padding: clamp(1.35rem, 4.5vw, 3.2rem); }
.dke-callout h2 { max-width: 24ch; }
.dke-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.dke-list li { padding-block: .76rem; margin: 0; border-top: 1px solid var(--bar); }
.dke-list a { display: block; }
.dke-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.dke-archive details { padding: .8rem 1rem; border: 1px solid var(--bar); }
.dke-archive summary { cursor: pointer; color: var(--ink); font-weight: 670; padding-block: .28rem; }
.dke-archive summary:focus-visible { outline: .18rem solid var(--accent); outline-offset: .22rem; }
.dke-footer { padding-block: 1.55rem; border-top: 1px solid var(--bar); }
.dke-footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .88rem; }
.dke-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: .65rem 1.35rem; }
@media (max-width: 760px) {
  .dke-wrap { width: calc(100% - 2.25rem); }
  .dke-header-inner { flex-wrap: wrap; min-height: auto; padding-block: .9rem .55rem; gap: .6rem; }
  .dke-nav { order: 3; width: 100%; }
  .dke-header-contact { font-size: .83rem; }
  .dke-hero-grid, .dke-grid-two, .dke-grid-three { grid-template-columns: minmax(0, 1fr); }
  .dke-section-head { align-items: start; flex-direction: column; }
  .dke-archive { grid-template-columns: minmax(0, 1fr); }
}
