/* tracylynnlittle.com — "Cover Story" editorial design (2026-07)
   Hand-written stylesheet; replaces the former Start Bootstrap theme,
   Bootstrap 4, jQuery, and the gulp/SCSS toolchain. */

:root {
  --paper: #f8f2ee;
  --ink: #2a2130;
  --body: #453a4c;
  --body-soft: #5d5263;
  --plum: #6d4a78;
  --clay: #c4714e;
  --muted: #8a7b90;
  --line: #e8dee3;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Alegreya Sans", Optima, "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  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: 1.1875rem;
  line-height: 1.7;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a {
  color: var(--plum);
  text-decoration-color: rgba(109, 74, 120, 0.4);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--clay); }
a:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

/* ---------- Masthead ---------- */

.kicker {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 2.2rem;
}
.kicker-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.kicker-nav a { color: var(--plum); text-decoration: none; }
.kicker-nav a:hover { color: var(--clay); }

.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

.dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  color: var(--plum);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.rule {
  border: none;
  height: 1px;
  background: var(--plum);
  opacity: 0.4;
  margin: 0 0 1.3rem;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.4rem;
}
.contact-line a { text-decoration: none; }

.lead-cols {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.8rem;
  align-items: start;
}

.lead p {
  margin: 0 0 1.1rem;
  color: var(--body);
  max-width: 60ch;
}
.lead p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 0.04em 0.12em 0 0;
  color: var(--plum);
}

.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d9cbd2;
}
.portrait figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.45;
}

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

.section { margin-top: 3.2rem; }

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--plum);
  border-top: 1px solid rgba(109, 74, 120, 0.3);
  padding-top: 1.3rem;
  margin: 0 0 1.2rem;
}

/* ---------- Career ---------- */

.role {
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.role:last-child { border-bottom: none; }

.role h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.15rem;
  line-height: 1.35;
}
.role .co {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--plum);
  margin: 0 0 0.6rem;
}
.role .desc {
  color: var(--body-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 62ch;
}
.role .date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  padding-top: 0.3rem;
}

.role-compact .co { margin-top: 0.6rem; }
.role-compact .co:first-of-type { margin-top: 0; }
.role-compact .desc { margin-bottom: 0.2rem; }

/* ---------- Projects ---------- */

.project { margin-bottom: 2.6rem; }
.project:last-child { margin-bottom: 0; }

.project h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.005em;
  margin: 0 0 0.8rem;
  color: var(--ink);
  text-wrap: balance;
}
.project p {
  color: var(--body-soft);
  font-size: 1.08rem;
  margin: 0 0 1rem;
  max-width: 65ch;
}

/* ---------- Awards ---------- */

.award {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.award .orn {
  color: var(--clay);
  font-size: 1.15rem;
  margin-right: 0.35rem;
}

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

.colophon { margin-top: 3.5rem; }
.colophon .rule { margin-bottom: 1.2rem; }
.colophon .contact-line { margin-bottom: 0.8rem; }
.fine {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 680px) {
  .page { padding: 2rem 1.25rem 3rem; }

  .lead-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .portrait { max-width: 260px; }

  .role { flex-direction: column; gap: 0.3rem; }
  .role .date { order: -1; padding-top: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
}
