:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #5d6a64;
  --paper: #faf8f1;
  --panel: #ffffff;
  --line: #ded8cb;
  --red: #b23a2f;
  --red-dark: #7c231e;
  --green: #0f766e;
  --green-soft: #d8eee6;
  --gold: #d89b24;
  --blue: #244f8f;
  --shadow: 0 22px 70px rgba(48, 39, 28, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(250, 248, 241, 0.92), rgba(250, 248, 241, 1) 36rem),
    var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(250, 248, 241, 0.78);
  border-bottom: 1px solid rgba(222, 216, 203, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fffaf1;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.35rem;
  box-shadow: 4px 4px 0 var(--gold);
}

.nav-links {
  display: flex;
  gap: 0.45rem;
}

.nav-links a {
  min-width: 4.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  padding: 7rem clamp(1rem, 5vw, 5rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(180deg, rgba(250, 248, 241, 0), var(--paper));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 248, 241, 0.95) 0%, rgba(250, 248, 241, 0.78) 39%, rgba(250, 248, 241, 0.24) 72%),
    linear-gradient(0deg, rgba(22, 32, 29, 0.08), rgba(22, 32, 29, 0.08));
}

.hero-copy {
  width: min(44rem, 100%);
  padding-top: 1rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-text {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: #30403a;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.4rem;
  max-width: 100%;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  font-weight: 850;
  line-height: 1.15;
  box-shadow: 5px 5px 0 rgba(22, 32, 29, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(22, 32, 29, 0.22);
}

.button.primary {
  background: var(--red);
  color: #fffaf1;
}

.button.secondary {
  background: #fffaf1;
  color: var(--ink);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 1rem;
}

.secondary .button-icon {
  background: var(--green-soft);
  color: var(--green);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

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

.intro-band {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

.split,
.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

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

.intro-band p,
.seo-section p,
.faq-list p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.tools-section,
.seo-section,
.faq-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

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

.tool-card {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.drill-card {
  border-top: 0.8rem solid var(--red);
}

.write-card {
  border-top: 0.8rem solid var(--green);
}

.tool-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: auto;
}

.tool-code {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 2px solid var(--ink);
  background: #fff5dc;
  color: var(--ink);
  font-weight: 950;
}

.tool-url {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.tool-card h3 {
  margin: 2rem 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tool-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.tool-card li {
  position: relative;
  padding-left: 1.25rem;
  color: #33433d;
  font-weight: 750;
}

.tool-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  border-bottom: 2px solid currentColor;
  color: var(--blue);
  font-weight: 900;
}

.text-link::after {
  content: "→";
  margin-left: 0.45rem;
}

.seo-section {
  background: #173b36;
  color: #fffaf1;
}

.seo-section .section-kicker,
.seo-section p {
  color: #d8eee6;
}

.copy-columns {
  display: grid;
  gap: 1rem;
}

.copy-columns p {
  margin: 0;
}

.faq-section {
  background: #fffdf8;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: #fffaf1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-brand .brand-mark {
  border-color: #fffaf1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #d9d0bf;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fffaf1;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav-links a {
    min-width: 3.4rem;
    padding: 0.55rem 0.65rem;
  }

  .hero {
    min-height: 92vh;
    padding: 7rem 1rem 4rem;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(250, 248, 241, 0.92), rgba(250, 248, 241, 0.66) 54%, rgba(250, 248, 241, 0.95)),
      linear-gradient(0deg, rgba(22, 32, 29, 0.08), rgba(22, 32, 29, 0.08));
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .split,
  .seo-layout,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
