:root {
  color-scheme: light;
  --paper: #fbf9f4;
  --paper-raised: #fffdf8;
  --paper-muted: #f2ece3;
  --ink: #1b1c19;
  --muted: #66544b;
  --clay: #94442e;
  --clay-dark: #70301f;
  --walnut: #4a3728;
  --brass: #90702e;
  --line: #dbc1ba;
  --reading-width: 47rem;
  --page-width: 72rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--clay-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0.2rem solid var(--brass);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 0.25rem solid var(--clay);
  background: var(--paper-raised);
}

.site-header__inner,
.site-main,
.site-footer p {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  color: var(--clay);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand__section {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-header__journee-link {
  font-size: 0.9rem;
  font-weight: 650;
}

.site-main {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.intro {
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--walnut);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 2.5rem 0 0.8rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.35rem;
}

h4,
h5,
h6 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.intro__summary,
.article__summary {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.search {
  max-width: 42rem;
  margin-top: 2rem;
}

.search label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--walnut);
  font-weight: 700;
}

.search__field {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 0 0.5rem 1.5rem rgba(74, 55, 40, 0.08);
}

.search input,
.search button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.search input {
  min-width: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--ink);
}

.search button {
  padding: 0.75rem 1.25rem;
  background: var(--clay);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

.search button:hover {
  background: var(--clay-dark);
}

.search input:disabled {
  cursor: wait;
  opacity: 0.7;
}

.search__status {
  min-height: 1.6rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.browse {
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-left: 0.25rem solid var(--clay);
  background: var(--paper-raised);
}

.guide-card a {
  display: inline-block;
  color: var(--walnut);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
}

.guide-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-main--article {
  max-width: calc(var(--reading-width) + 2rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article__header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article__header h1 {
  max-width: 20ch;
  font-size: clamp(2.15rem, 6vw, 3.65rem);
}

.article__body {
  max-width: var(--reading-width);
  margin-top: 2.25rem;
}

.article__body p,
.article__body ul,
.article__body ol,
.article__body blockquote,
.article__body pre {
  margin-block: 1rem;
}

.article__body li + li {
  margin-top: 0.45rem;
}

.article__body code {
  padding: 0.1rem 0.3rem;
  background: var(--paper-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.article__body pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-muted);
}

.article__body pre code {
  padding: 0;
  background: transparent;
}

.article__body blockquote {
  margin-inline: 0;
  padding: 0.2rem 1.1rem;
  border-left: 0.25rem solid var(--brass);
  color: var(--muted);
}

.article__body hr {
  margin-block: 2rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 700;
}

.site-main--message {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

.message {
  max-width: 36rem;
}

.message p:not(.eyebrow) {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.button-link {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--clay);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.button-link:hover {
  background: var(--clay-dark);
  color: white;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin-block: 0;
}

@media (max-width: 42rem) {
  .site-header__inner {
    min-height: 4rem;
  }

  .brand__section,
  .site-header__journee-link {
    font-size: 0.78rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .search__field {
    grid-template-columns: 1fr;
  }

  .search button {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
