/* ============================================================
   L Brother — Base
   Reset, layout helpers, typography roles, buttons, reveal.
   ============================================================ */

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--tw-canvas);
  color: var(--tw-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--tw-accent);
  color: #fff;
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(64px, 10vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 88px);
}

/* ------------------------------------------------------------
   Eyebrow — small uppercase label with a leading dot
   ------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--granite);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tw-accent);
}

.eyebrow.on-dark {
  color: rgba(255, 255, 255, .62);
}

/* ------------------------------------------------------------
   Typography roles
   Sizes multiply by --tw-type-scale so the Tweaks panel can
   scale the whole page without touching individual rules.
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tr-tight);
}

.h-hero {
  font-size: calc(clamp(40px, 6.4vw, 84px) * var(--tw-type-scale));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h-sec {
  font-size: calc(clamp(30px, 4.2vw, 52px) * var(--tw-type-scale));
  font-weight: 800;
  line-height: 1.04;
  text-wrap: balance;
}

.h-card {
  font-size: calc(clamp(20px, 1.6vw, 24px) * var(--tw-type-scale));
  font-weight: 700;
  line-height: 1.18;
}

.lead {
  max-width: 62ch;
  font-size: calc(clamp(17px, 1.4vw, 21px) * var(--tw-type-scale));
  font-weight: 400;
  line-height: 1.5;
  color: var(--granite);
}

.body {
  font-size: calc(16px * var(--tw-type-scale));
  line-height: 1.55;
  color: var(--slate);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: calc(var(--r-btn) * var(--tw-radius-scale));
  transition:
    transform  .2s var(--ease),
    background .2s var(--ease),
    color      .2s var(--ease),
    box-shadow .2s var(--ease);
}

.btn:active {
  transform: scale(.97);
}

/* Arrow glyph nudges right on hover */
.btn .arrow {
  transition: transform .25s var(--ease-out);
}

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

/* Primary — solid navy */
.btn-primary {
  background: var(--tw-ink);
  color: var(--canvas);
  border: 1.5px solid var(--tw-ink);
}

.btn-primary:hover {
  background: #000;
  box-shadow: var(--sh-card);
}

/* Ghost — outline that fills on hover */
.btn-ghost {
  background: transparent;
  color: var(--tw-ink);
  border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--tw-ink);
  color: var(--canvas);
  border-color: var(--tw-ink);
}

/* Light — for use on dark surfaces */
.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid transparent;
}

.btn-light:hover {
  box-shadow: var(--sh-card);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ------------------------------------------------------------
   Links
   Defined even though the design has few inline links, so any
   link added later inherits the palette instead of browser blue.
   ------------------------------------------------------------ */

.body a,
.lead a,
.about-body a {
  color: var(--tw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body a:hover,
.lead a:hover,
.about-body a:hover {
  color: var(--tw-ink);
}

/* ------------------------------------------------------------
   Scroll reveal
   JS adds .in when the element enters the viewport.
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   .7s var(--ease-out),
    transform .7s var(--ease-out);
}

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