@font-face {
  font-family: "Brygada 1918";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/brygada-500.woff2") format("woff2");
}

@font-face {
  font-family: "Brygada 1918";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/brygada-600.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600.woff2") format("woff2");
}

:root {
  --soot: #1f1814;
  --kiln: #d06a3c;
  --ash: #e3e5e0;
  --joint: rgba(31, 24, 20, 0.16);
  --muted: #5e564f;
  --measure: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--soot);
  background-color: var(--ash);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3.15rem,
    var(--joint) 3.15rem,
    var(--joint) calc(3.15rem + 1px)
  );
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: "Brygada 1918", Palatino, "Palatino Linotype", serif;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0 0 0.8rem; }

h2 { font-size: 1.7rem; margin: 0 0 0.8rem; }

h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(var(--measure), calc(100% - 2.4rem));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: -3rem;
  background: var(--soot);
  color: var(--ash);
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
}

.skip:focus { top: 0.6rem; }

.site-header { padding: 1.3rem 0 0; }

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--soot);
  min-width: 0;
}

.logo { max-width: 100%; min-width: 0; }

.logo img { width: min(15.5rem, 100%); height: auto; }

.nav { max-width: 100%; min-width: 0; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--soot);
}

.nav a[aria-current="page"]:not(.cta) {
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.mark {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--kiln);
  display: inline-block;
  flex: 0 0 auto;
  animation: settle 0.55s ease both;
}

.cta {
  background: var(--kiln);
  color: #fff;
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  display: inline-block;
}

.cta:hover { background: #b8572d; }

.text-link {
  color: var(--soot);
  text-underline-offset: 0.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(16rem, 0.86fr) minmax(18rem, 1.14fr);
  gap: 2.4rem;
  align-items: start;
  padding: 2.2rem 0 2.6rem;
}

.hero-facts img { width: 7.5rem; margin-bottom: 0.8rem; }

.brick {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--joint);
}

.brick-label, .course-copy span, .qa p {
  display: block;
}

.brick-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brick-value { font-size: 1.02rem; overflow-wrap: anywhere; }

.course-line { overflow-wrap: anywhere; }

.band { padding: 0.4rem 0 1.6rem; }

.course-list { display: flex; flex-direction: column; }

.course {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--joint);
  text-decoration: none;
}

.course strong { display: block; font-size: 1.08rem; }

.course-copy span { color: var(--muted); }

.steps { margin: 0; padding-left: 1.2rem; }

.steps li { margin: 0.45rem 0; }

.qa { padding: 0.8rem 0; border-top: 1px solid var(--joint); }

.qa h2 { font-size: 1.25rem; margin: 0 0 0.35rem; }

.reading { padding: 2rem 0 3rem; max-width: 42rem; }

.reading.wide { max-width: none; }

.page-head { margin-bottom: 1.2rem; }

.page-head p { max-width: 40rem; }

.block { margin: 0 0 1.2rem; }

.end-action { margin-top: 1.4rem; }

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--soot);
  padding: 0.4rem 0 2rem;
}

.course-line {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--joint);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

.footer-links a { text-underline-offset: 0.18rem; }

:focus-visible {
  outline: 2px solid var(--soot);
  outline-offset: 3px;
}

@keyframes settle {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .logo img { width: min(12.5rem, 100%); }
  h1 { font-size: 2.1rem; }
}
