/*
 * Korpus landing page. System fonts only (no font files, nothing external):
 * a serif for headings (Palatino on Windows, Iowan/Palatino on Apple,
 * Georgia as fallback) and the system sans-serif for text.
 * Colours: birch plywood, walnut, oak, and the yellow of a folding rule.
 */

:root {
  color-scheme: light;
  --ink: #23201c;
  --muted: #5a5048;
  --walnut: #5b3a1e;
  --oak: #7a4a1c;        /* buttons and links: 8:1 on white */
  --oak-light: #f2d29b;
  --ply: #f7f1e6;
  --ply-dark: #efe5d3;
  --rule-yellow: #e8b833;
  --pencil: #b23a0c;     /* the carpenter's pencil: 5.9:1 on white */
  --line: #ddd2bf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 106.25%; /* 17 px: easier to read on a phone in the workshop */
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
}

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

a {
  color: var(--oak);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  margin: 0 0 12px;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
}

section {
  scroll-margin-top: 16px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
  max-width: 42rem;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-header nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}

.site-header nav a:not(.button):hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  /* On a phone: logo and button in one row, the section links hidden. */
  .site-header nav a:not(.button) {
    display: none;
  }
}

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-block;
  background: var(--oak);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--walnut);
}

.button:hover {
  background: var(--walnut);
}

.button-small {
  padding: 8px 16px;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  /* Faint grain lines, like the face of a birch plywood sheet. */
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0 22px,
      rgba(122, 74, 28, 0.035) 22px 23px,
      transparent 23px 61px,
      rgba(122, 74, 28, 0.025) 61px 62px
    ),
    var(--ply);
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.eyebrow {
  color: var(--pencil);
  font-weight: 700;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.lead {
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 0 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0;
}

.cta-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fa;
  box-shadow: 0 12px 32px rgba(60, 40, 20, 0.16);
}

/* A dimension line above the picture, as on a workshop drawing. */
.dimension {
  position: relative;
  margin: 0 7% 10px;
  height: 22px;
  border-left: 2px solid var(--pencil);
  border-right: 2px solid var(--pencil);
  text-align: center;
  font: 700 0.9rem/22px var(--serif);
  color: var(--pencil);
}

.dimension::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--pencil);
}

.dimension span {
  position: relative;
  background: var(--ply);
  padding: 0 10px;
}

/* --- The folding rule (Zollstock) between hero and content ------------- */

.rule {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0 199px, #1d1a16 199px 201px),
    repeating-linear-gradient(90deg, #1d1a16 0 2px, transparent 2px 20px) bottom / 100% 10px no-repeat,
    var(--rule-yellow);
  border-top: 1px solid #c99a1f;
  border-bottom: 1px solid #c99a1f;
}

/* --- Problems ----------------------------------------------------------- */

.problems {
  padding: 56px 0 32px;
}

.cards {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--oak);
  border-radius: 8px;
  padding: 20px 22px 10px;
}

.card p {
  margin: 0 0 12px;
}

.card-figure {
  font: 700 1.7rem/1.2 var(--serif);
  color: var(--pencil);
}

.card-figure s {
  color: var(--muted);
  font-weight: 400;
  text-decoration-thickness: 2px;
}

/* --- Features -------------------------------------------------------------- */

.features {
  padding: 40px 0 8px;
}

.features > .wrap > h2 {
  margin-bottom: 32px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 56px;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 40px;
    align-items: center;
  }

  /* Every second row mirrored; the picture keeps the wider column. */
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .feature:nth-of-type(even) .feature-text {
    order: 2;
  }
}

.feature-text p {
  margin: 0;
}

.zoom {
  display: block;
  cursor: zoom-in;
}

.feature img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(60, 40, 20, 0.1);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  background: var(--ply);
  padding: 56px 0;
}

.steps h2 {
  margin-bottom: 28px;
}

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--walnut);
  color: var(--oak-light);
  font: 700 1.4rem/46px var(--serif);
  text-align: center;
}

.step-list p {
  margin: 0;
}

/* --- Price ------------------------------------------------------------------ */

.price {
  padding: 56px 0;
}

.price-card {
  max-width: 40rem;
  margin: 0 auto;
  border: 2px solid var(--walnut);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  background: #fff;
}

.price-main {
  font: 700 clamp(1.35rem, 4vw, 1.75rem) / 1.3 var(--serif);
  margin: 0 0 16px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  display: inline-block;
  text-align: left;
}

.checks li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--oak);
  font-weight: 800;
}

/* --- FAQ ---------------------------------------------------------------------- */

.faq {
  background: var(--ply);
  padding: 56px 0;
}

.faq h2 {
  margin-bottom: 20px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  max-width: 50rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 14px 0; /* big enough to hit with a thumb */
}

.faq details p {
  margin: 0 0 16px;
}

/* --- Contact ----------------------------------------------------------------- */

.contact {
  padding: 56px 0;
  text-align: center;
}

.contact p {
  max-width: 36rem;
  margin: 0 auto 12px;
}

.mail {
  font: 700 clamp(1.15rem, 4.5vw, 1.5rem) / 1.4 var(--serif);
  overflow-wrap: anywhere;
}

/* --- Footer and legal pages ------------------------------------------------ */

.site-footer {
  background: var(--walnut);
  color: var(--oak-light);
  padding: 22px 0;
}

.site-footer a {
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.legal {
  padding: 40px 16px 56px;
  max-width: 50rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 32px 0 8px;
}

.legal-todo {
  background: #fff4e6;
  border: 2px solid #e8590c;
  color: #8a3b00;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
}

/* Placeholders to fill in, e.g. [NAME]: impossible to overlook. */
.ph {
  background: #ffe8a3;
  color: #6b3f00;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
}
