@charset "utf-8";

/* ==========================================================================
   Alárìnà Services
   Values transcribed from the Claude Design prototype (Alarina Landing.dc.html).
   Deviations from the prototype are limited to accessibility fixes, each
   marked "AA:" with the reason.
   ========================================================================== */

@import url('fonts.css');

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --ink: #1C0A00;
  --ink-hover: #3A1D0E;
  --cream: #FFFBEB;
  --cream-deep: #FEF3C7;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-text: #B45309; /* amber that clears 4.5:1 on both creams */
  --highlight: #FCD34D;
  --danger: #9A3412;

  /* Derived ink tints, used on cream */
  --ink-72: rgba(28, 10, 0, 0.72);
  --ink-62: rgba(28, 10, 0, 0.62);
  --ink-45: rgba(28, 10, 0, 0.45);
  --ink-25: rgba(28, 10, 0, 0.25);
  --ink-18: rgba(28, 10, 0, 0.18);
  --ink-10: rgba(28, 10, 0, 0.10);

  /* Derived cream tints, used on ink */
  --cream-85: rgba(255, 251, 235, 0.85);
  --cream-72: rgba(255, 251, 235, 0.72);
  --cream-65: rgba(255, 251, 235, 0.65);
  --cream-55: rgba(255, 251, 235, 0.55);
  --cream-14: rgba(255, 251, 235, 0.14);

  /* Type */
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter: 28px;
  --section-y: clamp(72px, 10vw, 120px);
  --measure-wide: 1040px;
  --measure-mid: 760px;
  --measure-prose: 720px;
  --measure-form: 560px;
}

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

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

html {
  scroll-behavior: smooth;
  /* Stops iOS Safari inflating type in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Yoruba tone marks sit high; let the browser reserve room for them */
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: var(--amber-text);
  text-decoration: none;
}

a:hover {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@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;
  }
}

/* --------------------------------------------------------------------------
   Focus
   A single, consistent focus ring. Amber on ink, ink on cream, so the ring is
   always visible against whatever sits behind it.
   -------------------------------------------------------------------------- */

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

:where(.on-ink) :focus-visible { outline-color: var(--highlight); }

/* Older engines without :focus-visible still get a ring */
@supports not selector(:focus-visible) {
  :focus { outline: 2px solid var(--amber); outline-offset: 3px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 2px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  text-decoration: none;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.section { padding: var(--section-y) var(--gutter); }
.section--cream { background: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }

.section--ink {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.wrap { max-width: var(--measure-wide); margin-inline: auto; }
.wrap--mid { max-width: var(--measure-mid); margin-inline: auto; }
.wrap--prose { max-width: var(--measure-prose); margin-inline: auto; }
.wrap--form { max-width: var(--measure-form); margin-inline: auto; }

/* Adire-inspired texture. Faint by design: the brief asks for never loud. */
.texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.texture--dots {
  opacity: 0.05;
  background-image: radial-gradient(circle at center, var(--highlight) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.texture--weave {
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--highlight) 0,
    var(--highlight) 1px,
    transparent 1px,
    transparent 18px
  );
}

.eyebrow {
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-size: 13px;
  color: var(--amber-text);
  /* Trailing letter-space would otherwise push the text off-centre */
  margin-left: 0.3em;
}

.on-ink .eyebrow { color: var(--amber); }

.rule {
  width: 44px;
  height: 1px;
  background: var(--ink-25);
  border: 0;
}

/* On dark ground the rule must be the amber highlight, not ink. Scoped to
   .on-ink so the hero and the 404 page get it as well as the promise. */
.on-ink .rule { background: rgba(252, 211, 77, 0.5); }

.h-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.3;
  text-wrap: pretty;
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-72);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  max-width: var(--measure-mid);
  margin-inline: auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) clamp(80px, 12vw, 150px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-left: 0.28em;
  /* The tracking is the whole look, so never let it wrap mid-wordmark */
  white-space: nowrap;
}

.hero__sub {
  font-variant: small-caps;
  letter-spacing: 0.34em;
  margin-left: 0.34em;
  font-size: 13px;
  color: var(--amber);
  margin-top: 14px;
}

.hero__rule { margin: clamp(36px, 6vw, 56px) 0; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.35;
  max-width: 620px;
  text-wrap: pretty;
}

.hero__lede {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--cream-72);
  max-width: 520px;
  margin-top: 26px;
  text-wrap: pretty;
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 17px 34px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  /* 44px is the minimum comfortable touch target */
  min-height: 56px;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  margin-top: 44px;
}

.btn--amber:hover {
  background: var(--highlight);
  color: var(--ink);
  text-decoration: none;
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
  align-self: flex-start;
  padding: 18px 34px;
}

.btn--ink:hover { background: var(--ink-hover); color: var(--cream); text-decoration: none; }

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 80px);
}

.step {
  border-top: 1px solid var(--ink-18);
  padding-top: 28px;
}

.step__numeral {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--amber-text);
}

.step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-top: 14px;
}

