/* ==========================================================================
   Alebeth Holdings — Phase 1 landing page
   Tokens and rules follow docs/design-spec.md. Mobile first (390), then the
   tablet band, then the 1440 desktop layout.
   ========================================================================== */

:root {
  --bg:        #f4f1ea;   /* page ground */
  --ink:       #1c1f1d;   /* text, dark band bg, primary button */
  --ink-soft:  #3d423f;   /* body copy */
  --muted:     #5a605c;   /* captions, footer */
  --rule:      #d8d2c4;   /* hairlines */
  --accent:    #1f4d3a;   /* eyebrows, numerals, monogram */
  --brass:     #b9a67d;   /* eyebrows on the dark band only */
  --dark-rule: #3a3e3b;   /* card borders on the dark band */
  --dark-text: #c9ccc6;   /* body copy on the dark band */
  --dark-cap:  #a9aca7;   /* captions on the dark band */
  --field:     #9a917e;   /* input borders — 3.1:1 on white, WCAG 1.4.11 */

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --pad: 20px;   /* side padding  */
  --sec: 56px;   /* section padding */
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:hover { color: var(--accent); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--bg); }

.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------------------------------------------------------- type bits --- */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--brass { color: var(--brass); }

.h2 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

/* Cormorant defaults to old-style figures, which sit low and uneven next to
   the labels. Every display element opts into lining figures instead. */
.hero__title,
.h2,
.stat__value,
.principle__num,
.card__title,
.brand__mark {
  font-variant-numeric: lining-nums;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); color: var(--bg); }
.btn--secondary {
  background: none;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--rule); }

.nav__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.brand__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

.nav__menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  padding: 8px var(--pad) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav__menu.is-open { display: flex; }
.nav__menu a {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav__cta { align-self: flex-start; margin-top: 8px; padding: 12px 22px; border: 1px solid var(--ink); }

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

.hero {
  padding: var(--sec) 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__title {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

/* Hero stats: desktop-only per the spec; shown as a row in the tablet band. */
.stats { display: none; }
.stat__value {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}
.stat__label {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.approach {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--rule);
}
.approach__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.approach__head { display: flex; flex-direction: column; gap: 12px; }

.principles { display: flex; flex-direction: column; gap: 28px; }
.principle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.principle__num {
  font-family: var(--display);
  font-size: 18px;
  color: var(--accent);
}
.principle__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.principle__body { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------------------------------------------------- holdings --- */

.holdings {
  padding: var(--sec) 0;
  background: var(--ink);
  color: var(--bg);
}
.holdings :focus-visible { outline-color: var(--brass); }
.holdings a:hover { color: var(--brass); }

.holdings__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.holdings__note { font-size: 14px; color: var(--dark-cap); }

.cards { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--dark-rule);
}
.card__meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.card__status::before { content: "· "; }
.card__title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}
.card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-text);
}

/* Only holdings with a public site carry one. The rule underlines on hover
   rather than always, so the cards stay quiet until you reach for them. */
.card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.card__link:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.card__link svg { flex: none; }

/* ----------------------------------------------------------- contact --- */

.contact {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--rule);
}
.contact__inner { display: flex; flex-direction: column; gap: 32px; }
.contact__lead { display: flex; flex-direction: column; gap: 20px; }
.contact__intro { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  font-size: 15px;
}
.contact__details a { font-weight: 500; text-decoration: none; }
.contact__city { color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.field textarea {
  height: 120px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field [aria-invalid="true"] { border-color: #7a3b2e; }
.field__error { font-size: 13px; color: #7a3b2e; }
.form .btn { align-self: stretch; }
.form__note { font-size: 13px; color: var(--muted); }

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

.footer { padding: 28px 0; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { text-decoration: none; }

/* =========================================================== 768–1199 === */

@media (min-width: 768px) {
  :root { --pad: 64px; --sec: 88px; }

  body { font-size: 16px; }

  .eyebrow { font-size: 13px; }
  .h2 { font-size: 40px; }

  .btn { height: 52px; }
  .form .btn { align-self: flex-start; }

  .nav__inner { min-height: 80px; }
  .brand__mark { width: 34px; height: 34px; font-size: 22px; }
  .brand__name { font-size: 22px; }

  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: none;
    font-size: 14px;
  }
  .nav__menu a { padding: 0; font-size: 14px; }
  .nav__cta { align-self: auto; margin-top: 0; }

  .hero { padding: 96px 0 var(--sec); }
  .hero__title { font-size: 64px; line-height: 1.03; }
  .hero__sub { font-size: 19px; max-width: 620px; }
  .hero__ctas { flex-direction: row; gap: 16px; padding-top: 8px; }

  /* Stats sit below the CTAs, in a row. */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px;
  }
  .stat { border-top: 1px solid var(--ink); padding-top: 16px; }

  /* The head sits above the principles until there is room for both. */
  .approach__inner { gap: 48px; }
  .approach__head { gap: 16px; }
  .principles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .principle { gap: 14px; padding-top: 24px; }
  .principle__num { font-size: 20px; }
  .principle__title { font-size: 18px; }

  .holdings__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
  }
  .holdings__head > div { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .card { gap: 20px; padding: 32px; min-height: 260px; }
  .card__meta { justify-content: space-between; font-size: 12px; }
  .card__status::before { content: none; }
  .card__title { font-size: 30px; }
  .card__body { font-size: 15px; flex-grow: 1; }

  .contact__inner {
    flex-direction: row;
    gap: 32px;
  }
  .contact__lead { flex: 0 0 42%; }
  .contact__intro { max-width: 420px; }
  .form { flex: 1; }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field textarea { height: 140px; }

  .footer { padding: 40px 0; }
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
  }
  .footer__links { gap: 28px; }
}

/* ============================================================== 1200+ === */

@media (min-width: 1200px) {
  :root { --pad: 96px; --sec: 112px; }

  .wrap { max-width: 1440px; }

  .h2 { font-size: 44px; }

  .hero { padding: 128px 0 var(--sec); }
  .hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }
  .hero__lead { grid-column: 1 / span 8; gap: 32px; }
  .hero__title { font-size: 84px; line-height: 1.02; }
  .hero__sub { font-size: 20px; }

  /* Stats return to the right-hand column. */
  .stats {
    grid-column: 10 / span 3;
    grid-template-columns: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    margin-top: 0;
    padding-bottom: 8px;
  }

  .approach__inner { flex-direction: row; gap: 32px; }
  .approach__head { flex: 0 0 33.333%; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact__lead { flex-basis: 41.666%; }
}

/* ======================================================== preferences === */

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