:root {
  --bg: #f6efe2;
  --paper: #fffaf0;
  --ink: #1f2a1f;
  --muted: #5b6355;
  --forest: #23402c;
  --forest-2: #2f5539;
  --straw: #d9a441;
  --straw-soft: #ecd29b;
  --band: #b8322a;
  --line: #e2d5bb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141b15;
    --paper: #1b241c;
    --ink: #efe6d3;
    --muted: #b3ad9c;
    --forest: #0f1a12;
    --forest-2: #1d3324;
    --straw-soft: #4a3c20;
    --line: #2d3a2e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* hero */
.hero {
  background: var(--forest);
  color: #f6efe2;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(217,164,65,.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(47,85,57,.9), transparent 55%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.kicker {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--straw); margin-bottom: .6em; font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 0 0 .35em; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; max-width: 32ch; color: #e8e0cc; }
.button {
  display: inline-block; margin-top: .6em;
  background: var(--straw); color: #1f2a1f;
  padding: .7em 1.4em; border-radius: 999px;
  text-decoration: none; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { background: #e7b65a; transform: translateY(-1px); }
.portrait { margin: 0; justify-self: end; width: min(100%, 380px); }
.portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 50%;
  border: 8px solid var(--straw);
  box-shadow: 0 0 0 8px var(--band), 0 24px 60px rgba(0,0,0,.35);
}
/* the red hat band */
.band {
  position: relative; height: 14px;
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,.12) 0 3px, transparent 3px 9px),
    var(--band);
}

/* offers */
main > section { padding-top: 80px; padding-bottom: 80px; }
.intro { color: var(--muted); max-width: 60ch; font-size: 1.1rem; margin-bottom: 2em; }
.offers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.offers article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--straw);
  border-radius: 6px;
  padding: 24px 26px 10px;
}
.offers article:nth-child(2) { border-top-color: var(--band); }
.offers article:nth-child(3) { border-top-color: var(--forest-2); }
.offers p { color: var(--muted); }

/* topics */
.topics-wrap {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(217,164,65,.08) 14px 16px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(217,164,65,.08) 14px 16px),
    var(--straw-soft);
}
.topics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.topic { grid-column: span 2; }
.topic:nth-child(4), .topic:nth-child(5) { grid-column: span 3; }
.topic {
  background: var(--paper);
  border-radius: 6px;
  padding: 26px 26px 12px;
  box-shadow: 0 2px 0 var(--line);
}
.topic svg { width: 44px; height: 44px; margin-bottom: 10px; fill: var(--band); stroke: var(--band); }
.topic:nth-child(2) svg { fill: none; stroke: var(--forest-2); }
.topic:nth-child(3) svg { fill: var(--forest-2); stroke: none; }
.topic .note {
  font-family: var(--serif); font-style: italic;
  border-left: 3px solid var(--straw); padding-left: 12px; color: var(--muted);
}

/* about */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.split > div:first-child p { max-width: 58ch; }
.langs {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px;
}
.langs ul { list-style: none; margin: 0; padding: 0; }
.langs li { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--line); }
.langs li:first-child { border-top: 0; }
.langs span {
  font: 700 .8rem var(--sans); letter-spacing: .08em;
  background: var(--forest); color: var(--straw);
  border-radius: 4px; padding: 4px 8px; min-width: 38px; text-align: center;
}

/* contact */
.contact { background: var(--forest); color: #f6efe2; }
.contact p { max-width: 54ch; color: #e8e0cc; }
.channels { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.channels a {
  display: flex; flex-direction: column;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid var(--straw); border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease;
}
.channels .soon {
  display: flex; flex-direction: column; min-width: 200px;
  padding: 14px 20px; border: 2px solid var(--straw); border-radius: 8px;
}
.channels .soon small { color: var(--straw); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.channels a:hover { background: rgba(217,164,65,.14); }
.channels small { color: var(--straw); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.channels strong { font-size: 1.05rem; word-break: break-all; }

.foot { padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 52px; }
  .portrait { justify-self: start; width: 220px; order: -1; }
  .offers, .topics, .split { grid-template-columns: 1fr; }
  .topic, .topic:nth-child(4), .topic:nth-child(5) { grid-column: auto; }
  main > section { padding-top: 56px; padding-bottom: 56px; }
  .channels a { min-width: 0; width: 100%; }
}
.topic:nth-child(3) svg { fill: var(--straw); stroke: none; }
.topic:nth-child(4) svg { fill: var(--forest-2); stroke: none; }
.topic:nth-child(5) svg { fill: var(--band); stroke: var(--band); }
.reveal { border: 0; font: inherit; font-weight: 700; cursor: pointer; margin-top: 1em; }
.contact noscript p { margin-top: 1em; }
.pricing { padding-top: 0 !important; }
.pricing p { max-width: 62ch; font-size: 1.1rem; border-left: 5px solid var(--band); padding-left: 18px; }
.why p { max-width: 62ch; font-size: 1.1rem; }
.why p:first-of-type { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
/* .wrap resets padding, so section spacing needs the higher-specificity rule */
main > section.wrap { padding-top: 96px; padding-bottom: 80px; }
main > section.wrap.pricing { padding-top: 0; }
@media (max-width: 820px) {
  main > section.wrap { padding-top: 64px; padding-bottom: 56px; }
}
[hidden] { display: none !important; }
