/* ==========================================================================
   romduck.com  |  shared stylesheet
   Three type registers, each meaning something:
     Barlow Condensed  = signage / command  (apparatus lettering, bureau signs)
     Spectral          = authorship         (textbooks, articles, abstracts)
     IBM Plex Mono     = the record         (credentials, dates, counts)
   ========================================================================== */

:root {
  --ink:        #14181d;
  --ink-2:      #1e242b;
  --slate:      #454f5a;
  --slate-lt:   #6d7883;
  --brass:      #9c7b33;
  --brass-lt:   #c9a45b;
  --paper:      #e8e9e6;
  --paper-2:    #f4f4f2;
  --rule:       #c8cac5;
  --rule-dk:    #333c46;

  --f-display: "Barlow Condensed", "Arial Narrow", Helvetica, sans-serif;
  --f-body:    "Spectral", Georgia, "Times New Roman", serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

a { color: inherit; }

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

/* --- utility type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.25rem;
  display: block;
}

.eyebrow--dk { color: var(--brass-lt); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */

.masthead {
  background: var(--ink);
  color: var(--paper-2);
  border-bottom: 1px solid var(--rule-dk);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.masthead-name {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.375rem;
  text-decoration: none;
  margin-right: auto;
}

.masthead-name span { color: var(--brass-lt); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: #aeb6bf;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--paper-2); border-bottom-color: var(--brass); }

/* ==========================================================================
   HERO  -- the name is the thesis
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--paper-2);
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* faint horizontal banding: apparatus reflective striping, turned way down */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(201,164,91,0.05) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-name {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.25rem, 13.5vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-name .given { display: block; color: var(--paper-2); }
.hero-name .family { display: block; color: var(--brass-lt); }

.hero-creds {
  font-family: var(--f-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.875rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c959f;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dk);
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  line-height: 1.55;
  color: #d3d8dd;
  max-width: 44ch;
  margin: 2rem 0 0;
}

.hero-lede strong { color: var(--paper-2); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

.btn {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--brass);
  color: var(--brass-lt);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--brass); color: var(--ink); }

.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-lt); border-color: var(--brass-lt); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--paper2 { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--paper-2); }

.band-title {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 1.75rem;
}

/* --- three registers of work -------------------------------------------- */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: 0.5rem;
}

.role { border-top: 2px solid var(--ink); padding-top: 1rem; }

.role h3 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.role p { margin: 0; color: var(--slate); font-size: 0.9375rem; line-height: 1.6; }

.role-tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.35rem;
}

/* --- THE CATALOG  (signature block) -------------------------------------- */

.catalog { border-top: 1px solid var(--rule-dk); margin-top: 2rem; }

.cat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule-dk);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.cat-row:hover { background: rgba(201,164,91,0.07); padding-left: 0.85rem; }

@media (min-width: 720px) {
  .cat-row { grid-template-columns: 15rem 1fr auto; align-items: baseline; }
}

.cat-name {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.3125rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.cat-sample {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #98a1ab;
  font-style: italic;
}

.cat-count {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--brass-lt);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.catalog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.catalog-total {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c959f;
}

/* --- record list (honors / service) -------------------------------------- */

.record { margin: 0; }

.record div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .record div { grid-template-columns: 5.5rem 1fr; align-items: baseline; }
}

.record dt {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

.record dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.record dd span { color: var(--slate-lt); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* --- image placeholder --------------------------------------------------- */

.ph {
  border: 1px dashed var(--brass);
  background: rgba(156,123,51,0.06);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  line-height: 1.9;
}

/* ==========================================================================
   PROGRAM PAGES
   ========================================================================== */

.page-head { background: var(--ink); color: var(--paper-2); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.page-head h1 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-head p {
  max-width: 58ch;
  color: #c2c9d0;
  font-size: 1.0625rem;
  margin: 1.5rem 0 0;
}

.page-meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c959f;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dk);
}

.sessions { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.session { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.session:last-of-type { border-bottom: 0; margin-bottom: 0; }

.session-title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.5rem;
  max-width: 24ch;
}

.session-sub {
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--brass);
  margin: 0 0 1.5rem;
  max-width: 46ch;
}

.session-body { max-width: 68ch; }
.session-body p { margin: 0 0 1.1rem; }
.session-body p:last-child { margin-bottom: 0; }

.objectives {
  margin-top: 2rem;
  border-left: 2px solid var(--brass);
  padding: 0.25rem 0 0.25rem 1.5rem;
  max-width: 62ch;
}

.objectives h3 {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
  margin: 0 0 0.85rem;
}

.objectives ul { margin: 0; padding: 0; list-style: none; }

.objectives li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate);
}

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

