/* Fonts — served locally, same as the original Twenty Twenty-Five theme */
@font-face {
  font-family: "Vollkorn";
  src: url("assets/fonts/Vollkorn.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("assets/fonts/FiraCode.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1a1a1a;
  --muted: #555;
  --bg: #fdfdf9;
  --accent: #1a1a1a;
  --accent-hover: #7e6c39;
  --border: #1a1a1a1a;
  --content-max: 44rem;
  --wide-max: 60rem;
  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--bg);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  z-index: 100;
}

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

/* --- Header --- */
.site-header {
  padding: 2rem 0 1rem;
}
.header-inner {
  max-width: var(--wide-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-title a {
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--text);
}

/* --- Main content --- */
main { padding: 2rem 0 4rem; }

.page-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 1rem 0 2rem;
}
.page-title .wave {
  display: inline-block;
  font-size: 0.9em;
  margin-left: 0.2em;
}

.profile {
  margin: 0 0 2.5rem;
}
.profile img {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  border-radius: 4px;
}

.prose p {
  margin: 0 0 1.25rem;
}
.prose h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}
.prose em {
  font-style: italic;
}
.prose strong {
  font-weight: 600;
}

/* --- Media page --- */
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.media-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  align-items: center;
}
.media-item:last-child { border-bottom: none; }
.media-logo {
  max-width: 100%;
  max-height: 3rem;
  height: auto;
  width: auto;
  object-fit: contain;
}
.media-item a {
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .media-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .media-logo {
    max-height: 2.5rem;
    align-self: start;
  }
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.site-footer p { margin: 0; }

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #9a9a9a;
    --bg: #1a1a1a;
    --accent: #ececec;
    --accent-hover: #d6c28a;
    --border: #ffffff1f;
  }
}

/* --- Mobile tuning --- */
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .site-header { padding: 1.25rem 0 0.5rem; }
  .header-inner { gap: 0.75rem; }
  .site-nav { gap: 1rem; }
  main { padding: 1rem 0 3rem; }
}
