:root {
  --paper: #f4f1e9;
  --paper-deep: #ebe6da;
  --ink: #171714;
  --muted: #69685f;
  --line: #c9c5b9;
  --accent: #cc4b27;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(204, 75, 39, 0.08), transparent 24rem),
    var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.home-main,
.page-shell,
.article-shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.site-brand,
.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-brand {
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav,
.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.back-link:hover {
  color: var(--accent);
}

.home-main {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 3rem 0;
}

.home-hero {
  width: 100%;
}

.eyebrow,
.post-meta {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-meta p {
  margin: 0;
}

.home-meta nav {
  display: flex;
  gap: 1.4rem;
}

.home-meta a {
  color: var(--muted);
  text-decoration: none;
}

.home-meta a:hover {
  color: var(--accent);
}

.home-hero h1,
.page-heading h1,
.article-heading h1 {
  margin: 0;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.home-title-block {
  padding: clamp(1.5rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-hero h1 {
  font-size: clamp(4rem, 13.5vw, 10.8rem);
  font-weight: 600;
  white-space: nowrap;
}

.home-role {
  margin: 1.5rem 0 4.5rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.home-role span {
  padding-inline: 0.5rem;
  color: var(--accent);
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}

.destination-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease, color 180ms ease;
}

.destination-card:hover {
  padding-left: 0.65rem;
  color: var(--accent);
}

.destination-index {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.destination-card strong {
  font-size: 1.1rem;
}

.destination-arrow {
  font-size: 1.35rem;
}

.page-shell,
.article-shell {
  min-height: calc(100vh - 11rem);
  padding: 6rem 0 8rem;
}

.page-heading {
  max-width: 720px;
  margin-bottom: 4rem;
}

.page-heading h1,
.article-heading h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.page-heading > p:last-child,
.article-heading > p {
  color: var(--muted);
  line-height: 1.7;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.post-card {
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
}

.post-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card > p:not(.post-meta) {
  color: var(--muted);
  line-height: 1.65;
}

.text-link,
.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  text-decoration: none;
}

.article-shell article {
  max-width: 820px;
  margin-inline: auto;
}

.article-heading {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.article-heading h1 {
  margin-top: 2rem;
  line-height: 1.02;
}

.article-content {
  padding-top: 3rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.5em;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content pre {
  overflow-x: auto;
  padding: 1.25rem;
  color: #f4f1e9;
  background: #24241f;
}

.article-content code {
  font-family: "DM Mono", monospace;
  font-size: 0.9em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .home-main,
  .page-shell,
  .article-shell {
    width: min(calc(100% - 2rem), var(--max));
  }

  .home-main {
    align-items: center;
    padding-block: 2rem;
  }

  .home-hero h1 {
    font-size: clamp(3.2rem, 18vw, 6rem);
    white-space: normal;
  }

  .home-meta {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .home-meta nav {
    gap: 0.9rem;
  }

  .home-role {
    margin-bottom: 3rem;
    line-height: 1.8;
  }

  .home-role span {
    padding-inline: 0.25rem;
  }

  .home-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .destination-card {
    grid-template-columns: 2rem 1fr auto;
    gap: 0.7rem;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .article-shell {
    padding: 4rem 0 6rem;
  }

  .site-footer {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
