:root {
  --paper: #f7f0e3;
  --surface: #fffbf5;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d4c2a6;
  --olive: #9ca45a;
  --olive-deep: #5f6f43;
  --salmon: #e1927f;
  --blue: #bac8e0;
  --shadow: rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(247, 240, 227, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.brand-link,
.site-nav,
.hero-actions,
.link-samples,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.brand-mark span {
  display: block;
  border: 1.5px solid var(--ink);
  background: var(--olive);
}

.brand-mark span:nth-child(2) {
  background: var(--salmon);
}

.brand-mark span:nth-child(3) {
  background: var(--blue);
}

.brand-mark span:nth-child(4) {
  background: var(--surface);
}

.site-nav {
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  outline: none;
}

.hero {
  min-height: 78svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 64px max(24px, calc((100vw - 1120px) / 2)) 58px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  width: min(620px, 100%);
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive-deep);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 7ch;
  font-size: 88px;
  line-height: 0.9;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #26344f;
  font-size: 22px;
  line-height: 1.42;
  font-weight: 750;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  min-width: 156px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.secondary-action {
  min-width: 174px;
  background: rgba(255, 251, 245, 0.84);
  border: 2px solid var(--ink);
}

.modes-section,
.links-section {
  padding: 72px max(24px, calc((100vw - 1120px) / 2));
}

.modes-section {
  background: var(--surface);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(620px, 100%);
}

h2 {
  font-size: 40px;
  line-height: 1;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.mode-card {
  min-height: 228px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.mode-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  font-size: 22px;
  line-height: 1.12;
}

.mode-card p,
.links-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.links-section {
  background: #ece8d8;
}

.links-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: center;
}

.links-layout p {
  max-width: 620px;
  margin-top: 18px;
}

.link-samples {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.link-samples a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.link-samples a:hover,
.link-samples a:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.site-footer {
  justify-content: space-between;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 74svh;
    padding: 48px 18px 46px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .modes-section,
  .links-section {
    padding: 54px 18px;
  }

  h2 {
    font-size: 32px;
  }

  .mode-grid,
  .links-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 48px;
  }

  .brand-link {
    font-size: 18px;
  }
}
