:root {
  --ink: #171717;
  --muted: #62605d;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dedbd3;
  --accent: #126f68;
  --accent-strong: #0c4f4a;
  --coral: #d9654f;
  --gold: #b88225;
  --shadow: 0 18px 55px rgba(24, 24, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(222, 219, 211, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  padding: 8vw 6vw 9vw;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 25, 24, 0.86), rgba(8, 25, 24, 0.5) 46%, rgba(8, 25, 24, 0.16)),
    linear-gradient(0deg, rgba(8, 25, 24, 0.5), transparent 55%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd2c8;
}

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

h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.hero-copy {
  width: min(560px, 100%);
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.search-panel,
.subscribe-form {
  display: flex;
  width: min(620px, 100%);
  gap: 0.65rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-panel input,
.subscribe-form input {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 0;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 1rem;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 111, 104, 0.14);
}

button,
.search-panel button,
.subscribe-form button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.search-panel button,
.subscribe-form button {
  min-width: 104px;
  padding: 0.85rem 1rem;
}

button:hover,
.search-panel button:hover,
.subscribe-form button:hover {
  background: var(--accent-strong);
}

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 6vw;
  color: #fff;
  background: var(--ink);
}

.sponsor-strip span {
  color: #f1c177;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor-strip a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ad-frame {
  padding: 1rem 6vw 0;
  background: var(--paper);
}

.ad-frame iframe {
  display: block;
  width: min(970px, 100%);
  min-height: 96px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section {
  padding: 6.5rem 6vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.7rem;
}

.section-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.filter {
  min-height: 40px;
  padding: 0 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.filter.active,
.filter:hover {
  color: #fff;
  background: var(--ink);
}

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

.feature-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(24, 24, 24, 0.06);
}

.feature-card[hidden] {
  display: none;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.feature-card div {
  padding: 1.25rem;
}

.feature-card span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--muted);
}

.feature-card a {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.sponsor-card {
  border-color: rgba(184, 130, 37, 0.42);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  background: #efeee8;
}

.tool-panel {
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-panel label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.tool-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.tool-actions button {
  min-height: 42px;
  padding: 0 1.15rem;
}

.tool-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.link-list {
  display: grid;
  gap: 0.8rem;
}

.link-list a {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.link-list a:last-child {
  border-bottom: 1px solid var(--line);
}

.link-list strong {
  font-size: 1.15rem;
}

.link-list span {
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  background: #183230;
}

.contact-band .eyebrow {
  color: #f1c177;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 850px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 6vw 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0;
  }

  .hero {
    min-height: 86svh;
  }

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

  .contact-band,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .hero,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .search-panel,
  .subscribe-form,
  .sponsor-strip,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sponsor-strip {
    text-align: center;
  }

  .link-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
