:root {
  color-scheme: light;
  --ink: #22201c;
  --muted: #6b655b;
  --paper: #f6f1e8;
  --paper-deep: #ece4d6;
  --line: #d6cbb8;
  --accent: #315f5b;
  --accent-dark: #20413e;
  --rust: #8b4a2f;
  --blue: #3d5268;
  --green-soft: #dbe7df;
  --shadow: 0 24px 60px rgba(34, 32, 28, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(49, 95, 91, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 95, 91, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.pattern-item,
.field-note-preview,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  font-size: 0.78rem;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.back-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.section,
.section-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  padding: 88px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 8.7rem);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.hero-body,
.section-heading p,
.field-note-preview p,
.article-premise {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-body {
  max-width: 690px;
}

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

.button {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fffaf0;
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.45);
}

.observation-panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.52);
  box-shadow: var(--shadow);
}

.observation-panel p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.diagram {
  min-height: 220px;
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(61, 82, 104, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 82, 104, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.diagram span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.diagram span:nth-child(1) {
  left: 20%;
  top: 24%;
}

.diagram span:nth-child(2) {
  right: 21%;
  top: 18%;
}

.diagram span:nth-child(3) {
  left: 34%;
  bottom: 20%;
}

.diagram span:nth-child(4) {
  right: 26%;
  bottom: 28%;
}

.diagram::before,
.diagram::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}

.diagram::before {
  width: 48%;
  left: 22%;
  top: 28%;
  transform: rotate(-5deg);
}

.diagram::after {
  width: 42%;
  left: 37%;
  bottom: 25%;
  transform: rotate(-12deg);
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.explain-card,
.pattern-item {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.56);
}

.explain-card {
  min-height: 210px;
  padding: 22px;
}

.explain-card p,
.pattern-item p,
.site-footer p,
.ecosystem-links span,
.field-note p,
.field-note li {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 46px;
  align-items: start;
}

.pattern-list {
  display: grid;
  gap: 12px;
}

.pattern-item {
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.pattern-item p {
  margin-bottom: 0;
}

.pattern-item h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.status {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.status.field-note {
  color: var(--accent-dark);
  background: var(--green-soft);
}

.status.draft {
  color: var(--blue);
  background: #e4e9ec;
}

.status.planned {
  color: var(--rust);
  background: #efe1d9;
}

.field-note-preview {
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field-note-preview div {
  max-width: 780px;
}

.note-links {
  min-width: min(100%, 360px);
  display: grid;
  gap: 10px;
}

.note-link {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.56);
  text-decoration: none;
  font-weight: 750;
}

.source-note {
  margin: -28px 0 42px;
  padding: 16px 18px;
  border-left: 3px solid var(--rust);
  background: rgba(255, 250, 240, 0.48);
  color: var(--muted);
}

.response-box {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.56);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 54px;
  justify-content: space-between;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.footer-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 750;
}

.ecosystem-links {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 24px;
  list-style: none;
}

.ecosystem-links li {
  display: grid;
  gap: 2px;
}

.ecosystem-links a {
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.article-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.field-note {
  padding-bottom: 30px;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
}

.field-note h1 {
  max-width: 780px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
}

.article-premise {
  margin-bottom: 54px;
}

.field-note section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.field-note h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.field-note ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .field-note-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .section-grid,
  .site-footer,
  .article-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
  }

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

  .pattern-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .note-link {
    grid-template-columns: 1fr;
  }
}
