/* Lizzian LLC — editorial utility with a sharp, contemporary studio edge. */

:root {
  --paper:        #f7f6f1;
  --paper-2:      #ecebe5;
  --ink:          #111310;
  --ink-2:        #454941;
  --ink-3:        #5f645b;
  --rule:         #d8d8d0;
  --rule-2:       #bfc1b7;
  --accent:       #a82b12;
  --accent-hover: #b62c12;
  --accent-soft:  #f5d8cf;
  --signal:       #d9ff43;
  --focus:        #1a57e8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1240px;
  --measure: 68ch;
  --step: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #111310;
    --paper-2:      #1b1e1a;
    --ink:          #f2f1eb;
    --ink-2:        #c0c3b9;
    --ink-3:        #92988c;
    --rule:         #30342e;
    --rule-2:       #474c44;
    --accent:       #ff6a46;
    --accent-hover: #ff8d72;
    --accent-soft:  #3b211b;
    --signal:       #d9ff43;
    --focus:        #8aafff;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 1.1rem + 6vw, 6.5rem); letter-spacing: -0.065em; }
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); margin-top: 0; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0.01em; }

p, ul, ol, dl { margin: 0 0 1.1em; }
address { font-style: normal; margin: 0 0 1.4rem; }
.split-aside h3, .split > div > h3 + p + h3 { margin-top: 2rem; }
p, li { max-width: var(--measure); }

ul, ol { padding-left: 1.15em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--ink-3); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 650; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }

.lede { font-size: clamp(1.1rem, .95rem + .55vw, 1.35rem); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.85rem;
}
.small { font-size: 0.9rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- Shell ---------- */

.wrap { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem); }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 40;
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.wordmark {
  font-family: var(--sans);
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.45rem; }
.nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .nav-cta {
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  padding: .66rem 1rem; margin-left: .3rem; border-radius: 999px;
}
.nav .nav-cta:hover { color: var(--paper); background: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule-2); border-radius: 3px;
  color: var(--ink); font: inherit; font-size: 0.85rem;
  padding: 0.4rem 0.7rem; cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: none; }
  .nav .nav-cta { margin: .8rem 0 0; width: auto; padding: .7rem 1rem; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 3rem + 5vw, 8rem) 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }
.section-tint { background: var(--paper-2); }

