/* ============================================================
   STEPHANIE FRANK — shared stylesheet
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --ink:         #15131c;
  --ink-soft:    #1e1b29;
  --ink-mid:     #272436;
  --ink-line:    #34304a;
  --vellum:      #efe6d3;
  --vellum-dim:  #b3a896;
  --vellum-faint:#6e6560;
  --gilt:        #c9a227;
  --gilt-dim:    #8a7128;
  --violet:      #9384c9;
  --violet-dim:  #5f5586;
  --violet-faint:#2e2a44;

  --measure:  38rem;
  --gutter:   clamp(1.25rem, 5vw, 4rem);
  --wide:     72rem;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Libre Franklin", -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body { margin: 0; }
img  { max-width: 100%; display: block; }
a    { color: inherit; }
p    { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---- BASE ---- */
body {
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%,
      rgba(147,132,201,.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 92% 8%,
      rgba(201,162,39,.07), transparent 55%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.08;
  margin: 0;
  color: var(--vellum);
}

/* ---- LAYOUT ---- */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}
.measure { max-width: var(--measure); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

hr.rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-line), transparent 80%);
  margin: 0;
}

/* ---- TYPOGRAPHY HELPERS ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: .65em;
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--violet-dim);
  display: inline-block;
}

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

a.link {
  text-decoration: none;
  border-bottom: 1px solid var(--gilt-dim);
  transition: border-color .18s, color .18s;
}
a.link:hover, a.link:focus-visible {
  border-color: var(--gilt);
  color: var(--gilt);
}

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

/* ---- NAVIGATION ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21,19,28,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--vellum);
  flex-shrink: 0;
}
.wordmark em {
  font-style: italic;
  color: var(--violet);
  font-weight: 440;
}
nav.links {
  display: flex;
  gap: 1.8rem;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
nav.links a {
  text-decoration: none;
  color: var(--vellum-dim);
  transition: color .15s;
  padding: .3em 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.links a:hover,
nav.links a:focus-visible { color: var(--gilt); }
nav.links a.active {
  color: var(--vellum);
  border-bottom-color: var(--gilt-dim);
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--vellum);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
}
@media (max-width: 780px) {
  nav.links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--ink-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  nav.links.open { max-height: 26rem; }
  nav.links a {
    padding: .9rem var(--gutter);
    border-top: 1px solid var(--ink-line);
    border-bottom: none !important;
  }
  .menu-btn { display: block; }
}

/* ---- FOOTER ---- */
footer.site {
  border-top: 1px solid var(--ink-line);
  padding: 2.2rem 0 3rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--vellum-faint);
}
.footer-inner .glyph { color: var(--violet-dim); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: var(--gilt);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border-radius: 2px;
  font-weight: 500;
  transition: background .15s;
}
.btn:hover { background: #ddb43a; }
.btn-ghost {
  background: transparent;
  color: var(--vellum-dim);
  border: 1px solid var(--ink-line);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--gilt-dim);
  color: var(--vellum);
}

/* ---- CARDS ---- */
.card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.card .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: .9rem;
  display: block;
}
.card h3 { font-size: 1.4rem; margin-bottom: .9rem; }
.card p  { color: var(--vellum-dim); font-size: .98rem; }

/* ---- TWO-COL GRID ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.two-col > * { background: var(--ink-soft); }
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---- WRITING LIST ---- */
.writing-list { border-top: 1px solid var(--ink-line); }
.write-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--ink-line);
  transition: background .18s;
}
.write-item:hover { background: rgba(201,162,39,.04); }
.write-meta {
  font-family: var(--mono);
  font-size: .77rem;
  color: var(--vellum-dim);
  padding-top: .2rem;
}
.write-meta .outlet {
  display: block;
  color: var(--violet);
  margin-top: .35rem;
}
.write-item h3 {
  font-size: 1.15rem;
  margin-bottom: .45rem;
}
.write-item a.title-link {
  text-decoration: none;
  color: var(--vellum);
  transition: color .15s;
}
.write-item a.title-link:hover { color: var(--gilt); }
.write-item p { color: var(--vellum-dim); font-size: .94rem; }
@media (max-width: 580px) {
  .write-item { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---- FACTS / DL ---- */
.facts {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--vellum-dim);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 1px solid var(--ink-line);
  padding-left: 1.5rem;
}
.facts dt {
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  margin-bottom: .3rem;
}
.facts dd { margin: 0; color: var(--vellum); line-height: 1.5; }

/* ---- INLINE LIST ---- */
.item-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.item-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--vellum-dim);
  font-size: .97rem;
}
.item-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--violet-dim);
}

/* ---- PAGE HERO ---- */
.page-hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 20ch;
  margin-bottom: 1.4rem;
}
.page-hero .lede {
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--vellum-dim);
}
.page-hero .lede strong { color: var(--vellum); font-weight: 600; }

/* ---- CHIP ROW ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.chip {
  font-family: var(--mono);
  font-size: .77rem;
  border: 1px solid var(--ink-line);
  color: var(--vellum-dim);
  padding: .45rem .85rem;
  border-radius: 2px;
}

/* ---- PULLQUOTE ---- */
.pullquote {
  border-left: 2px solid var(--gilt-dim);
  padding: 1.2rem 1.6rem;
  margin: 2rem 0;
  background: var(--violet-faint);
}
.pullquote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--vellum);
  line-height: 1.4;
  margin: 0;
}
.pullquote cite {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--vellum-dim);
  margin-top: .75rem;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- TIERS ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  margin-top: 2rem;
}
.tier {
  background: var(--ink-soft);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.tier .tier-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: .8rem;
  display: block;
}
.tier h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.tier p  { color: var(--vellum-dim); font-size: .93rem; }
@media (max-width: 780px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ---- DROPCAP ---- */
.dropcap::first-letter {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: .7;
  float: left;
  padding-right: .12em;
  padding-top: .06em;
  color: var(--gilt);
  font-weight: 560;
}

/* ---- CV STRIP ---- */
.cv-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  align-items: center;
  font-family: var(--mono);
  font-size: .82rem;
  margin-top: 2rem;
}
.cv-strip a {
  text-decoration: none;
  color: var(--vellum-dim);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: .2rem;
  transition: color .15s, border-color .15s;
}
.cv-strip a:hover { color: var(--gilt); border-color: var(--gilt); }
