@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --bg: #fafaf8;
  --bg-2: #f2f1ec;
  --ink: #1c1e22;
  --navy: #1a2b3c;
  --muted: #6b7078;
  --line: #e3e2dc;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 36px; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo span { color: var(--navy); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: "EB Garamond", serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--navy);
}

/* HERO */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--line); }
.hero .lede {
  font-size: 22px;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 20px;
  animation: rise 0.9s ease 0.2s both;
}
.hero .lede.sub {
  color: var(--muted);
  font-size: 20px;
  animation: rise 0.9s ease 0.35s both;
}
.hero-cta { margin-top: 38px; animation: rise 0.9s ease 0.5s both; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "EB Garamond", serif;
  font-size: 19px;
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--navy);
  transition: gap 0.2s ease, opacity 0.2s;
}
.btn:hover { gap: 16px; opacity: 0.6; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* SECTIONS */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec-label {
  font-family: "EB Garamond", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 32px;
}

.about-grid { display: grid; gap: 22px; max-width: 66ch; }
.about-grid p { color: var(--ink); }
.about-grid p strong { color: var(--navy); font-weight: 600; }
.about-grid .quiet { color: var(--muted); font-size: 19px; }

/* EXPERIENCE */
.xp { display: flex; flex-direction: column; }
.xp-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.xp-row:hover { background: var(--bg-2); }
.xp-row:first-child { border-top: none; }
.xp-org {
  font-family: "EB Garamond", serif;
  font-size: 21px;
  color: var(--navy);
  font-weight: 600;
}
.xp-date {
  display: block;
  font-family: "EB Garamond", serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.xp-desc { color: var(--ink); font-size: 18px; }
.proj {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  margin: 18px 0 10px;
}
.proj:first-child { margin-top: 0; }
.xp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.xp-list li {
  position: relative;
  padding-left: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 64ch;
}
.xp-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--navy);
  border-radius: 50%;
}

/* PAGE HEAD (writing) */
.page-head { padding: 88px 0 50px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: "EB Garamond", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 22px;
  animation: rise 0.9s ease 0.1s both;
}
.page-head h1 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 22px;
  animation: rise 0.9s ease 0.25s both;
}
.page-head p {
  font-size: 19px;
  color: var(--muted);
  max-width: 58ch;
  animation: rise 0.9s ease 0.4s both;
}

/* WRITING LIST */
.posts { padding: 24px 0 32px; }
.post {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.post:hover { background: var(--bg-2); }
.post-meta { padding-top: 4px; }
.post-date {
  font-family: "EB Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.post-tag {
  font-family: "EB Garamond", serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}
.post-body h2 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.post:hover .post-body h2 { color: var(--muted); }
.post-body p {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 15px;
  max-width: 62ch;
}
.read {
  font-family: "EB Garamond", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.2s;
}
.post:hover .read { opacity: 0.5; }

/* CONTACT */
.contact { padding: 100px 0 72px; }
.contact h1 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 26px;
  max-width: 16ch;
  animation: rise 0.9s ease 0.2s both;
}
.contact .lede {
  font-size: 20px;
  color: var(--ink);
  max-width: 54ch;
  margin-bottom: 48px;
  animation: rise 0.9s ease 0.35s both;
}
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 680px;
  animation: rise 0.9s ease 0.5s both;
}
.channel {
  background: var(--bg);
  padding: 28px 30px;
  transition: background 0.2s;
}
.channel:hover { background: var(--bg-2); }
.channel .k {
  font-family: "EB Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.channel .v {
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  word-break: break-word;
}
.channel:hover .v { color: var(--navy); }

/* ARTICLE PAGE */
.article { padding: 62px 0 26px; }
.article .back {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  display: inline-block;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.article .back:hover { color: var(--muted); }
.article-meta {
  font-family: "EB Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}
.article h1 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 36px;
  max-width: 22ch;
}
.article-body { max-width: 68ch; }
.article-body p { margin-bottom: 22px; color: var(--ink); }
.article-body h2 {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  color: var(--navy);
  margin: 42px 0 14px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: "EB Garamond", serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
.article-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--ink);
  max-width: 66ch;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--navy);
  border-radius: 50%;
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body blockquote {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  margin: 0 0 22px;
  color: var(--muted);
}
.article-foot {
  max-width: 68ch;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-foot a {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.article-foot a:hover { color: var(--muted); }

/* FOOTER */
footer { padding: 56px 0 48px; border-top: 1px solid var(--line); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.foot-name {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.foot-links a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.copyright {
  margin-top: 34px;
  font-family: "EB Garamond", serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 680px) {
  body { font-size: 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 17px; }
  .hero { padding: 58px 0 50px; }
  .xp-row { grid-template-columns: 1fr; gap: 8px; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .page-head { padding: 58px 0 36px; }
  .contact { padding: 68px 0 50px; }
  .channels { grid-template-columns: 1fr; }
  .article h1 { font-size: 28px; }
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
}
