@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-terracotta: #1b3f8a;
  --color-terracotta-soft: #5278b5;
  --color-terracotta-deep: #112c66;
  --color-breton: #6fa13a;
  --color-breton-soft: #9dc76a;
  --color-breton-deep: #4a6e20;
  --color-cream: #f4efe6;
  --color-cream-soft: #fbf7f0;
  --color-cream-deep: #eae2d2;
  --color-slate: #142840;
  --color-slate-soft: #344a6e;
  --color-slate-mute: #647593;
  --color-gold: #b5b26a;
  --color-gold-soft: #d2d08a;
  --color-sky: #b8c9e0;
  --color-sky-soft: #dce5f0;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text-h2: clamp(2.25rem, 1.3rem + 3vw, 3.75rem);
  --text-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --text-lede: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-body: clamp(1.125rem, 1.05rem + 0.2vw, 1.1875rem);
  --radius-card: 1rem;
  --radius-pill: 999px;
  --container: 78rem;
}

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

html {
  font-family: var(--font-sans);
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--color-cream);
  color: var(--color-slate);
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--color-terracotta-deep);
  text-underline-offset: 0.2em;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

h1,
h2,
h3 {
  color: var(--color-slate);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.75em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--color-gold-soft);
  color: var(--color-slate);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--color-cream);
  background: var(--color-slate);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--color-cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-slate) 8%, transparent);
  overflow: visible !important;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--color-cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-slate);
  text-decoration: none;
  line-height: 1;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
}

.wordmark:hover {
  color: var(--color-terracotta);
}

.wordmark__badge {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-slate) 8%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.wordmark:hover .wordmark__badge {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-slate) 14%, transparent),
    0 6px 14px -6px rgba(44, 62, 80, 0.25);
}

.wordmark__text {
  color: inherit;
}

.wordmark__d {
  color: var(--color-slate-soft);
  font-style: italic;
  font-weight: 400;
}

.wordmark--footer {
  font-size: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark__badge {
    transition: none;
  }

  .wordmark:hover .wordmark__badge {
    transform: none;
  }
}

