/* Great Light Advisory — site styles.
   Executive and restrained, with sunrise tones (plum → red → amber) used only
   as accents: thin rules, section markers, card edges, the closing band.
   Every text/background pair below was checked against WCAG AA (4.5:1 for body
   text, 3:1 for large text and focus rings). */

/* ---------------------------------------------------------------- fonts --
   Self-hosted latin subsets, so the site makes no third-party requests.
   Both files are variable fonts; each @font-face pins the weight axis, which
   is how Google Fonts itself serves them. Filenames carry the upstream
   version so the one-year immutable cache on /assets/** stays safe. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-v38-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-v38-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-v20-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-v20-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  --ink: #241c33;
  --body: #3e3650;
  --muted: #5a5168;
  --bg: #faf7f2;
  --surface: #ffffff;
  --line: #ded5c8;

  --plum: #5b3a6e;
  --plum-dark: #472c56;
  --red: #a8402f;
  --amber: #c2611b;
  --amber-bright: #d97a2b;

  /* Bright sunrise: decorative only. #d97a2b carries just 2.9:1 against the
     ivory background, so it never sits behind or beside small text. */
  --sunrise: linear-gradient(120deg, var(--plum), var(--red), var(--amber-bright));
  /* Deep sunrise: the one gradient that does carry text. Its lightest point
     still holds 6.1:1 against white, so body copy on the band passes AA. */
  --sunrise-deep: linear-gradient(120deg, #4a2e5a, #7a3352, #a8402f, #8f4a1c);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --shell: 72rem;
  --prose: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --pad-card: clamp(1.5rem, 3vw, 2.25rem);
  --radius: 14px;
  --focus: var(--amber);
  --shadow-card:
    0 1px 2px rgba(36, 28, 51, 0.05), 0 14px 34px -20px rgba(36, 28, 51, 0.4);
}

/* ----------------------------------------------------------------- base -- */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--plum);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* The sticky header would otherwise cover the top of a section you jump to. */
[id] {
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

/* Shared page shell. */
.site-header__inner,
.hero__inner,
.section__inner,
.cta__inner,
.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(10px)) {
  .site-header {
    background: var(--bg);
  }
}

/* Thin sunrise rule across the very top of the page. */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--sunrise);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--sunrise);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav__link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--plum);
}

.site-nav__link:not(.site-nav__link--contact)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sunrise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__link--contact {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--plum);
  color: var(--surface);
  transition: background-color 0.18s ease;
}

.site-nav__link--contact:hover {
  background: var(--plum-dark);
  color: var(--surface);
}

/* Below 768px the section links drop away, leaving wordmark + Contact.
   No hamburger, so no JavaScript. */
@media (max-width: 47.99em) {
  .site-nav__link:not(.site-nav__link--contact) {
    display: none;
  }
}

/* -------------------------------------------------------------- buttons -- */

.button {
  display: inline-block;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  background: var(--plum);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.button:hover {
  background: var(--plum-dark);
  color: var(--surface);
}

.button:active {
  transform: translateY(1px);
}

.button--inverse {
  background: var(--surface);
  color: var(--plum);
}

.button--inverse:hover {
  background: #f2ecf6;
  color: var(--plum-dark);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
}

.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}

.hero__eyebrow::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 2px;
  background: var(--sunrise);
}

.hero__title {
  max-width: 20ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.85rem);
}

.hero__lede {
  max-width: var(--prose);
  font-size: clamp(1.1rem, 1.04rem + 0.28vw, 1.3rem);
  line-height: 1.55;
}

.hero__body {
  max-width: var(--prose);
  color: var(--muted);
}

.hero__actions {
  margin: 2rem 0 0;
}

/* ------------------------------------------------------------- sections -- */

.section {
  padding-block: var(--section-y);
}

/* Alternating ivory and white keeps the sections legible without colour
   blocks behind the copy. */
.approach {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--sunrise);
}

.section__lede {
  max-width: var(--prose);
  margin-bottom: 2.5rem;
}

/* ----------------------------------------------------------- what we do -- */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

/* Two 7-item lists side by side need more than a tablet's width to breathe,
   so the split waits until 896px rather than 768px. */
@media (min-width: 56em) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  position: relative;
  overflow: hidden;
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sunrise);
}

.card__title {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.card__list-label {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.card__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sunrise);
}

.card__close {
  margin: 1.6rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

/* --------------------------------------------------------- our approach -- */

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle {
  position: relative;
  overflow: hidden;
  padding: var(--pad-card);
  padding-left: calc(var(--pad-card) + 0.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.principle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sunrise);
}

.principle__title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.principle p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------------ why -- */

.why p {
  max-width: var(--prose);
}

.why p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ cta -- */

.cta {
  /* On the deep band the ivory focus ring reads; the amber one would not. */
  --focus: #faf7f2;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--sunrise-deep);
  color: var(--surface);
}

.cta__title {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
  color: var(--surface);
}

.cta__body {
  max-width: 58ch;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta__actions {
  margin: 0;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  --focus: #faf7f2;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background-color: var(--ink);
  /* Sunrise rule along the top edge, painted as a background layer. */
  background-image: var(--sunrise);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 3px;
  color: #ede9f2;
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--surface);
}

.site-footer__contact {
  margin: 0 0 1.25rem;
}

.site-footer__contact a {
  color: #ede9f2;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.9rem;
  color: #c0b6ce;
}

/* ------------------------------------------------------------------ 404 -- */

.page-404 .section {
  padding-block: clamp(4rem, 12vw, 7rem);
}

.page-404 .section__inner p {
  max-width: var(--prose);
}

.page-404 .button {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------- motion -- */

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

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