/* Product By Queen — Tool publishing (editorial / workshop: warm paper + forest + brass) */
:root {
  --bg: #f0e8d8;
  --bg-pattern: #ebe3d4;
  --surface: #fffcf7;
  --text: #142118;
  --muted: #3d4f40;
  --accent: #14532d;
  --accent-hover: #0f3d21;
  --brass: #a16207;
  --brass-bg: #fef3c7;
  --sage: #e4ede4;
  --border: #c9c2b0;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 0 rgba(20, 33, 24, 0.08), 0 8px 24px rgba(20, 33, 24, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(161, 98, 7, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-pattern) 100%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  font-weight: 500;
}

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.skip-link:focus {
  left: 0.5rem;
}

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

.wrap {
  width: min(1200px, 100% - 0rem);
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 1rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(145deg, #14532d 0%, #a16207 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: rgba(20, 83, 45, 0.06);
}

.hero {
  padding: clamp(2.75rem, 8vw, 4.5rem) 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 22ch;
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.section__sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 58ch;
}

.tool-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.tool-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--sage);
  border: 1px solid var(--border);
}

.tool-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--brass-bg);
  color: var(--brass);
  border: 1px solid rgba(161, 98, 7, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 33, 24, 0.06);
}

.step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-style: italic;
  color: var(--muted);
}

.quote footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 2px solid var(--border);
  background: rgba(255, 252, 247, 0.85);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.legal {
  font-size: 0.875rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.25rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.prose {
  max-width: 65ch;
}

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

.prose h2 {
  font-family: var(--font-display);
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  font: inherit;
}

.form textarea {
  min-height: 130px;
  padding: 0.65rem 0.85rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toast[hidden] {
  display: none;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--brass-bg);
  color: var(--text);
}

.grid-tools {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-tools {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.is-open {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .site-header__inner {
    flex-wrap: nowrap;
  }
}
