/* ==========================================================================
   Light Theme Override - Cream & Navy
   Inspired by minimal editorial portfolio aesthetic
   ========================================================================== */

:root {
  --bg: #faf8ef;            /* cleaner, brighter cream */
  --bg-alt: #f3f0e2;        /* slightly deeper cream */
  --bg-sidebar: #f1eee0;    /* sidebar tint */
  --ink: #0f172a;           /* near-black for body — strong contrast */
  --ink-strong: #020617;    /* deepest for headings */
  --ink-soft: #1e293b;      /* still dark for secondary */
  --ink-faint: #475569;     /* labels / meta — readable but muted */
  --line: rgba(15, 23, 42, 0.32);
  --line-soft: rgba(15, 23, 42, 0.18);
  --accent: #0f172a;
  --accent-warm: #8b8460;
}

/* ---------- Base ---------- */
html, body {
  background: var(--bg) !important;
}
body, body.is-preload {
  font-family: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  color: var(--ink) !important;
  background: var(--bg) !important;
  font-weight: 450;
  letter-spacing: -0.005em;
  line-height: 1.65;
}

#wrapper {
  background: var(--bg) !important;
}
#wrapper > * {
  background: var(--bg) !important;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', 'Inter', sans-serif !important;
  color: var(--ink-strong) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem) !important;
  line-height: 1.02 !important;
  font-weight: 900 !important;
  margin-bottom: 0.6em !important;
  text-transform: none !important;
}
h1 .accent {
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  margin-bottom: 1.2em !important;
}

p, li, span, a, div {
  color: var(--ink);
}

a {
  color: var(--ink-strong) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line) !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover {
  color: #0f172a !important;
  border-bottom-color: var(--ink-strong) !important;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

strong, b {
  color: var(--ink-strong) !important;
  font-weight: 600;
}

em, i {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.92em;
}

/* ---------- Section wrappers (kill the purple) ---------- */
.wrapper {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border: none !important;
}
.wrapper.style1,
.wrapper.style1-alt,
.wrapper.style2,
.wrapper.style2-alt,
.wrapper.style3,
.wrapper.style3-alt {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}

.wrapper.style2 {
  border-top: 1px solid var(--line-soft) !important;
}

.wrapper .inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 6em 4em !important;
  margin: 0 !important;
}
.wrapper.fullscreen .inner {
  padding: 9em 4em 6em !important;
}

/* ---------- Intro / hero ---------- */
#intro {
  min-height: 100vh;
}
#intro .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.32em !important;
  color: var(--ink-faint) !important;
  text-transform: uppercase;
  margin: 0 0 1.5em !important;
}

.lead {
  font-size: 1.3rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
  max-width: 38em;
  margin: 0 0 4em !important;
  line-height: 1.7;
}

/* ---------- Contact grid (replaces the boring list) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 0.9fr 1.5fr 0.9fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 3em;
  max-width: 82em;
}
.contact-item {
  background: var(--bg);
  padding: 1.6em 0.9em;
}
.contact-label {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
  margin: 0 0 0.8em !important;
}
.contact-value {
  display: inline-block;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--ink-strong) !important;
  border-bottom: none !important;
  overflow-wrap: anywhere;
  word-break: normal;
  transition: color 0.2s ease;
}
.contact-value:hover {
  color: #0f172a !important;
  border-bottom: none !important;
}

@media screen and (max-width: 980px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Section number ---------- */
.section-num {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--ink-faint) !important;
  letter-spacing: 0.2em !important;
  margin: 0 0 1.5em !important;
  display: inline-block;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--ink-strong);
}

/* ---------- Timeline list (replaces bullet lists) ---------- */
ul.timeline {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 68em;
}
ul.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2em;
  padding: 2.4em 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
ul.timeline li:last-child {
  border-bottom: 1px solid var(--line-soft);
}
ul.timeline .date {
  font-family: 'Archivo', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--ink-faint) !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.25em;
}
ul.timeline .content {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  line-height: 1.55;
}
ul.timeline .content em {
  display: block;
  margin-top: 0.3em;
  font-size: 1.05rem;
  font-weight: 450;
  color: var(--ink-faint);
}

/* Rich entry components (Projects, Awards) */
.entry-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--ink-strong) !important;
  line-height: 1.4 !important;
  letter-spacing: -0.015em !important;
  margin: 0 !important;
  font-family: inherit !important;
}
.entry-title + .entry-meta { margin-top: 0.4em !important; }
.entry-meta {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
  margin: 0 !important;
}
.entry-desc {
  font-size: 1.05rem !important;
  font-weight: 450 !important;
  color: var(--ink-soft) !important;
  line-height: 1.65 !important;
  margin: 0.9em 0 0 !important;
  max-width: 52em;
}

/* Award: badge first, then title */
.content > .badge { margin-bottom: 0.7em !important; }