.objectives li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 1px;
  background: var(--brass);
}

/* ==========================================================================
   INDEPENDENCE NOTICE + FOOTER
   ========================================================================== */

.notice {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
}

.notice p {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--slate);
  max-width: 78ch;
  margin: 0;
}

.site-foot { background: var(--ink); color: #8c959f; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-name {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--paper-2);
  margin: 0 0 0.4rem;
  line-height: 1;
}

.foot-creds,
.foot-links a,
.foot-note {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.foot-creds { text-transform: uppercase; color: var(--brass-lt); }

.foot-links { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a { color: #8c959f; text-decoration: none; text-transform: uppercase; }
.foot-links a:hover { color: var(--paper-2); }

.foot-note { color: #5d6771; text-transform: none; letter-spacing: 0.04em; }

/* ==========================================================================
   MOTION
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-name .given,
.hero-name .family,
.hero-creds,
.hero-lede,
.hero-actions {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.hero-name .given  { animation-delay: 0.05s; }
.hero-name .family { animation-delay: 0.14s; }
.hero-creds        { animation-delay: 0.26s; }
.hero-lede         { animation-delay: 0.34s; }
.hero-actions      { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   IMAGERY
   ========================================================================== */

.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate-lt); margin-top: 0.75rem; line-height: 1.7;
}
.band--ink .figure figcaption { color: #7b858f; }

.band-img { width: 100%; display: block; }
.band-img img { display: block; width: 100%; height: auto; }

.hero-figure { margin: 2.75rem 0 0; position: relative; }
.hero-figure img { display: block; width: 100%; height: auto; filter: saturate(0.85) contrast(1.03); }
.hero-figure figcaption {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7b858f; margin-top: 0.75rem;
}

.portrait { max-width: 340px; }
.portrait img { display: block; width: 100%; height: auto; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start;
}
.split--center { align-items: center; }

/* --- category index grid ------------------------------------------------- */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cat-card { background: var(--paper-2); padding: 1.5rem 1.35rem; text-decoration: none; color: inherit; display: block; transition: background 0.15s ease; }
.cat-card:hover { background: var(--paper); }
.cat-card h3 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.02em; margin: 0 0 0.4rem; line-height: 1.1; }
.cat-card p { margin: 0; font-size: 0.875rem; color: var(--slate); line-height: 1.5; }
.cat-card .n { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 0.6rem; }

/* --- session index (jump list) ------------------------------------------- */

.jump { columns: 2; column-gap: 2.5rem; margin: 0 0 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .jump { columns: 1; } }
.jump li { break-inside: avoid; margin-bottom: 0.55rem; font-size: 0.9375rem; line-height: 1.45; }
.jump a { color: var(--slate); text-decoration: none; border-bottom: 1px solid transparent; }
.jump a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* --- session outline block ----------------------------------------------- */

.outline { margin-top: 1.75rem; max-width: 62ch; }
.outline h3 { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-lt); font-weight: 400; margin: 0 0 0.75rem; }
.outline ul { margin: 0; padding-left: 1.1rem; }
.outline li { font-size: 0.9rem; line-height: 1.55; color: var(--slate); margin-bottom: 0.35rem; }

/* --- prose pages ---------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: 0.01em; margin: 2.75rem 0 1rem; line-height: 1.08; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.02em; margin: 2rem 0 0.6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.6; }
.prose strong { font-weight: 600; }

/* --- quotes --------------------------------------------------------------- */

.quote { border-left: 2px solid var(--brass); padding-left: 1.5rem; margin: 2rem 0; max-width: 60ch; }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; font-style: italic; color: var(--ink); }
.band--ink .quote blockquote { color: var(--paper-2); }
.quote cite { display: block; margin-top: 0.85rem; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: var(--brass); line-height: 1.8; }

/* --- editorial note (for Rom, remove before launch if desired) ------------- */
.todo { border: 1px dashed var(--brass); background: rgba(156,123,51,0.07); padding: 1.1rem 1.35rem; font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.8; color: var(--brass); margin: 1.5rem 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.15rem 1.5rem; }
@media (min-width: 640px) { .contact-list li { grid-template-columns: 7rem 1fr; align-items: baseline; } }
.contact-list .k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.contact-list a { color: inherit; }
