:root {
  --night: #121820;
  --ink: #1e2a36;
  --steel: #4a5d6c;
  --olive: #6b7f55;
  --olive-deep: #4f6140;
  --mist: #e6ecef;
  --cloud: #f2f5f7;
  --line: #c8d2d9;
  --amber: #b8893d;
  --white: #ffffff;
  --shadow: 0 22px 48px rgba(18, 24, 32, 0.1);
  --max: 1120px;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Newsreader", "Georgia", serif;
  --ui: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.7;
  background:
    linear-gradient(145deg, rgba(107, 127, 85, 0.08), transparent 40%),
    linear-gradient(320deg, rgba(74, 93, 108, 0.1), transparent 45%),
    radial-gradient(900px 480px at 80% -5%, #dce6ea 0%, transparent 60%),
    var(--cloud);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--olive);
}

.banner {
  background: var(--night);
  color: #dfe7ec;
  text-align: center;
  padding: 0.8rem 1.2rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 3px solid var(--olive);
}

.banner strong {
  color: #f0f4f6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--night);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.logo i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--olive), var(--amber));
  display: inline-block;
  transform: rotate(12deg);
  animation: tip 4.5s ease-in-out infinite;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-family: var(--ui);
  font-weight: 650;
  font-size: 0.92rem;
}

.menu a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--night);
  border-bottom-color: var(--olive);
}

.masthead {
  position: relative;
  min-height: min(76vh, 620px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  isolation: isolate;
}

.masthead-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.masthead-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pan 20s ease-in-out infinite alternate;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(18, 24, 32, 0.88) 0%, rgba(18, 24, 32, 0.55) 48%, rgba(18, 24, 32, 0.25) 100%),
    linear-gradient(0deg, rgba(18, 24, 32, 0.55), transparent 45%);
}

.masthead-copy {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  color: var(--white);
}

.masthead-copy .brand-line {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 0.9rem;
  letter-spacing: -0.045em;
  animation: lift 0.75s ease both;
}

.masthead-copy h1 {
  font-family: var(--ui);
  font-weight: 650;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  margin: 0 0 0.8rem;
  max-width: 28ch;
  line-height: 1.35;
  animation: lift 0.85s ease 0.08s both;
}

.masthead-copy p {
  margin: 0;
  max-width: 40ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  animation: lift 0.95s ease 0.14s both;
}

.actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: lift 1s ease 0.2s both;
}

.btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-solid {
  background: var(--olive);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--olive-deep);
  color: var(--white);
}

.btn-line {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-dark {
  background: var(--night);
  color: var(--white);
}

.btn-dark:hover {
  background: #243040;
  color: var(--white);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 4rem;
}

.block {
  margin: 2.6rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.block.show {
  opacity: 1;
  transform: none;
}

.block h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  line-height: 1.15;
}

.lead {
  font-family: var(--ui);
  color: var(--steel);
  max-width: 58ch;
  margin: 0 0 1.2rem;
}

.cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: start;
}

.cols img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.copy p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.copy p:last-child {
  margin-bottom: 0;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.grid-table th,
.grid-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.grid-table th {
  font-family: var(--ui);
  background: var(--ink);
  color: #eef3f6;
  font-weight: 700;
}

.grid-table tr:nth-child(even) td {
  background: rgba(107, 127, 85, 0.08);
}

.grid-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--ui);
  color: var(--steel);
}

.page-intro {
  padding-top: 2.2rem;
}

.page-intro h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.7rem;
  line-height: 1.05;
}

.page-intro p {
  margin: 0;
  max-width: 48ch;
  color: var(--steel);
  font-family: var(--ui);
}

.panel {
  max-width: 580px;
  margin-top: 1.4rem;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  font-family: var(--ui);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(107, 127, 85, 0.35);
  border-color: var(--olive);
}

.ok,
.bad {
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  font-family: var(--ui);
  border-radius: 2px;
}

.ok {
  background: #e8f0e4;
  color: #35502c;
  border: 1px solid #c3d5b8;
}

.bad {
  background: #f6e8e4;
  color: #6a3428;
  border: 1px solid #e0b9af;
}

.site-end {
  background: var(--night);
  color: #c9d4dc;
  padding: 2.1rem 1.25rem;
}

.site-end-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.site-end strong {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--white);
}

.site-end .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-family: var(--ui);
}

.site-end a {
  color: #d7e1e8;
  text-decoration: none;
}

.site-end a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fine {
  font-family: var(--ui);
  font-size: 0.9rem;
  color: #9aabb7;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pan {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes tip {
  0%,
  100% {
    transform: rotate(12deg) translateY(0);
  }
  50% {
    transform: rotate(18deg) translateY(-2px);
  }
}

@media (max-width: 860px) {
  .cols {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead {
    min-height: 66vh;
  }

  .grid-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .block {
    opacity: 1;
    transform: none;
  }
}