/* Project detail rows */
.detail {
  margin-top: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  max-width: 52em;
}
.detail-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5em;
  align-items: baseline;
}
.detail-label {
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: var(--ink-faint) !important;
  text-transform: uppercase;
  padding-top: 0.15em;
}
.detail-text {
  font-size: 1.02rem !important;
  font-weight: 450 !important;
  color: var(--ink-soft) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
.detail-link {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  font-family: 'Archivo', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--ink-strong) !important;
  border-bottom: 1px solid var(--line) !important;
  padding-bottom: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.detail-link:hover {
  color: var(--ink-strong) !important;
  border-bottom-color: var(--ink-strong) !important;
}
.detail-link .ext {
  display: inline-block;
  margin-left: 0.2em;
  font-weight: 400;
  color: var(--ink-faint);
}

@media screen and (max-width: 736px) {
  ul.timeline li {
    grid-template-columns: 1fr;
    gap: 0.6em;
  }
  ul.timeline .date { padding-top: 0; }
  .detail-row { grid-template-columns: 1fr; gap: 0.3em; }
}

/* ---------- Award & Category badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  padding: 0.22em 0.7em;
  border: 1px solid var(--ink-strong);
  color: var(--ink-strong) !important;
  border-radius: 2px;
  margin-right: 0.7em;
  vertical-align: 0.12em;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--ink-strong);
  color: var(--bg) !important;
}

/* Activities category badges */
.badge-talk {
  border-color: var(--ink-strong);
  color: var(--ink-strong) !important;
  background: transparent;
}
.badge-program {
  border-color: var(--ink-faint);
  color: var(--ink-faint) !important;
  background: rgba(15, 23, 42, 0.04);
}
.badge-member {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--bg) !important;
}

/* Topic / role line for Activities */
.entry-topic {
  margin: 0.8em 0 0 !important;
  font-size: 1.05rem !important;
  font-weight: 450 !important;
  color: var(--ink-soft) !important;
  line-height: 1.55;
}
.topic-label {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.7em;
  padding: 0.1em 0.5em;
  border: 1px solid var(--line);
  border-radius: 2px;
  vertical-align: 2px;
}

/* ---------- Sidebar ---------- */
#sidebar {
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--line-soft) !important;
}
#sidebar .inner {
  padding-top: 3em;
}
#sidebar nav ul li a {
  color: var(--ink-soft) !important;
  border-bottom: none !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  font-weight: 500 !important;
  padding: 0.9em 0 !important;
  border-top: 1px solid var(--line-soft) !important;
  transition: color 0.2s ease, padding 0.2s ease;
}
#sidebar nav ul li:last-child a {
  border-bottom: 1px solid var(--line-soft) !important;
}
#sidebar nav ul li a:hover,
#sidebar nav ul li a.active {
  color: var(--ink-strong) !important;
  padding-left: 0.5em !important;
}
#sidebar nav a:before,
#sidebar nav a:after,
#sidebar nav ul li a:before,
#sidebar nav ul li a:after,
#sidebar nav ul li.active a:before,
#sidebar nav ul li.active a:after,
#sidebar nav a.active:before,
#sidebar nav a.active:after {
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  content: none !important;
  max-width: 0 !important;
}
/* Kill the purple gradient under-bar on active nav items */
#sidebar nav ul li.active a,
#sidebar nav ul li a.active,
#sidebar nav a.active {
  background-image: none !important;
  background: transparent !important;
  box-shadow: inset 3px 0 0 var(--ink-strong) !important;
  color: var(--ink-strong) !important;
}

/* Kill h1.major::after purple gradient */
h1.major:after, h1:after, h2.major:after, h2:after {
  background-image: none !important;
  background: transparent !important;
  content: none !important;
  display: none !important;
}

/* ---------- Footer ---------- */
#footer {
  border-top: 1px solid var(--line-soft) !important;
  padding: 2.5em 0 !important;
}
#footer.wrapper.style1-alt {
  background: var(--bg) !important;
}
#footer .inner {
  padding: 0 3em !important;
}
#footer p {
  font-size: 0.78rem !important;
  color: var(--ink-faint) !important;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ---------- Kill any remaining purple gradients on .actions buttons ---------- */
.button, input[type="submit"], input[type="reset"], input[type="button"] {
  background-image: none !important;
  background-color: transparent !important;
  border: 1px solid var(--ink-strong) !important;
  color: var(--ink-strong) !important;
  font-weight: 500 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  border-radius: 0 !important;
  padding: 0 1.8em !important;
  height: 3em !important;
  line-height: 3em !important;
  transition: all 0.2s ease;
}
.button:hover {
  background-color: var(--ink-strong) !important;
  color: var(--bg) !important;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--ink-strong);
  color: var(--bg);
}

/* ---------- Mobile tweaks ---------- */
@media screen and (max-width: 980px) {
  .wrapper .inner { padding: 4em 2em !important; }
  .wrapper.fullscreen .inner { padding: 5em 2em 4em !important; }
}
@media screen and (max-width: 560px) {
  .wrapper .inner { padding: 3em 1.4em !important; }
  .wrapper.fullscreen .inner { padding: 4em 1.4em 3em !important; }
  h1 { font-size: 2.6rem !important; }
  h2 { font-size: 1.8rem !important; }
}
