* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

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

a:hover {
  color: #124732;
}

.pub-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.pub-header,
.pub-footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.pub-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d8dcd3;
}

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

.brand:hover {
  color: var(--ink);
}

.brand-image {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-dot {
  color: var(--copper);
}

.pub-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pub-header nav a,
.lang-toggle {
  color: #34534a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.pub-header nav a:hover,
.lang-toggle:hover {
  color: #0a402c;
}

.pub-header nav a[aria-current='page'] {
  color: var(--ink);
}

.lang-toggle {
  border: 1px solid #a8bdb0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.pub-main {
  flex: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: #386e57;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--copper);
}

.pub-main h1 {
  margin: 28px 0 24px;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 1.07;
}

.pub-main h1 em {
  display: block;
  color: var(--copper);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.lede {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
}

.products {
  margin-top: 56px;
}

.products h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.products .cards {
  margin-top: 0;
}

.pub-main > .cards {
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(34, 59, 49, 0.06);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  color: inherit;
  border-color: #c9d4c8;
}

.card .kicker {
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card h2,
.card h3 {
  margin: 0;
  color: #183d33;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.card .host {
  margin: 0;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pub-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 28px 0 40px;
  border-top: 1px solid #d8dcd3;
  color: var(--muted);
  font-size: 0.85rem;
}

.pub-footer a {
  color: inherit;
  text-decoration: none;
}

.pub-footer a:hover {
  color: var(--ink);
}

.legal-content {
  flex: 1;
  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.legal-heading h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.legal-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.legal-draft {
  margin: 28px 0;
  padding: 16px 20px;
  border: 1px solid #dfd5bb;
  border-radius: 10px;
  background: #fbf7e9;
  color: #675338;
  line-height: 1.6;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.legal-nav a {
  padding: 10px 14px;
  border: 1px solid #cbd8cb;
  border-radius: 8px;
  color: #174c3b;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover {
  background: #eef5ed;
}

.legal-section {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 26px;
  font-size: 1.7rem;
}

.legal-section h3 {
  margin: 0 0 8px;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-section div + div {
  margin-top: 26px;
}

@media (max-width: 720px) {
  .pub-header,
  .pub-footer,
  .pub-main,
  .pub-shell,
  .legal-content {
    width: min(1180px, calc(100% - 32px));
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