.site-nav ul {
  display: none;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .site-nav ul {
    display: flex;
    align-items: center;
  }
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.25rem;
  color: var(--color-slate);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  height: 2px;
  content: "";
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: var(--color-terracotta);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--color-slate) 22%, transparent);
  border-radius: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--color-terracotta);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-slate);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-nav a::after,
  .nav-toggle span {
    transition: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.5rem;
  color: var(--color-slate-mute);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  color: var(--color-cream-soft);
  background: var(--color-terracotta);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.eyebrow__sep {
  color: var(--color-slate-mute);
  opacity: 0.6;
}

.eyebrow--light {
  color: color-mix(in srgb, #fff 80%, var(--color-sky));
}

.eyebrow--light .eyebrow__num {
  color: var(--color-slate);
  background: var(--color-gold-soft);
}

.section-title {
  max-width: 22ch;
  margin: 0 0 1rem;
  font-size: var(--text-h2);
  line-height: 1.05;
}

.section-title__em {
  position: relative;
  z-index: 0;
  color: var(--color-terracotta);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.section-title__em::after {
  position: absolute;
  right: 0;
  bottom: 0.04em;
  left: 0;
  z-index: -1;
  height: 0.3em;
  content: "";
  background: color-mix(in srgb, var(--color-gold) 48%, transparent);
  border-radius: 2px;
}

.section-intro {
  max-width: 56rem;
  margin: 0;
  color: var(--color-slate-soft);
  font-size: var(--text-lede);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.btn--primary {
  color: var(--color-cream-soft);
  background: var(--color-terracotta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--color-cream-soft);
  background: var(--color-terracotta-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--color-slate);
  background: transparent;
  border-color: color-mix(in srgb, var(--color-slate) 22%, transparent);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-terracotta-deep);
  border-color: var(--color-terracotta);
}

.ts-hero {
  padding: clamp(3rem, 7vw, 6.5rem) 1.5rem clamp(3.5rem, 7vw, 6rem);
}

.ts-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(17rem, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
}

.ts-hero__content {
  max-width: 46rem;
}

.ts-hero__title {
  max-width: 11ch;
  font-size: clamp(3rem, 1.15rem + 5.4vw, 5.4rem);
  letter-spacing: 0;
}

.ts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.ts-hero__media {
  position: relative;
  margin: 0;
}

.ts-hero__media::before {
  position: absolute;
  inset: 1.5rem -1.25rem -1.25rem 1.5rem;
  z-index: -1;
  content: "";
  background: var(--color-breton);
  border-radius: var(--radius-card);
}

.ts-hero__media img {
  width: min(100%, 24rem);
  margin-left: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(44, 62, 80, 0.06), 0 18px 40px -24px rgba(44, 62, 80, 0.32);
}

.ts-band {
  color: var(--color-cream-soft);
  background: linear-gradient(rgba(17, 44, 102, 0.88), rgba(17, 44, 102, 0.88)), url("images/ambon-eglise-facade.jpg") center / cover;
}

.ts-band__inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem;
  text-align: center;
}

.ts-band h2 {
  max-width: 20ch;
  margin: 0 auto 1.2rem;
  color: var(--color-cream-soft);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.ts-band p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0 auto;
  color: color-mix(in srgb, #fff 88%, var(--color-sky));
  font-size: var(--text-lede);
  line-height: 1.55;
}

.ts-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
}

.ts-card,
.profile,
.step {
  background: var(--color-cream-soft);
  border: 1px solid color-mix(in srgb, var(--color-slate) 9%, transparent);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(44, 62, 80, 0.04), 0 16px 36px -28px rgba(44, 62, 80, 0.28);
}

.ts-card {
  padding: 1.65rem;
  border-left: 4px solid var(--color-terracotta);
}

.ts-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-cream-soft);
  background: var(--color-terracotta);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-weight: 650;
}

.ts-card h2 {
  margin-bottom: 0.6rem;
  font-size: var(--text-h3);
}

.ts-card p,
.profile p,
.step p {
  color: var(--color-slate-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.text-link,
.step-action {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--color-terracotta);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.ts-detail {
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
}

.ts-detail--soft {
  background: var(--color-cream-soft);
}

.ts-detail__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
}

.profile {
  padding: 1.35rem;
  border-left: 4px solid var(--accent, var(--color-terracotta));
}

.profile--terracotta {
  --accent: var(--color-terracotta);
}

.profile--breton {
  --accent: var(--color-breton);
}

.profile--gold {
  --accent: #b1814f;
}

.profile--slate {
  --accent: var(--color-slate);
}

.profile h3 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
}

.ts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.2rem;
  max-width: 58rem;
  margin-top: 2rem;
  list-style: none;
}

.ts-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.5;
}

.ts-list li::before {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.12rem;
  content: "✓";
  color: var(--color-breton-deep);
  background: color-mix(in srgb, var(--color-breton) 16%, transparent);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
}

.zone-callout {
  display: inline-flex;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.875rem 1.25rem;
  color: var(--color-slate);
  background: color-mix(in srgb, var(--color-gold) 16%, transparent);
  border-left: 3px solid #6b6a3a;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1rem;
}

.steps {
  display: grid;
  gap: 1.1rem;
  max-width: 58rem;
  margin-top: 2rem;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  counter-increment: step;
}

.step::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  content: counter(step, decimal-leading-zero);
  color: var(--color-cream-soft);
  background: var(--color-terracotta);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 650;
}

.step h3 {
  margin: 0 0 0.375rem;
  font-size: 1.1875rem;
}

.step p {
  margin: 0;
}

.ik-table-wrap {
  max-width: 64rem;
  margin-top: 2rem;
  overflow-x: auto;
  background: var(--color-cream-soft);
  border: 1px solid color-mix(in srgb, var(--color-slate) 16%, transparent);
  border-radius: var(--radius-card);
}

