/* The Augury — site styles
   Palette: night plum, brand violet, spud gold. One memorable device: the viewfinder frame. */

:root {
  --bg: #150e26;
  --surface: #1f1636;
  --rule: #3a2d5c;
  --text: #ece8f8;
  --muted: #b9b0d3;
  --violet: #a98bff;
  --violet-deep: #6b3fe0;
  --spud: #d9b26f;
  --ink: #150e26;
  --measure: 38rem;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .btn, nav a, .meta-line {
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); margin-top: 3.5rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2rem; }

p, ul, ol, dl { margin: 1rem 0 0; }
p, li, dd { max-width: var(--measure); }
li + li { margin-top: 0.4rem; }

a { color: var(--violet); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--spud); }

:focus-visible {
  outline: 3px solid var(--spud);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--spud); color: var(--ink); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--spud); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav li { margin: 0; max-width: none; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; font-weight: 500; padding: 0.35rem 0; display: inline-block; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--spud); }

/* Buttons */
.btn {
  display: inline-block; background: var(--spud); color: var(--ink);
  font-weight: 700; font-size: 1rem; padding: 0.8rem 1.4rem; border-radius: 3px;
  text-decoration: none; border: 2px solid var(--spud);
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--spud); color: var(--spud); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* The viewfinder: corner brackets around the statement that matters */
.frame {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 6vw, 4rem);
}
.frame::before, .frame::after,
.frame > .c1, .frame > .c2 {
  content: ""; position: absolute; width: 2.25rem; height: 2.25rem;
  border: 0 solid var(--spud);
}
.frame::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.frame::after  { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.frame > .c1   { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.frame > .c2   { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.frame h1 { max-width: 26ch; font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.frame .lead { margin-top: 1.5rem; }

.lead { font-size: 1.3rem; line-height: 1.55; max-width: 40rem; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .frame::before, .frame::after, .frame > .c1, .frame > .c2 {
    animation: lock 0.7s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes lock {
    from { transform: scale(1.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
}

/* Page header (inner pages) */
.page-head { padding-top: clamp(2rem, 6vw, 4rem); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 1.25rem; }
.crumbs { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.92rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumbs a { color: var(--muted); }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; margin: 3rem 0 0; padding: 0; }
.proof div { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.proof dt { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--spud); }
.proof dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* Ruled lists (services, work) */
.ruled { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ruled > li { max-width: none; border-top: 1px solid var(--rule); padding: 1.25rem 0; margin: 0;
  display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: 0.5rem 2rem; }
.ruled > li:last-child { border-bottom: 1px solid var(--rule); }
.ruled h3 { margin: 0; font-size: 1.3rem; }
.ruled p { margin: 0; }
.ruled h3 a { color: var(--text); text-decoration-color: var(--spud); }
.ruled h3 a:hover { color: var(--spud); }
@media (max-width: 40rem) { .ruled > li { grid-template-columns: 1fr; } }

/* Process (this one really is a sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li { counter-increment: step; max-width: var(--measure); padding-left: 3rem; position: relative; margin-top: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem;
  width: 2rem; height: 2rem; border: 1px solid var(--spud); color: var(--spud); border-radius: 50%;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
}
.steps strong { font-family: "Bricolage Grotesque", sans-serif; display: block; }

/* Q&A */
.qa { margin-top: 2rem; }
.qa details { border-top: 1px solid var(--rule); padding: 1rem 0; max-width: none; }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.15rem;
  cursor: pointer; list-style: none; padding-right: 2rem; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--spud); font-size: 1.4rem; line-height: 1; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { margin-top: 0.75rem; }

/* Lens links */
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { margin: 0; max-width: none; }
.chips a {
  display: inline-block; border: 1px solid var(--rule); padding: 0.4rem 0.85rem; border-radius: 999px;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 0.95rem; color: var(--text); text-decoration: none;
}
.chips a:hover { border-color: var(--spud); color: var(--spud); }

/* Callout */
.note { border-left: 3px solid var(--violet-deep); background: var(--surface); padding: 1rem 1.25rem; margin-top: 1.5rem; max-width: var(--measure); }
.note p:first-child { margin-top: 0; }

.cta-band { margin-top: 4.5rem; padding-block: 3rem; border-top: 1px solid var(--rule); }
.cta-band h2 { margin-top: 0; }

/* Footer */
.site-foot { margin-top: 5rem; border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 1rem; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.site-foot h2 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text); letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0.2rem 0 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--spud); }
.site-foot .fine { margin-top: 2rem; font-size: 0.95rem; max-width: none; }

main { padding-bottom: 1rem; }
