/* leehansang.com — magazine-style field notes. Single light theme. */

:root {
  --bg:        #F2F2F5;
  --card:      #FFFFFF;
  --ink:       #1E1E24;
  --ink-soft:  #5A5A66;
  --ink-faint: #8A8A96;
  --rule:      #DEDEE5;
  --panel:     #1E1E24;
  --panel-bar: #2C2C34;
  --panel-ink: #ECECF1;
  --amber:     #FEBC2E;
  --green:     #28C840;
  --red:       #FF5F57;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #000; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 242, 245, .92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
}

.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.wordmark .prompt { color: var(--green); margin-right: 7px; }

.topbar nav {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.topbar nav a { color: var(--ink-soft); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); }

/* ---------- home hero ---------- */

.hero { padding: 52px 0 6px; }

.hero-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.avatar {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(30, 30, 36, .12), 0 10px 24px rgba(30, 30, 36, .12);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.hero .tagline {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-links {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .03em;
}
.hero-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}
.hero-links a:hover { border-bottom-width: 2px; }
.hero-links .arrow { color: var(--amber); }

/* ---------- sections ---------- */

.section { padding: 38px 0 4px; }

.section-title {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.hash { color: var(--amber); }

.about p { margin: 0 0 12px; color: var(--ink-soft); max-width: 68ch; }
.about p:first-of-type { color: var(--ink); }

/* ---------- post cards ---------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(30, 30, 36, .06), 0 14px 30px rgba(30, 30, 36, .10);
  border-color: #CFCFD8;
}

.card-link {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  min-height: 170px;
  text-decoration: none;
  color: inherit;
}

.card-thumb {
  width: 100%;
  height: auto;
  align-self: stretch;
  object-fit: cover;
  background: var(--panel);
  border-right: 1px solid var(--rule);
}

.card-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.card:hover .card-title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

.card-blurb {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.card-meta .sep { color: var(--amber); margin: 0 7px; }

/* ---------- post page ---------- */

.post-hero { padding: 34px 0 0; }

.post-cover {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(30, 30, 36, .06), 0 12px 30px rgba(30, 30, 36, .10);
}

.post-head { padding: 30px 0 0; }

.post-head h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: -0.028em;
}

.post-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.post-meta .sep { color: var(--amber); margin: 0 7px; }

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

.post {
  font-size: 18.5px;
  line-height: 1.75;
  padding-bottom: 8px;
}

.post > p { margin: 0 0 22px; }
.post > p:first-of-type { font-size: 20px; line-height: 1.68; color: #2A2A32; }

.post h2 {
  margin: 46px 0 16px;
  font-size: 23px;
  line-height: 1.32;
  font-weight: 680;
  letter-spacing: -0.018em;
}

.post ul { margin: 0 0 22px; padding-left: 22px; }
.post li { margin: 0 0 10px; }

.post em { font-style: italic; }
.post strong { font-weight: 680; }

.post blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
  font-size: 20px;
  line-height: 1.6;
  color: #2A2A32;
}
.post blockquote p { margin: 0; }

/* ---------- more posts ---------- */

.more { padding: 46px 0 0; }

.more .cards { grid-template-columns: 1fr 1fr; gap: 16px; }

.more .card-link { grid-template-columns: 1fr; min-height: 0; }
.more .card-thumb { aspect-ratio: 1200 / 630; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
.more .card-body { padding: 16px 18px; }
.more .card-title { font-size: 17px; margin-bottom: 6px; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 56px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 6px; }
.site-footer .row { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 34px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .avatar { width: 76px; height: 76px; }
  .hero h1 { font-size: 28px; }
  .hero .tagline { font-size: 16px; }

  .card-link { grid-template-columns: 1fr; min-height: 0; }
  .card-thumb { aspect-ratio: 1200 / 630; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .card-body { padding: 16px 18px; }
  .card-title { font-size: 18px; }

  .post-head h1 { font-size: 28px; }
  .post { font-size: 17px; }
  .post > p:first-of-type { font-size: 18px; }
  .post h2 { font-size: 20px; margin-top: 36px; }
  .post blockquote { font-size: 18px; }

  .more .cards { grid-template-columns: 1fr; }
}
