/* ==========================================================================
   Logan Scott - E-Portfolio
   Palette: UF blue (#0021A5) / UF orange (#FA4616) on warm neutrals
   ========================================================================== */

:root {
  --blue:        #0021A5;
  --blue-deep:   #001873;
  --blue-tint:   #eef1fb;
  --orange:      #FA4616;
  --orange-tint: #fdeee9;

  --ink:         #14161c;
  --ink-soft:    #454b5a;
  --ink-faint:   #737a8c;
  --rule:        #e3e6ee;
  --paper:       #ffffff;
  --paper-warm:  #f7f8fc;

  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .06), 0 2px 8px rgba(20, 22, 28, .05);
  --shadow-md: 0 2px 4px rgba(20, 22, 28, .05), 0 12px 32px rgba(20, 22, 28, .09);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --wrap: 1080px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration-color: rgba(0, 33, 165, .3); text-underline-offset: 3px; }
a:hover { color: var(--orange); text-decoration-color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* --------------------------------------------------------------- skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------------- nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--blue-tint); color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 10px 24px 18px; gap: 2px; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, var(--orange-tint), transparent 60%),
    radial-gradient(760px 420px at 6% 0%, var(--blue-tint), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .headshot-frame { max-width: 260px; }
}
.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 .9rem;
}
.lede {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink); line-height: 1.5; margin-bottom: 1.4rem;
}
.headshot-frame { position: relative; }
.headshot-frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--orange); border-radius: var(--radius); z-index: -1;
}
.headshot {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
  background: var(--paper-warm);
}

/* --------------------------------------------------------------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #d93a10; color: #fff; transform: translateY(-1px); }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section-alt { background: var(--paper-warm); border-block: 1px solid var(--rule); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head .eyebrow { color: var(--blue); }
.section-head p:last-child { margin-bottom: 0; }

.page-head {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--blue-tint), var(--paper));
}
.page-head p { max-width: 680px; margin-bottom: 0; }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
a.card:hover h3 { color: var(--blue); }
.card-meta { font-size: .87rem; color: var(--ink-faint); margin-bottom: .9em; }
.card-more { font-weight: 600; color: var(--blue); font-size: .93rem; }
.card-more::after { content: " \2192"; transition: margin .15s ease; }
a.card:hover .card-more::after { margin-left: 4px; }

/* ------------------------------------------------------------------ tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.1em; }
.tags li {
  margin: 0; font-size: .82rem; font-weight: 550; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 5px 13px;
}
.tags.warm li { color: #a3300e; background: var(--orange-tint); }

/* ------------------------------------------------------------- fact list */
.facts { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.facts dl { margin: 0; }
.facts .row {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule);
}
.facts .row:last-child { border-bottom: 0; }
.facts dt { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 620px) { .facts .row { grid-template-columns: 1fr; gap: 2px; } }

/* ----------------------------------------------------------------- media */
figure { margin: 0 0 1.5em; }
figure img, .media-frame {
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--paper-warm);
}
figcaption { font-size: .88rem; color: var(--ink-faint); margin-top: .75em; line-height: 1.55; }

/* --------------------------------------------------------------- courses */
.course-block { margin-bottom: 2.25rem; }
.course-block:last-child { margin-bottom: 0; }
.course-block > h3 {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: .5rem; border-bottom: 2px solid var(--orange); margin-bottom: 1rem;
}
.course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.course-list li {
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px; align-items: baseline; margin: 0;
  padding: 11px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
}
.course-list .code { font-family: var(--mono); font-size: .86rem; font-weight: 600; color: var(--blue); }
.course-list .name { color: var(--ink); }
@media (max-width: 520px) { .course-list li { grid-template-columns: 1fr; gap: 2px; } }

/* -------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--rule);
}
.timeline > li { position: relative; padding: 0 0 1.75rem 34px; margin: 0; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--blue);
}
.timeline > li:first-child::before { border-color: var(--orange); }
.timeline .when { font-size: .85rem; color: var(--ink-faint); font-weight: 550; }
.timeline h3 { margin: .15em 0 .1em; font-size: 1.1rem; }
.timeline .where { font-size: .95rem; color: var(--blue); font-weight: 550; margin-bottom: .5em; }
.timeline ul { margin: 0; padding-left: 1.1em; }

/* ----------------------------------------------------------------- quote */
.pullquote {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5;
  color: var(--ink); border-left: 4px solid var(--orange);
  padding: .35em 0 .35em 1.25em; margin: 0 0 1.5em;
}

/* --------------------------------------------------------------- contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin: 0; }
.contact-list svg { width: 20px; height: 20px; stroke: var(--blue); flex: none; }
.contact-list a { font-weight: 550; word-break: break-word; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink); color: #b9bfd0;
  padding: 3rem 0 2rem; font-size: .93rem;
}
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9em; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: #ffb59c; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .85rem; color: #8b93a8;
}
.site-footer .contact-list svg { stroke: #ffb59c; }

/* --------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- resume */
.resume-doc { max-width: 820px; }
.resume-doc h2 {
  font-size: 1.05rem; font-family: var(--sans); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  border-bottom: 2px solid var(--blue); padding-bottom: .35rem; margin: 2.25rem 0 1.1rem;
}
.resume-doc h2:first-of-type { margin-top: 0; }
.entry { margin-bottom: 1.5rem; }
.entry:last-child { margin-bottom: 0; }
.entry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.entry-top h3 { margin: 0; font-size: 1.08rem; }
.entry-top .when { font-size: .88rem; color: var(--ink-faint); white-space: nowrap; padding-top: .25rem; }
.entry .sub { color: var(--blue); font-weight: 550; font-size: .95rem; margin: .1rem 0 .5rem; }
.entry ul { margin: 0; padding-left: 1.15em; }
.entry ul li { margin-bottom: .3em; }

.print-hint { font-size: .88rem; color: var(--ink-faint); }

@media print {
  @page { size: letter; margin: 0.5in; }

  .site-header, .site-footer, .btn-row, .print-hint, .no-print, .skip { display: none !important; }

  body { font-size: 9.5pt; line-height: 1.32; color: #000; background: #fff; }
  .wrap { max-width: none; padding-inline: 0; }
  .section, .page-head { padding: 0; border: 0; background: none; }
  .resume-doc { max-width: none; }

  h1 { font-size: 19pt; margin-bottom: .15em; }
  .page-head .eyebrow { display: none; }
  .page-head p { font-size: 9pt; margin-bottom: .6em; }

  .resume-doc h2 {
    font-size: 10pt; margin: .85em 0 .35em; padding-bottom: .12em;
    border-bottom-width: 1px; color: #000; border-color: #000;
  }
  .entry { margin-bottom: .7em; }
  .entry-top h3 { font-size: 10.5pt; }
  .entry .sub { font-size: 9pt; margin: 0 0 .2em; color: #333; }
  .entry ul li { margin-bottom: .12em; }
  .entry, .resume-doc h2 { break-inside: avoid; page-break-inside: avoid; }

  a { color: #000; text-decoration: none; }
}