.step__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-72);
  margin-top: 14px;
  text-wrap: pretty;
}

.section__title { margin-top: 18px; max-width: 560px; }

/* --------------------------------------------------------------------------
   The promise
   -------------------------------------------------------------------------- */

.promise { margin-top: clamp(40px, 6vw, 60px); }

.promise__item {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--cream-14);
}

.promise__item:last-child { border-bottom: 1px solid var(--cream-14); }

.promise__mark {
  width: 8px;
  height: 8px;
  background: var(--amber);
  flex: none;
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}

.promise__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-85);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Who it is for
   -------------------------------------------------------------------------- */

.audience {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audience__body {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.65;
  margin-top: 26px;
  text-wrap: pretty;
}

.audience__rule { margin-top: clamp(36px, 5vw, 48px); }

.audience__motto {
  font-size: 15px;
  /* AA: prototype used ink at 0.6 alpha (4.93:1). Held, it clears 4.5:1. */
  color: rgba(28, 10, 0, 0.6);
  margin-top: 24px;
  font-style: italic;
  font-family: var(--serif);
}

/* --------------------------------------------------------------------------
   Inquiry form
   -------------------------------------------------------------------------- */

.form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field__hint {
  font-weight: 400;
  color: rgba(28, 10, 0, 0.55);
}

.field__input,
.field__textarea {
  background: transparent;
  font-family: var(--sans);
  /* 16px minimum, otherwise iOS Safari zooms the viewport on focus */
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}

.field__input {
  border: 0;
  /* AA: prototype used 0.3 alpha (2.0:1). Raised to 0.45 for the 3:1
     non-text contrast minimum on input boundaries (WCAG 1.4.11). */
  border-bottom: 1px solid var(--ink-45);
  padding: 10px 2px;
  min-height: 44px;
}

.field__textarea {
  border: 1px solid var(--ink-45);
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
}

.field__input:focus,
.field__textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.field__input[aria-invalid='true'],
.field__textarea[aria-invalid='true'] { border-color: var(--danger); }

::placeholder {
  /* AA: prototype used 0.35 alpha (2.4:1). Raised to 0.6, the lightest value
     that still clears 4.5:1 on cream, so the hint reads without looking like
     a value the visitor already typed. */
  color: rgba(28, 10, 0, 0.6);
  opacity: 1;
}

.error {
  font-size: 13px;
  color: var(--danger);
}

.error:empty { display: none; }

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.consent__box {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--amber-dark);
  flex: none;
}

.consent__text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(28, 10, 0, 0.78);
}

.error--consent { margin-left: 32px; }

/* Bot trap. Off-screen rather than display:none so headless fillers still
   see it, but hidden from assistive tech and from tab order. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile { min-height: 65px; }

.turnstile__fallback {
  border: 1px dashed var(--ink-45);
  background: var(--cream-deep);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.turnstile__swatch {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(28, 10, 0, 0.4);
  border-radius: 3px;
  flex: none;
}

.turnstile__label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-62);
}

.alert {
  border: 1px solid var(--danger);
  padding: 16px 20px;
}

.alert p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--danger);
}

.alert a { color: var(--danger); text-decoration: underline; }

.success {
  margin-top: 48px;
  border: 1px solid var(--ink-18);
  background: var(--cream-deep);
  padding: 40px 36px;
  text-align: center;
}

.success__mark {
  width: 10px;
  height: 10px;
  background: var(--amber);
  transform: rotate(45deg);
  margin-inline: auto;
}

.success__title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  margin-top: 24px;
}

.success__body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(28, 10, 0, 0.75);
  margin-top: 12px;
}

[hidden] { display: none !important; }

/* Utilities. These exist so no element needs a style attribute, which lets
   the Content-Security-Policy in _headers forbid inline styles outright. */
.is-relative { position: relative; }
.section__title--wide { max-width: none; }
.h-serif--tall { line-height: 1.35; }
.lede--spaced { margin-top: 18px; }
.success--flush { margin-top: 0; }
.list-plain { list-style: none; padding-left: 0; }

/* --------------------------------------------------------------------------
   Reassurance strip
   -------------------------------------------------------------------------- */

.reassurance {
  background: var(--cream-deep);
  border-top: 1px solid var(--ink-10);
  padding: 36px var(--gutter);
  text-align: center;
}

.reassurance p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(28, 10, 0, 0.7);
  text-wrap: pretty;
}

.reassurance em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--cream-65);
  padding: clamp(48px, 7vw, 72px) var(--gutter);
}

.footer__inner {
  max-width: var(--measure-wide);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--cream);
  white-space: nowrap;
}

