:root {
  --white: #ffffff;
  --line: #dddddd;
  --muted: #7b7b7b;
  --text: #333333;
  --black: #000000;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.196), 16px);
  --fs-title: clamp(33px, 2.1rem + ((1vw - 3.2px) * 2.6), 60px);
  --space-30: clamp(1rem, 2vw, 1.5rem);
  --space-40: clamp(1.5rem, 3vw, 2.25rem);
  --space-60: clamp(2.5rem, 6vw, 4.5rem);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 300;
  line-height: 1.65;
}

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

a { color: var(--black); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

h1, h2, h3 { font-weight: 700; margin: 0; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout: sticky sidebar + bordered main column */
.layout {
  display: flex;
  gap: 5%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--space-40);
  min-height: 100vh;
}

.sidebar { flex: 0 0 20%; min-width: 0; }
.sidebar-inner { position: sticky; top: 0; padding: var(--space-40) 0; }

.column { flex: 0 1 75%; min-width: 0; }

.site-title { font-size: var(--fs-small); line-height: 1.4; margin-bottom: 1rem; }
.site-title a { text-decoration: none; }
.site-tagline { margin: 0 0 1.75rem; color: var(--text); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.site-nav a { font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.menu-toggle { display: none; }

.main {
  border: 1px solid var(--line);
  border-top: 0;
  min-height: 100vh;
}

.featured { margin: 0; }
.featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry {
  max-width: 645px;
  margin: 0 auto;
  padding: var(--space-40) var(--space-30) var(--space-60);
}

.entry-title { font-size: var(--fs-title); line-height: 1.2; margin-bottom: 2rem; letter-spacing: -0.01em; }
.entry-title a { text-decoration: none; }

.entry-content { font-size: 16px; }
.entry-content p { margin: 0 0 1.5rem; }
.entry-content .pt { color: var(--text); }

.artwork { margin: 2rem 0 0; text-align: center; }
.artwork img { width: 100%; }
.artwork figcaption { margin-top: 0.75rem; font-size: 14px; }

/* Footer */
.site-footer { padding: var(--space-40) 0 var(--space-60); color: var(--muted); font-size: 14px; }
.site-footer h3 { font-size: 14px; font-weight: 300; color: var(--muted); margin-bottom: 0.75rem; }

.recent-posts ul {
  list-style: none; margin: 0; padding: 0;
  columns: 3 14rem; column-gap: 2rem;
}
.recent-posts li { break-inside: avoid; margin-bottom: 0.35rem; }
.recent-posts a { color: var(--text); text-decoration: none; }
.recent-posts a:hover { color: var(--black); text-decoration: underline; }

.footer-statement { margin: 2.5rem 0 0; max-width: 40rem; }
.copyright { margin: 1.25rem 0 0; }

/* Mobile */
@media (max-width: 781px) {
  .layout { flex-direction: column; gap: 0; padding: 0 1.25rem; }
  .sidebar, .column { flex-basis: auto; }
  .sidebar-inner { position: static; padding: 1.5rem 0; }

  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--black);
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }

  .site-nav { display: none; margin-top: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { gap: 0.6rem; font-size: 18px; }

  .main { border-top: 1px solid var(--line); }
}
