/* ============================================================
   Linda Nichols personal site
   Look: soft watercolor / editorial, blue palette on warm paper
   Type: Marcellus (display) + PT Serif (body)
   ============================================================ */

:root {
  --paper:   #f1eee7;   /* soft warm paper */
  --paper-2: #e8e5db;
  --surface: #faf8f3;   /* cards */
  --ink:     #26333e;   /* deep slate-blue */
  --ink-2:   #566572;
  --line:    rgba(38, 51, 62, .14);
  --blue:    #356b96;   /* accent / links */
  --teal:    #2f7d8c;
  --indigo:  #435a86;

  --shadow:    0 14px 38px rgba(38, 51, 62, .12), 0 3px 10px rgba(38, 51, 62, .06);
  --shadow-sm: 0 6px 18px rgba(38, 51, 62, .10);
  --radius:  16px;
  --maxw:    960px;

  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body:    "PT Serif", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #15212a;   /* deep petrol */
    --paper-2: #101a21;
    --surface: #1d2b35;
    --ink:     #e7eef2;
    --ink-2:   #a6b6c0;
    --line:    rgba(231, 238, 242, .14);
    --blue:    #7fb2da;
    --teal:    #57b0bf;
    --indigo:  #8ea4cf;
    --shadow:    0 16px 40px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-sm: 0 8px 22px rgba(0, 0, 0, .4);
  }
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* soft paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .35; } }

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; }
::selection { background: rgba(53, 107, 150, .22); color: var(--ink); }

/* ---- nav ---- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 20px; border-bottom: 1px solid var(--line); }
.nav .brand { font-family: var(--display); font-size: 21px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.nav .brand:hover { text-decoration: none; color: var(--blue); }
.nav .links a { color: var(--ink); margin-left: 26px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.nav .links a:hover { color: var(--blue); text-decoration: none; }

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; font-size: 12px; color: var(--blue); margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--blue); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; }
.hero-inner { padding: 44px 0 88px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(48px, 10vw, 104px); margin: 0 0 26px; color: var(--ink); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lede { font-size: 20px; line-height: 1.6; color: var(--ink-2); margin: 0 0 34px; }
.hero .lede strong { color: var(--ink); font-weight: 700; }

/* line motif: thin diagonal hatch fading into the top-right corner */
.lines {
  position: absolute; top: 0; right: 0; width: min(48%, 560px); height: 440px; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(56deg, rgba(53,107,150,.5) 0 1px, transparent 1px 18px);
  -webkit-mask-image: radial-gradient(135% 130% at 100% 0, #000 26%, transparent 70%);
          mask-image: radial-gradient(135% 130% at 100% 0, #000 26%, transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .lines { background-image: repeating-linear-gradient(56deg, rgba(127,178,218,.3) 0 1px, transparent 1px 18px); }
}
@media (max-width: 900px) { .lines { height: 320px; width: min(60%, 360px); } }
@media (max-width: 560px) { .lines { height: 200px; width: 64%; } }

/* ---- buttons ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--blue); border-color: transparent; color: #f7fbff; }

/* ============================================================
   BIO cover (portrait + name)
   ============================================================ */
.bio-head { display: flex; gap: 44px; align-items: center; padding: 22px 0 58px; flex-wrap: wrap; }

.portrait { position: relative; width: 210px; flex-shrink: 0; }
.portrait .frame {
  position: relative; z-index: 1; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow); background: var(--paper-2); border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}
.portrait .monogram {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 62px; letter-spacing: .06em; color: var(--ink-2);
  opacity: .55;
}
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.bio-head h1 { font-size: clamp(42px, 8vw, 68px); margin: 0 0 14px; color: var(--ink); }
.bio-head .tagline { font-family: var(--body); font-style: italic; font-size: 18px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.5; }
.cover-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--blue);
  color: var(--blue); background: transparent; transition: background .16s ease, color .16s ease;
}
.chip:hover { background: var(--blue); color: #f7fbff; text-decoration: none; }

/* ============================================================
   CONTENT
   ============================================================ */
main { padding: 4px 0 0; }

.note {
  font-family: var(--body); font-size: 15px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 14px 18px; margin: 30px 0 0;
}
.note code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--blue); }

section.block { margin: 56px 0; }
section.block > h2 {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; font-size: 13px; color: var(--blue);
  margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
section.block > h2::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }

/* cards */
.bio-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.bio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bio-card .label { font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin: 0 0 12px; }
.bio-card p { margin: 0; font-size: 17px; }
.bio-card p + p { margin-top: 8px; }

/* events */
.event { display: flex; gap: 24px; align-items: baseline; }
.event .when { font-family: var(--display); font-size: 15px; letter-spacing: .04em; color: var(--blue); flex-shrink: 0; min-width: 128px; text-transform: uppercase; }
.event .what strong { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--ink); }
.event .what .meta { color: var(--ink-2); font-size: 15px; }

.asset-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* two-column lists */
.links-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.links-list a, .links-list span.pair { display: flex; align-items: baseline; gap: 11px; }
.links-list .k { font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); min-width: 92px; flex-shrink: 0; }
.topic { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: 17px; }
.topic::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--teal); flex-shrink: 0; transform: translateY(8px); }

/* home highlight cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 46px 0; }
.card {
  position: relative; display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card .kicker { position: relative; z-index: 1; font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin: 0 0 10px; }
.card h3 { position: relative; z-index: 1; font-size: 25px; margin: 0 0 8px; color: var(--ink); }
.card p { position: relative; z-index: 1; margin: 0; color: var(--ink-2); font-size: 15px; }

/* home highlights */
.hl-list { display: grid; gap: 18px; }
.hl-role { display: block; font-family: var(--display); font-size: 21px; color: var(--ink); }
.hl-role a { color: var(--blue); }
.hl-role a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hl-desc { display: block; color: var(--ink-2); font-size: 15px; margin-top: 3px; }
.hl-sub { font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--blue); margin: 30px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }
.tag-more { color: var(--ink-2); font-size: 14px; }

/* footer */
footer {
  border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0 60px;
  color: var(--ink-2); font-family: var(--body); font-size: 14px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--ink-2); }
footer a:hover { color: var(--blue); }

/* ---- responsive ---- */
@media (max-width: 620px) {
  body { font-size: 17px; }
  .links-list, .cards { grid-template-columns: 1fr; }
  .event { flex-direction: column; gap: 4px; }
  .event .when { min-width: 0; }
  .nav .links a { margin-left: 16px; }
}

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