/* Teylo design system.
   One stylesheet for every page. Tokens first, then layout, then components.
   Rules of the house: warm-neutral stone ground, no pure black or white, no violet,
   four companion hues at matched weight, and type that a tired person reads without effort. */

:root {
  --bg: #e6e7e4;
  --card: #fbfbfa;
  --ink: #16181a;
  --soft: #63696c;
  --line: #d6d8d5;
  --bub: #eeefec;

  --tess: #9c5a86;
  --ebz: #3f6f7a;
  --jamie: #8a6a3f;
  --frankie: #7f9455;

  --tess-t: #f1eaee;
  --ebz-t: #eceff0;
  --jamie-t: #f1ede6;
  --frankie-t: #ecefe7;

  --wrap: 1120px;
  --read: 34rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 Onest, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
::selection {
  background: rgba(22, 24, 26, 0.12);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px 0;
}

/* nav ------------------------------------------------------------------ */
nav.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(44px, 7vw, 84px);
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
nav.site .links {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav.site .links a {
  color: var(--soft);
  font-size: 15.5px;
  text-decoration: none;
}
nav.site .links a:hover,
nav.site .links a[aria-current] {
  color: var(--ink);
}

/* type ----------------------------------------------------------------- */
h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
h2 {
  font-size: clamp(23px, 2.7vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 600;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--soft);
  max-width: 34ch;
  margin-top: 20px;
}
.prose {
  max-width: var(--read);
}
.prose p,
.prose li {
  color: var(--soft);
  margin-bottom: 16px;
  line-height: 1.6;
}
.prose h2 {
  margin: 44px 0 14px;
}
.prose h3 {
  margin: 30px 0 10px;
}
.prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose strong {
  color: var(--ink);
  font-weight: 500;
}
.prose a {
  color: var(--ink);
}
.meta {
  font-size: 14.5px;
  color: var(--soft);
}

/* page header ---------------------------------------------------------- */
.phead {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.phead .lede {
  max-width: 46ch;
}

/* buttons -------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.16s ease;
  box-shadow: 0 8px 22px -10px rgba(22, 24, 26, 0.45);
}
.cta:hover {
  transform: translateY(-2px);
}
.cta.ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.cta2 {
  color: var(--soft);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.cta2:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.ctas {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
:focus-visible {
  outline: 2px solid rgba(22, 24, 26, 0.45);
  outline-offset: 2px;
}

/* cards ---------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 0 0 1px var(--line);
}
.grid {
  display: grid;
  gap: 14px;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.5;
}

/* faq ------------------------------------------------------------------ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--soft);
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--soft);
  padding-bottom: 20px;
  max-width: 60ch;
  line-height: 1.6;
}

/* footer --------------------------------------------------------------- */
footer.site {
  margin-top: clamp(72px, 10vw, 128px);
  overflow: hidden;
}
footer.site .fin {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.fcol h3 {
  font-size: 15px;
  font-weight: 400;
  color: var(--soft);
  margin-bottom: 18px;
}
.fcol a {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 12px;
}
.fcol a:hover {
  color: var(--soft);
}
.fbase {
  margin-top: 48px;
  font-size: 14.5px;
  color: var(--soft);
}
.fbase i {
  font-style: normal;
  opacity: 0.5;
  margin: 0 10px;
}
.fmark {
  display: block;
  width: 100%;
  margin-top: 30px;
  font-size: 22vw;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-align: center;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  padding-bottom: 0.6vw;
}

@media (max-width: 720px) {
  nav.site .links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  nav.site .links a {
    font-size: 14.5px;
  }
  .lede {
    font-size: 18px;
  }
  .ctas {
    gap: 14px;
  }
  .cta {
    padding: 15px 22px;
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  nav.site .links a[href="/about"],
  nav.site .links a[href="/safety"] {
    display: none;
  }
}

@media (max-width: 900px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
