/* ============================================================
   cadendbartley.com — editorial, print-inspired layout
   Serif-led typography, hairline rules, no cards, no JS.
   ============================================================ */

:root {
  --paper: #faf9f5;
  --ink: #1c2130;
  --body: #343b4a;
  --muted: #6d7382;
  --hairline: #e3ded2;
  --accent: #b04a08;        /* burnt Clemson orange, legible on paper */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

::selection { background: rgba(176, 74, 8, 0.18); }

strong { color: var(--ink); font-weight: 600; }

/* ---------- Small-caps labels ---------- */

.label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.masthead-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.masthead-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.masthead-name:hover { color: var(--accent); }

.masthead-nav { display: flex; gap: 20px; }

.masthead-nav a,
.masthead-resume {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.masthead-nav a:hover { color: var(--ink); }

.masthead-resume { color: var(--accent); white-space: nowrap; }
.masthead-resume:hover { text-decoration: underline; text-underline-offset: 3px; }

.paren { color: var(--muted); font-weight: 400; }

/* ---------- Introduction ---------- */

.intro {
  padding: 84px 0 56px;
}

.intro h1 {
  font-size: clamp(2.7rem, 6.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.intro-role {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.intro-text {
  font-size: 1.22rem;
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 30px;
}

.intro-seeking {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.intro-links {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

/* ---------- Key figures ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 30px 0;
  gap: 0 32px;
}

.figure { padding: 0 0 0 0; }

.figure + .figure { border-left: 1px solid var(--hairline); padding-left: 32px; }

.figure-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
  font-variant-numeric: oldstyle-nums;
}

.figure-denom {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 400;
}

.figure-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.section {
  padding: 72px 0 0;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-sub {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
}

.prose { max-width: 660px; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Entries (dated rows) ---------- */

.entry {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 0 36px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
  margin-top: 30px;
}

.entry:first-of-type { margin-top: 34px; }

.entry + .entry { margin-top: 0; }

.entry-when {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 6px;
  letter-spacing: 0.02em;
}

.entry-body h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.soft {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.05rem;
}

.entry-meta {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.entry-body ul {
  list-style: none;
  margin-top: 12px;
}

.entry-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  max-width: 620px;
}

.entry-body li:last-child { margin-bottom: 0; }

.entry-text { max-width: 620px; margin-top: 6px; }

.entry-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Distinctions (awards, honors) ---------- */

.distinction {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 14px 0 4px;
  max-width: 600px;
}

.distinction-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}

.distinction p:last-child {
  font-size: 1rem;
  color: var(--body);
}

/* ---------- Fact rows (skills, contact) ---------- */

.facts { margin-top: 26px; }

.facts-row {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 0 36px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.facts-row:last-child { border-bottom: 1px solid var(--hairline); }

.facts-row dt {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 3px;
  letter-spacing: 0.02em;
}

.facts-row dd { font-size: 1.05rem; }

.contact-facts { max-width: 660px; }

.entry-body .facts { margin-top: 14px; max-width: 620px; }

/* ---------- Coursework band ---------- */

.coursework { margin-top: 44px; }

.coursework-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.coursework-head h3 { font-size: 1.35rem; font-weight: 500; }

.coursework-when {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.course-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0 26px;
}

.course-group + .course-group {
  border-left: 1px solid var(--hairline);
  padding-left: 30px;
}

.course-group-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.course-list { list-style: none; }

.course { margin-bottom: 12px; }
.course:last-child { margin-bottom: 0; }

.course-code {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1px;
}

.course-name {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}

.honors-tag {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(176, 74, 8, 0.45);
  border-radius: 999px;
  padding: 1px 8px 2px;
  margin-left: 7px;
  white-space: nowrap;
  vertical-align: 2px;
}

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

.footer {
  margin-top: 88px;
  border-top: 1px solid var(--hairline);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Affiliation logos ---------- */

.affiliations {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.affil-logo {
  width: auto;
  display: block;
}

.affil-paw { height: 44px; }
.affil-business { height: 40px; }

.affil-div {
  width: 1px;
  height: 34px;
  background: var(--hairline);
}

/* Clemson mark beside the Education heading */
.edu-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.edu-head h2 { margin-bottom: 0; }

.edu-mark {
  height: 42px;
  width: auto;
  display: block;
}

/* ---------- Imagery ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.intro-main { min-width: 0; }

/* Framed portrait */
.portrait-frame {
  margin: 0;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 32px rgba(28, 33, 48, 0.13);
  background: var(--paper-2, #f2eee6);
}

/* Framed media — photos and screenshots */
.media-figure {
  margin: 28px 0 0;
  max-width: 620px;
}

.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 24px rgba(28, 33, 48, 0.10);
  background: #f2eee6;
}

.media-figure figcaption,
.award-thumb figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* Award images */
.award-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}

.award-thumb {
  margin: 0;
  width: 230px;
  max-width: 100%;
}

.award-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 18px rgba(28, 33, 48, 0.09);
  background: #f2eee6;
}

.award-thumb figcaption { margin-top: 8px; text-align: center; }

.award-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 16px;
  max-width: 540px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .portrait-frame { order: -1; max-width: 260px; }
  .course-columns { grid-template-columns: 1fr; gap: 22px 0; }
  .course-group + .course-group {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--hairline);
    padding-top: 22px;
  }
}

@media (max-width: 640px) {
  body { font-size: 17.5px; }
  .masthead-nav { display: none; }
  .figures { grid-template-columns: 1fr; padding: 6px 0; }
  .figure + .figure { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 20px; margin-top: 20px; }
  .intro { padding: 56px 0 44px; }
  .intro-text { font-size: 1.12rem; }
  .section { padding: 56px 0 0; }
  .entry,
  .facts-row { grid-template-columns: 1fr; gap: 6px 0; }
  .entry-when { padding-top: 0; }
  .footer { margin-top: 64px; }
  .footer-row { flex-direction: column; }
  .award-thumb { width: 100%; max-width: 300px; }
  .affiliations { gap: 14px 16px; flex-wrap: wrap; margin-bottom: 22px; }
  .affil-logo { height: 38px; }
  .affil-div { display: none; }
}
