/* ashtonpleickhardt.com
   Visual biography / personal archive. Editorial, image-led, restrained.
   Palette: warm white #FCFCFA, ink #171C24, muted #5B6472, accent #2563EB,
   dark sections #0B0F17. Type: IBM Plex Serif / Sans / Mono. */

:root {
  color-scheme: light only;
  --paper: #FCFCFA;
  --ink: #171C24;
  --muted: #5B6472;
  --faint: #8A93A1;
  --accent: #2563EB;
  --accent-soft: #9DBCF8;
  --line: #E5E7EB;
  --tint: #F2F6FE;
  --dark: #0B0F17;
  --dark-text: #C9D2E0;
  --measure: 46rem;
  --wide: 66rem;
}

* { box-sizing: border-box; }
html { background: var(--paper) !important; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper) !important; color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.35rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.35rem; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: "IBM Plex Serif", Georgia, serif; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.9rem; font-weight: 600; }
h2, h1.page { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; line-height: 1.6; }
.muted { color: var(--muted); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.5rem; }

.meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.meta .sep { color: var(--accent); padding: 0 0.35rem; }
.section-label { display: block; margin-bottom: 1.1rem; }
.dark .meta, .dark .section-label { color: var(--accent-soft); }

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 252, 250, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--accent); }
.nav-desktop { display: none; gap: 1.4rem; }
.nav-desktop a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.45rem 0.8rem; cursor: pointer; color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Slide-out panel */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(11, 15, 23, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 50;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(20rem, 86vw);
  background: var(--paper); z-index: 60; padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%); transition: transform 0.28s ease;
  overflow-y: auto; border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.nav-panel.open { transform: none; }
.nav-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.nav-close {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 2.4rem; height: 2.4rem; cursor: pointer; color: var(--ink); font-size: 1.1rem; line-height: 1;
}
.nav-close:hover { border-color: var(--accent); color: var(--accent); }
.nav-panel nav { display: flex; flex-direction: column; }
.nav-panel nav a {
  font-family: "IBM Plex Serif", Georgia, serif; font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none; padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-panel nav a:hover { color: var(--accent); }
.nav-panel .panel-meta { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Sections ---------- */
section.band { padding: 4rem 0; }
section.band + section.band { border-top: 1px solid var(--line); }
section.band.dark {
  background: var(--dark); color: var(--dark-text); border-top: none;
}
.dark h2, .dark h3 { color: #F2F5FA; }
.dark a { color: #A9C4F9; }
.dark .muted { color: #8D98A8; }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.25rem; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 3.5rem; } }
.hero h1 {
  font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1.05; margin: 0.9rem 0 1rem;
}
.hero .eyebrow-line {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent);
}
.hero .lede { max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 1.4rem; }
.hero-social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 0; list-style: none; }
.hero-social li { margin: 0; }
.hero-social a {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.hero-social a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.92rem; font-weight: 500; padding: 0.6rem 1.15rem; border-radius: 6px;
  transition: background 0.15s ease;
}
.btn:hover { background: #1D4FD7; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.dark .btn.ghost { color: #A9C4F9; border-color: #3D5DA8; }
button.btn {
  border: none; cursor: pointer; font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* ---------- Resume request form ---------- */
.resume-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 28rem; margin-top: 1.5rem;
}
.resume-form input[type="text"],
.resume-form input[type="email"] {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 0.95rem;
  padding: 0.7rem 0.85rem; background: var(--paper); color: var(--ink);
}
.resume-form input::placeholder { color: var(--faint); }
.resume-form button.btn { align-self: flex-start; }

/* ---------- Image system ---------- */
.img-frame { border-radius: 8px; overflow: hidden; background: var(--tint); }
.img-frame.logo { max-width: 9.5rem; background: transparent; border-radius: 0; }
.img-frame.logo img { width: 100%; height: auto; }
.img-slot {
  border: 1px dashed #C9D6EE; border-radius: 8px; background: var(--tint);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 1rem; text-align: center;
}
.img-slot .meta { color: var(--accent); }
.img-slot .note { font-size: 0.85rem; color: var(--muted); max-width: 16rem; }
.dark .img-slot { background: rgba(255,255,255,0.04); border-color: #2A3A5C; }

/* ---------- Identity ---------- */
.identity-grid { display: grid; gap: 0.1rem 2rem; }
@media (min-width: 700px) { .identity-grid { grid-template-columns: 1fr 1fr; } }
.identity-grid > div { display: grid; grid-template-columns: minmax(6rem, 8.5rem) 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.identity-grid dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.3rem;
}
.identity-grid dd { margin: 0; font-size: 0.93rem; }

/* ---------- Story ---------- */
.story { list-style: none; margin: 0; padding: 0; position: relative; }
.story::before { content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line); }
.story li { position: relative; margin: 0; padding: 0 0 2.6rem 2rem; }
.story li:last-child { padding-bottom: 0; }
.story li::before {
  content: ""; position: absolute; left: 0; top: 0.42rem; width: 0.72rem; height: 0.72rem;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
}
.story .marker {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.3rem;
}
.story p { max-width: 36rem; margin-bottom: 0.9rem; }
.story .img-frame, .story .img-slot { max-width: 34rem; margin-top: 0.4rem; }
.story .img-slot { aspect-ratio: 3 / 2; }

/* ---------- Goals (dark) ---------- */
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .goals { grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; } }
.goals li { margin: 0; }
.goals .no {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--accent-soft); display: block; margin-bottom: 0.35rem;
}
.goals h3 { margin-bottom: 0.35rem; }
.goals p { font-size: 0.95rem; margin: 0; color: var(--dark-text); }

/* ---------- Interests ---------- */
.interests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 0.6rem; }
.interests li {
  margin: 0; font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(1.05rem, 3vw, 1.4rem);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 1.1rem;
}

/* ---------- Feature (Investabot on home) ---------- */
.feature-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) { .feature-grid { grid-template-columns: 6fr 6fr; align-items: center; gap: 3rem; } }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 1.1rem 0 1.3rem; }
.tech-list li {
  margin: 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem;
  letter-spacing: 0.05em; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; color: var(--muted);
}

