/* ── Editorial New ── */
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-Regular-BF644b214ff145f.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-Italic-BF644b214fb0c0a.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-Ultralight-BF644b21500d0c0.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-UltralightItalic-BF644b214ff1e9b.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-Ultrabold-BF644b21500840c.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/editorial-new/PPEditorialNew-UltraboldItalic-BF644b214faef01.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:        #faf9f7;
  --text:      #1a1a1a;
  --muted:     #888;
  --border:    #e0ddd8;
  /* --font-serif: "EB Garamond", Georgia, serif; */
  /* --font-serif: "Cormorant Garamond", Georgia, serif; */
  /* --font-serif: "PP Editorial New", Georgia, serif; */
  --font-serif: "Cardo", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Inline nav ── */
.inline-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.inline-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.inline-nav a:hover {
  color: var(--text);
}

/* ── Layout ── */
.layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

/* ── Main ── */
main {
  flex: 1;
  min-width: 0;
}

/* ── Aside ── */
aside {
  flex: 0 0 240px;
  position: sticky;
  top: 4rem;
}


/* ── Hero ── */
main h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

main h1 + p {
  font-size: 1rem;
  color: #555;
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── Divider ── */
main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Section headings ── */
main h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* ── Body text ── */
main p {
  color: #444;
  margin-bottom: 1rem;
  font-size: 0.975rem;
  max-width: 580px;
  line-height: 1.75;
}

/* ── Projects ── */
main h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.2rem;
}

main h3 + p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

/* ── Blockquote (fancy text) ── */
main blockquote {
  /* font-family: "EB Garamond", Georgia, serif; */
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: normal;
  color: #2a2a2a;
  line-height: 1.5;
  margin: 2.5rem 0;
  padding: 0;
  border: none;
  letter-spacing: -0.01em;
}

main blockquote p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  max-width: none;
}

main blockquote p::before { content: '\201C'; }
main blockquote p::after  { content: '\201D'; }

/* ── Links ── */
main a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

main a:hover {
  text-decoration-color: var(--text);
}


/* ── Responsive ── */
@media (max-width: 700px) {
  .layout { flex-direction: column-reverse; padding: 2rem 1.25rem 4rem; gap: 2rem; }
  aside { position: static; flex: none; }
}