.hero { padding: clamp(3rem, 1.8rem + 6vw, 7.5rem) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.hero-copy h1 { max-width: 10ch; margin-bottom: .3em; }
.hero-copy h1 em { color: var(--accent); font-family: var(--serif); font-weight: 500; }
.hero-copy .lede { max-width: 50ch; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-note { max-width: 54ch; margin-top: 1.6rem; color: var(--ink-3); font-size: .84rem; line-height: 1.5; }
.hero-showcase { min-width: 0; transform: rotate(1.5deg); }
.showcase-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; font: 700 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.showcase-frame { margin: 0; padding: .65rem; background: var(--ink); border-radius: 2px; box-shadow: 0 40px 80px -45px rgba(0,0,0,.7); }
.showcase-frame img { display: block; width: 100%; height: auto; }
.showcase-caption { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--signal); color: #111310; padding: 1.1rem 1.2rem; }
.showcase-caption p { margin: 0; font-size: .78rem; line-height: 1.45; }
.showcase-caption p:last-child { text-align: right; font-family: var(--mono); text-transform: uppercase; }
.showcase-caption span { opacity: .65; }
.signal-bar { color: #f6f5ef; background: #111310; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid p { margin: 0; padding: 1.1rem 1rem; border-left: 1px solid #32352f; font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; max-width: none; }
.signal-grid p:last-child { border-right: 1px solid #32352f; }
.signal-grid span { color: var(--signal); margin-right: .55rem; font-family: var(--mono); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 11ch; }
  .hero-showcase { width: min(90%, 620px); margin-left: auto; transform: rotate(.7deg); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid p { border-bottom: 1px solid #32352f; }
}
@media (max-width: 540px) {
  .hero { padding-top: 3.5rem; }
  .hero-showcase { width: 100%; }
  .signal-grid { grid-template-columns: 1fr; }
  .showcase-caption { grid-template-columns: 1fr; }
  .showcase-caption p:last-child { text-align: left; }
}
.hero + .section { padding-top: clamp(4.5rem, 3rem + 5vw, 8rem); }

.head { max-width: 70ch; margin-bottom: clamp(2.5rem, 4vw, 4.5rem); }
.head h2 { max-width: 18ch; }
.head p:last-child { margin-bottom: 0; }

/* ---------- Grids ---------- */

.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-aside { position: sticky; top: 92px; }
@media (max-width: 860px) { .split-aside { position: static; } }

/* ---------- Cards / blocks ---------- */

.card {
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  padding: clamp(1.4rem, 2vw, 2rem);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--rule-2); box-shadow: 0 18px 40px -32px rgba(0,0,0,.65); }
.card-index { display: block; margin-bottom: 2.8rem; color: var(--accent); font: 700 .72rem/1 var(--mono); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.rule-list { border-top: 1px solid var(--rule); list-style: none; padding: 0; margin: 0; }
.rule-list > li {
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0;
  margin: 0;
  max-width: none;
}
.rule-list h3 { margin-bottom: 0.4rem; }
.rule-list p:last-child { margin-bottom: 0; }

.numbered { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.numbered > li {
  counter-increment: step;
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0 1.6rem 3.4rem;
  position: relative;
  margin: 0;
  max-width: none;
}
.numbered > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.65rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.numbered h3 { margin-bottom: 0.4rem; }
.numbered p:last-child, .numbered ul:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  margin-bottom: 0.7rem;
}

.pull {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.3rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 54ch;
}

.callout {
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--paper-2);
  padding: 1.4rem 1.5rem;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* Definition-style key/value */
.facts { border-top: 1px solid var(--rule); margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 620px) { .facts > div { grid-template-columns: 1fr; gap: 0.25rem; } }
.facts dt { font-weight: 650; font-size: 0.94rem; color: var(--ink-2); margin: 0; }
.facts dd { margin: 0; }
.facts dd p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #10171a; } }

.btn-ghost { background: transparent; color: var(--accent); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .btn-ghost, .btn-ghost:hover { color: var(--accent); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.6rem; }
.text-link { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; padding: .8rem .35rem; }
.text-link:hover { color: var(--accent); }

/* ---------- Form ---------- */

.form { max-width: 42rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 0.85rem; color: var(--ink-3); font-weight: 400; margin-top: 0.15rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 0.8rem 0.85rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: clamp(4rem, 6vw, 6.5rem) 0 2.2rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer h3 { font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer address { font-style: normal; color: var(--ink-2); margin-bottom: 0; }
.footer .wordmark { font-size: 1.15rem; display: inline-block; margin-bottom: 0.7rem; }
.footer-statement { color: var(--ink); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.2; max-width: 18ch; margin-bottom: 2rem; letter-spacing: -.03em; }
.colophon {
  margin-top: 2.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  color: var(--ink-3); font-size: 0.86rem;
}
.colophon p { margin: 0; max-width: none; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Same visual weight as h3, for a heading that must sit at level 2
   for correct document outline (see Work page "How to read this page"). */
.h3-weight { font-size: 1.18rem; letter-spacing: 0; margin: 0 0 0.6em; }

.stack > * + * { margin-top: 1.1rem; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ---------- Work: mockups ---------- */

.shot {
  margin: 0 0 2rem;
  border: 1px solid var(--rule-2);
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(20,22,26,.05), 0 22px 40px -30px rgba(20,22,26,.5);
}
.shot img { display: block; width: 100%; height: auto; }

.case { border-top: 1px solid var(--rule); padding: 3rem 0 3.2rem; }
.case:first-of-type { border-top: none; padding-top: 0; }
.case-body .split-aside { top: 96px; }
.case-body h3 { font-size: 1.42rem; margin-bottom: 0.5rem; }

.card-shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-shot img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--rule);
}
.card-shot .card-body { padding: 1.35rem 1.4rem 1.45rem; }
.card-shot .tag { margin-bottom: 0.6rem; }
.card-shot h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.card-shot p { font-size: 0.95rem; }

.mockup-note {
  display: flex; gap: 0.9rem; align-items: baseline;
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1.2rem;
  margin: 0 0 2.5rem;
  max-width: 52rem;
}