.pullquote {
  border-left: 3px solid var(--accent); background: var(--tint);
  padding: 1.05rem 1.25rem; margin: 1.7rem 0;
  font-family: "IBM Plex Serif", Georgia, serif; font-size: 1.12rem; line-height: 1.5;
}

/* ---------- Timeline ---------- */
ol.milestones { list-style: none; margin: 0; padding: 0; }
ol.milestones li {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.2rem;
  padding: 0.85rem 0; margin: 0; border-bottom: 1px solid var(--line);
}
ol.milestones li:last-child { border-bottom: none; }
ol.milestones .year { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--accent); padding-top: 0.3rem; }

/* ---------- Elsewhere ---------- */
.elsewhere { list-style: none; margin: 0; padding: 0; }
.elsewhere li { margin: 0; border-bottom: 1px solid var(--line); }
.elsewhere li:last-child { border-bottom: none; }
.elsewhere a { display: block; padding: 1.05rem 0; text-decoration: none; color: inherit; }
.elsewhere a:hover .name { color: var(--accent); }
.elsewhere .name { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; font-size: 1.25rem; }
.elsewhere .desc { font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- Rows (writing, resume) ---------- */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: none; }
.row-title { font-weight: 500; }
.row-meta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.status {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.1rem 0.5rem; margin-left: 0.45rem; vertical-align: middle; white-space: nowrap;
}
.updated { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.dark .updated { color: #7C8798; }

/* ---------- Case study ---------- */
.cs-head dl { display: grid; grid-template-columns: minmax(5.5rem, 7.5rem) 1fr; gap: 0.4rem 1.2rem; margin: 1.5rem 0 0; }
.cs-head dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
.cs-head dd { margin: 0; font-size: 0.93rem; }
.cs-toc { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.cs-toc li { margin: 0 0 0.4rem; break-inside: avoid; }
.cs-toc a { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.cs-toc a:hover { color: var(--accent); }
.cs-toc .no { color: var(--accent); margin-right: 0.4rem; }
@media (max-width: 520px) { .cs-toc { columns: 1; } }
.cs-section { margin-top: 3rem; }
.cs-section .head {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem; margin-bottom: 1.1rem;
}
.cs-section .head .no { color: var(--accent); margin-right: 0.6rem; }

/* ---------- Closing ---------- */
.closing { text-align: left; }
.closing h2 { font-size: clamp(2rem, 7vw, 3.2rem); }
.closing .links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .wrap-wide { padding-top: 1.6rem; padding-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; font-size: 0.85rem; }
.site-footer .fine { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* Light-only enforcement: restate light values under a dark preference so
   no webview theme can invert the page. Scoped so .dark sections keep
   their intentional dark styling. */
@media (prefers-color-scheme: dark) {
  html, body { background: #FCFCFA !important; color: #171C24 !important; }
  section.band:not(.dark), .site-header, .site-footer, .nav-panel { background: #FCFCFA !important; }
  section.band:not(.dark) h2, section.band:not(.dark) h3,
  section.band:not(.dark) p, section.band:not(.dark) li, section.band:not(.dark) dd { color: #171C24; }
}

/* Beyond the resume: placeholder interests + photo pair */
.interests.coming-list { margin-top: 0.6rem; }
.interests li.coming { border-style: dashed; color: var(--muted); font-size: clamp(0.9rem, 2.5vw, 1.05rem); }
.interests li.coming .meta { margin-right: 0.5rem; color: var(--accent); }
.beyond-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; max-width: 40rem; }
@media (max-width: 480px) { .beyond-photos { grid-template-columns: 1fr; } }
