/* ============================================================
   dailey.info — typography-first single-page site
   Background: warm cream. Body: warm near-black. Accent: deep olive.
   ============================================================ */

:root {
  --bg: #FBF8F2;
  --bg-deeper: #F4F0E6;
  --ink: #1C1A16;             /* warm near-black, no blue cast on cream */
  --ink-soft: #4a463e;
  --muted: #8a8276;
  --rule: #d8d0bf;
  --accent: #3F4A2D;          /* deep olive */
  --accent-soft: #5d6a45;
  --link-underline: rgba(63, 74, 45, 0.55);

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Charter', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --measure: 36rem;            /* ~576px reading width — dust-jacket feel */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 6vw, 4rem);
}

/* ===== Typography ============================================ */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  margin-left: -0.04em;        /* optical caps alignment */
  font-weight: 450;            /* slightly more gravitas */
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  margin-left: -0.04em;        /* optical caps alignment */
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Unified H3 system: serif Fraunces 500, distinguished by size + opsz */
h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

p {
  margin: 0 0 1.1rem;
  color: var(--ink);
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--accent-soft);
  text-decoration-color: var(--accent-soft);
}

/* Keyboard focus — visible accessibility ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ===== Hero / opener ======================================== */

.hero {
  margin-bottom: 3.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lede {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;       /* avoid italic 'g' descender collision */
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero p {
  font-size: 1.1rem;            /* actually larger than body now */
  line-height: 1.55;
}

.dateline {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.dateline em {
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14;     /* text-grade italic */
}

/* ===== Hero CTA button ====================================== */

.hero-cta-wrap {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);     /* heavier border */
  border-radius: 0;                    /* print-feel, not software UI */
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== Quick links ========================================== */

.quicklinks {
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.quicklinks a {
  color: var(--accent);
}

.quicklinks .dot {
  margin: 0 0.4rem;
  color: var(--muted);
}

/* ===== Section structure ==================================== */

section {
  padding: 3rem 0;
}

section h2 {
  margin-bottom: 1.75rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

section article {
  margin-bottom: 2rem;
}

section article:last-child {
  margin-bottom: 0;
}

section article h3 {
  margin-bottom: 0.4rem;
}

section article p {
  margin-bottom: 0;
}

.how-this-works {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-deeper);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.how-this-works strong {
  color: var(--ink);
}

/* ===== Case study callout =================================== */

.case-study {
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-deeper);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.case-study-label {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 14;     /* text-grade for caps */
}

.case-study h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.case-study h3 em {
  font-style: italic;
  color: var(--ink);
}

.case-study p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}

.case-study p:last-child {
  margin-bottom: 0;
}

.case-study-link a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  padding-bottom: 0.1em;
}

.case-study-link a:hover {
  border-bottom-color: var(--accent-soft);
}

/* ===== Recent work list ===================================== */

#work h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

#work h3:first-of-type {
  margin-top: 0;
}

#work .muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-list li {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.work-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.work-list li strong {
  color: var(--ink);
}

/* ===== Rule (section divider) — committed small typographic mark ===== */

hr.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 1.25rem 0;
  width: 1.25rem;            /* small typographic mark, not a divider */
  max-width: 1.25rem;
  margin-left: 0;
}

/* ===== Contact ============================================== */

.contact-block {
  font-size: 1.1rem;
  line-height: 2;
}

.big-link {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  padding-bottom: 0.15em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.big-link:hover {
  border-bottom-color: var(--accent-soft);
}

/* ===== Footer ============================================== */

.page-footer {
  max-width: var(--measure);
  margin: 4rem auto 3rem;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

.page-footer p {
  margin: 0;
  color: var(--muted);
}

/* ===== Selection ============================================ */

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ===== Reduce motion respect ================================ */

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

/* ===== Mobile tightening ==================================== */

@media (max-width: 640px) {
  html, body {
    font-size: 17px;
  }

  h1 {
    font-weight: 400;          /* less weight at smaller display size */
  }

  .hero .lede {
    font-size: 1.25rem;
  }

  .quicklinks {
    line-height: 2.2;
  }

  .quicklinks .dot {
    display: none;
  }

  .quicklinks a {
    display: inline-block;
    margin-right: 0.6rem;
  }
}
