:root {
  --paper: #f7f3ea;
  --paper-soft: #fcfaf5;
  --ink: #172126;
  --muted: #5f6a6d;
  --line: #d8d0c1;
  --blue: #1e6b7d;
  --blue-dark: #174c5a;
  --amber: #b77a2a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0.94) 0%, rgba(247, 243, 234, 0.86) 52%, rgba(247, 243, 234, 0.52) 100%),
    var(--page-image),
    var(--paper);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 208, 193, 0.9);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}

.intro {
  max-width: 820px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 560;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  margin-top: 46px;
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.lead {
  margin: 18px 0 0;
  color: #344147;
  font-size: 18px;
}

.content {
  max-width: 940px;
  color: #2c373b;
  font-size: 18px;
}

.content p:first-child {
  margin-top: 0;
}

.panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252, 250, 245, 0.74);
}

.list,
.card-grid,
.link-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list {
  display: grid;
  gap: 10px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.list li {
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: rgba(255, 253, 248, 0.72);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.card-grid li {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 208, 193, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
  color: #2b363a;
  font-size: 13px;
  line-height: 1.4;
}

.card-grid code {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.link-list a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.8);
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.contact-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252, 250, 245, 0.74);
}

.contact-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 28px 42px;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }

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

  main {
    padding: 44px 18px 64px;
  }

  .content,
  .lead {
    font-size: 16px;
  }

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