/* Bellslate website — tokens, reset, type, buttons, layout helpers */
:root {
  --ink: #10382d;
  --ink-2: #1a4a3c;
  --ink-3: #2b6152;
  --cream: #f7f3e8;
  --paper: #fbf9f3;
  --white: #ffffff;
  --brass: #f5b82e;
  --brass-deep: #b97a06;
  --brass-soft: #fdf0cf;
  --mint: #d7ece2;
  --mint-deep: #2f8f6a;
  --sky: #dfeaf8;
  --sky-deep: #0a66c2;
  --coral: #f8dcd0;
  --coral-deep: #c2532b;
  --lilac: #e6e1f5;
  --text: #13261f;
  --text-2: #3d544b;
  --on-dark: #f7f3e8;
  --on-dark-2: #bcd0c6;
  --line: rgba(16, 56, 45, 0.12);
  --line-dark: rgba(247, 243, 232, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 56, 45, 0.06), 0 12px 32px -12px rgba(16, 56, 45, 0.22);
  --shadow-lg: 0 2px 4px rgba(16, 56, 45, 0.06), 0 40px 80px -30px rgba(16, 56, 45, 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* `hidden` always wins over a component's own display. */
[hidden] {
  display: none !important;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

p {
  margin: 0;
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--brass);
}

.h-xl {
  font-size: clamp(44px, 7.2vw, 92px);
}

.h-lg {
  font-size: clamp(36px, 5vw, 64px);
}

.h-md {
  font-size: clamp(26px, 3vw, 36px);
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-2);
  max-width: 620px;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.serif-em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-3);
}

.mark {
  background: linear-gradient(transparent 62%, var(--brass) 62%, var(--brass) 90%, transparent 90%);
  padding: 0 0.06em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}

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

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(16, 56, 45, 0.6);
}

.btn-primary:hover {
  background: var(--ink-2);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(245, 184, 46, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
}

.btn .i {
  transition: transform 0.25s var(--ease);
}

.btn:hover .i-arrow {
  transform: translateX(4px);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: rgba(247, 243, 232, 0.12);
  border: 1px solid var(--line-dark);
  border-bottom-width: 3px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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