.footer__legal {
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
  text-wrap: pretty;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.footer__links a { color: var(--highlight); }
.footer__links a:hover { color: var(--highlight); }

.footer__copy {
  font-size: 13px;
  /* AA: prototype used 0.4 alpha (3.67:1). Raised to 0.55 to clear 4.5:1. */
  color: var(--cream-55);
}

/* --------------------------------------------------------------------------
   Document pages (privacy, terms)
   -------------------------------------------------------------------------- */

.doc-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.doc-head {
  background: var(--ink);
  padding: 28px var(--gutter);
}

.doc-head__inner {
  max-width: var(--measure-prose);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.doc-head a.doc-head__mark {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.24em;
  color: var(--cream);
  white-space: nowrap;
}

.doc-head a.doc-head__mark:hover { color: var(--highlight); text-decoration: none; }

.doc-head__nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.doc-head__nav a { color: var(--highlight); }

.doc-main {
  max-width: var(--measure-prose);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  flex: 1;
  width: 100%;
}

.doc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  margin-top: 18px;
  line-height: 1.25;
  text-wrap: pretty;
}

.doc-meta {
  font-size: 14px;
  /* AA: raised from the prototype's 0.55 alpha to clear 4.5:1. */
  color: var(--ink-62);
  margin-top: 14px;
}

.doc-body {
  border-top: 1px solid var(--ink-18);
  margin-top: 40px;
  padding-top: 36px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-72);
}

.doc-body > * + * { margin-top: 22px; }

.doc-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 48px;
  text-wrap: pretty;
  /* Keeps a heading from stranding at the foot of a printed column */
  break-after: avoid;
}

.doc-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  margin-top: 32px;
  break-after: avoid;
}

.doc-body ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-body li {
  position: relative;
  padding-left: 26px;
  text-wrap: pretty;
}

.doc-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
}

.doc-body strong { color: var(--ink); font-weight: 500; }

.doc-toc {
  background: var(--cream-deep);
  border: 1px solid var(--ink-18);
  padding: 24px 28px;
  margin-top: 36px;
}

.doc-toc h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  margin-top: 0;
  color: var(--amber-text);
  font-weight: 500;
}

.doc-toc ol {
  counter-reset: toc;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.doc-toc li { counter-increment: toc; }

.doc-toc li::before {
  content: counter(toc) '.';
  display: inline-block;
  width: 26px;
  color: var(--ink-62);
  font-variant-numeric: tabular-nums;
}

/* Scroll target should not hide under the top of the viewport */
.doc-body [id] { scroll-margin-top: 24px; }

.doc-foot {
  background: var(--ink);
  color: var(--cream-55);
  padding: 32px var(--gutter);
  font-size: 13px;
}

.doc-foot__inner {
  max-width: var(--measure-prose);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.doc-foot a { color: var(--highlight); }

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px var(--gutter);
  position: relative;
  overflow: hidden;
}

.notfound__inner { position: relative; max-width: 520px; }

/* --------------------------------------------------------------------------
   Small screens
   The layout is fluid throughout, so these are narrow corrections only.
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  :root { --gutter: 22px; }

  .wordmark { letter-spacing: 0.2em; margin-left: 0.2em; }
  .hero__sub { letter-spacing: 0.26em; margin-left: 0.26em; }

  /* Full-bleed buttons read as more tappable on a phone */
  .btn--amber,
  .btn--ink {
    display: block;
    width: 100%;
    align-self: stretch;
  }

  .success { padding: 32px 24px; }
  .promise__item { gap: 16px; }
  .doc-toc { padding: 20px 22px; }
}

@media (max-width: 380px) {
  .wordmark { letter-spacing: 0.14em; margin-left: 0.14em; }
  .footer__wordmark { letter-spacing: 0.18em; }
}

/* Wide screens: hold the measure rather than letting lines run long */
@media (min-width: 1440px) {
  :root { --gutter: 40px; }
}

/* --------------------------------------------------------------------------
   Print
   Legal pages get printed and filed, so make them behave on paper.
   -------------------------------------------------------------------------- */

@media print {
  :root { --gutter: 0; }

  body { background: #fff; color: #000; font-size: 11pt; }

  .skip-link,
  .texture,
  .doc-head__nav,
  .btn { display: none !important; }

  .doc-head,
  .doc-foot {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 1px solid #000;
  }

  .doc-head a.doc-head__mark,
  .doc-foot,
  .doc-foot a { color: #000 !important; }

  .doc-shell { min-height: 0; }
  .doc-main { padding: 24pt 0; max-width: none; }
  .doc-body { color: #000; }

  .doc-body h2, .doc-body h3 { break-after: avoid; }
  .doc-body li, .doc-body p { break-inside: avoid; }

  /* Print the destination of every link so the document stands alone */
  .doc-body a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  .doc-body a[href^='mailto:']::after { content: ''; }

  a { color: #000 !important; text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   Forced colours (Windows high contrast)
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .texture { display: none; }
  .btn { border: 1px solid ButtonText; }
  .promise__mark,
  .success__mark,
  .doc-body li::before { background: CanvasText; }
}

/* --------------------------------------------------------------------------
   Not found page: reuses the hero primitives, which centre via flex in the
   hero but need explicit centring inside this block container.
   -------------------------------------------------------------------------- */

.notfound .rule { margin-inline: auto; }

.notfound .hero__title,
.notfound .hero__lede { margin-inline: auto; }