.ik-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--color-slate);
  font-size: 0.9375rem;
}

.ik-table caption {
  padding: 1rem 1.125rem;
  color: var(--color-slate);
  font-weight: 800;
  text-align: left;
}

.ik-table th,
.ik-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-slate) 14%, transparent);
  text-align: left;
  white-space: nowrap;
}

.ik-table th {
  color: var(--color-cream-soft);
  background: var(--color-slate);
  font-size: 0.8125rem;
}

.ik-table tbody tr:nth-child(even) {
  background: var(--color-cream);
}

.ik-table tbody td:first-child {
  font-weight: 800;
}

.ik-definition {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: var(--color-slate-soft);
  font-size: 0.9375rem;
}

.ts-cta {
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
}

.ts-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.25rem;
  background: var(--color-cream-soft);
  border: 1.5px dashed color-mix(in srgb, var(--color-terracotta) 40%, transparent);
  border-radius: var(--radius-card);
}

.site-footer {
  position: relative;
  color: var(--color-cream-soft);
  background: var(--color-slate);
  padding: clamp(3rem, 5vw, 5rem) 1.5rem 2.5rem;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer__brand .wordmark {
  color: var(--color-cream-soft);
}

.site-footer__brand .wordmark:hover {
  color: var(--color-gold);
}

.site-footer__brand .wordmark__d {
  color: color-mix(in srgb, var(--color-cream-soft) 60%, transparent);
}

.site-footer__tagline {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: color-mix(in srgb, var(--color-cream-soft) 78%, transparent);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
}

.site-footer__legal {
  color: color-mix(in srgb, var(--color-cream-soft) 80%, transparent);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer__legal p {
  margin: 0 0 0.25rem;
}

.site-footer__legal a {
  color: var(--color-gold-soft);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-gold) 40%, transparent);
  text-underline-offset: 0.25em;
}

.site-footer__legal a:hover {
  color: var(--color-gold);
  text-decoration-color: var(--color-gold);
}

.back-to-top {
  position: absolute;
  top: 1.25rem;
  right: clamp(1.25rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-cream-soft);
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--color-cream-soft) 35%, transparent);
  border-radius: 50%;
  text-decoration: none;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
  z-index: 2;
}

.back-to-top:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
    flex-shrink: 0;
  }

  .site-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 45 !important;
    padding-top: 60px !important;
    background: #f5efe6 !important;
    border-bottom: 2px solid rgba(44, 62, 80, 0.12) !important;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15) !important;
    transform: translateY(-100%) !important;
    transition: transform 200ms ease !important;
    pointer-events: none !important;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .site-nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 0 1.5rem !important;
    list-style: none !important;
  }

  .site-nav ul li a {
    display: block !important;
    padding: 1rem 1.5rem !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  .site-nav ul li:last-child a {
    border-bottom: none !important;
  }

  .site-nav ul li a::after {
    display: none !important;
  }

  .ts-hero__inner,
  .ts-cta__inner {
    grid-template-columns: 1fr;
  }

  .ts-hero__inner {
    display: grid;
  }

  .ts-hero__media img {
    width: min(100%, 22rem);
    margin-right: auto;
    margin-left: 0;
  }

  .ts-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .ts-cards,
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .ts-hero,
  .ts-detail,
  .ts-cta {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ts-hero__inner,
  .ts-cards,
  .profile-grid,
  .ts-list {
    grid-template-columns: 1fr;
  }

  .ts-hero__media::before {
    inset: 1rem 0 -1rem 1rem;
  }

  .ts-hero__actions,
  .btn {
    width: 100%;
  }

  .section-title__em {
    white-space: normal;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .zone-callout {
    display: block;
  }

  .ts-cta__inner {
    padding: 1.5rem;
  }

  .site-footer__inner {
    display: grid;
    text-align: left;
  }

  .site-footer__legal {
    text-align: left;
  }
}
