/* ============================================================
   jaeheesong.com
   Type    : Inter throughout
   Palette : ink · paper · pine
   ------------------------------------------------------------
   The font is imported below, so this file is self-contained.
   The <link> tags in _layouts/default.html are now unused and
   can be deleted whenever convenient (they only slow the page
   down slightly).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:    #14161a;
  --paper:  #faf9f6;
  --rule:   #e2e0d8;
  --muted:  #5e6266;
  --accent: #1b4d3e;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Width of the content column.
     Larger = narrower side margins. Smaller = easier to read. */
  --measure: 56rem;

  /* Space above your name at the top of the page. */
  --top-space: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

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

main { padding-top: 0; }
main::after { content: ""; display: block; clear: both; }

/* ─── Links ─────────────────────────────────────────────── */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(27, 77, 62, 0.3);
}
a:hover { text-decoration-color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ─── Header block ──────────────────────────────────────── */

.bio { margin-bottom: 1rem; }

.portrait {
  float: right;
  width: 11.5rem;
  height: auto;
  margin: 0.4rem 0 1.25rem 2.25rem;
  border-radius: 2px;
}

.bio h1 {
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
}

.role {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 1.15rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.contact a:hover { border-bottom-color: var(--accent); }

/* ─── Section headings ──────────────────────────────────── */

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3.2rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1.1rem; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ─── Entries ───────────────────────────────────────────── */

.entry {
  padding-left: 1.05rem;
  margin-bottom: 2.7rem;
  border-left: 2px solid var(--rule);
  transition: border-color 160ms ease;
}
.entry:hover { border-left-color: var(--accent); }
.entry:last-child { margin-bottom: 0; }

.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.4;
  margin: 0 0 0.3rem;
}
.entry-title a { color: var(--ink); text-decoration-color: var(--rule); }
.entry-title a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.entry-byline {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.entry-abstract {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #2c3033;
}
.entry-abstract p { margin: 0 0 0.7rem; }
.entry-abstract p:last-child { margin-bottom: 0; }

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.entry-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.entry-links a:hover { border-bottom-color: var(--accent); }

/* ─── Footer ────────────────────────────────────────────── */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Small screens ─────────────────────────────────────── */

@media (max-width: 40rem) {
  body { font-size: 18px; }
  main { padding-top: 3rem; }
  .wrap { padding: 0 1.15rem; }

  .portrait {
    float: none;
    display: block;
    width: 9rem;
    margin: 0 0 1.4rem;
  }

  .bio h1 { font-size: 1.95rem; }
  h2 { margin-top: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ─── Collapsible abstract ──────────────────────────────── */

.abstract { margin: 0 0 0.75rem; }

.abstract summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::before {
  content: "+";
  color: var(--accent);
  width: 0.7rem;
}
.abstract[open] summary::before { content: "\2013"; }
.abstract summary:hover { color: var(--ink); }
.abstract .entry-abstract { margin-top: 0.6rem; margin-bottom: 0; }

/* ─── Misc layout ──────────────────────────────── */

/* Space above the name block */
.bio { padding-top: 6rem; }
@media (max-width: 40rem) {
  .bio { padding-top: 2.5rem; }
}

/* About paragraphs — match the abstract text size */
main > p { font-size: 0.98rem; line-height: 1.6; }
