/* ==========================================================================
   Lintel Holdings — stylesheet
   Every colour, size and spacing value in the site is a token declared in
   :root below. Change a token here and it changes everywhere at once.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Palette: warm limestone, deep ink, a single restrained brass accent. */
  --paper:        #f5f2ec;   /* page background — warm off-white, like stone */
  --paper-raised: #fffdf9;   /* cards sitting on the page */
  --ink:          #16181d;   /* body text, near-black with a cool cast */
  --ink-soft:     #4c5059;   /* secondary text */
  --ink-faint:    #878b93;   /* captions, labels, meta */
  --rule:         #ddd7cb;   /* hairlines and borders */
  --rule-strong:  #b9b1a0;   /* emphasised borders */
  --brass:        #8a6b3d;   /* the one accent — links, marks, small details */
  --brass-lift:   #a8854f;   /* accent, hover */
  --band:         #1b1e24;   /* dark section backgrounds */
  --band-ink:     #eae6dd;   /* text on dark bands */

  /* Type */
  --font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --measure:  68ch;   /* max line length for readable prose */
  --shell:    1180px; /* max page width */
  --gutter:   clamp(1.25rem, 5vw, 4rem);
  --band-pad: clamp(4rem, 9vw, 7.5rem);

  --radius: 3px;      /* almost square — this is architecture, not a startup */
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 12px 32px -12px rgba(22, 24, 29, .12);
}

/* Dark mode: the same design, re-tokenised. No layout changes needed. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #14161a;
    --paper-raised: #1c1f25;
    --ink:          #ece8e0;
    --ink-soft:     #a9aeb8;
    --ink-faint:    #7c828d;
    --rule:         #2c3037;
    --rule-strong:  #454b55;
    --brass:        #c9a670;
    --brass-lift:   #e0bd85;
    --band:         #0e1013;
    --band-ink:     #ece8e0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

/* --- 2. Reset and base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.9vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .5vw, 1.45rem); letter-spacing: -.01em; }

p { margin: 0 0 1.25em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-decoration: none; text-underline-offset: .22em;
    text-decoration-thickness: 1px; transition: color .18s ease; }
a:hover { color: var(--brass-lift); text-decoration: underline; }

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

/* --- 3. Layout primitives ------------------------------------------------ */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.band { padding-block: var(--band-pad); }
.band + .band { border-top: 1px solid var(--rule); }
.band--dark  { background: var(--band); color: var(--band-ink); border-top: none; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--band-ink); }
.band--dark p { color: #b7bcc6; }
.band--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

/* The eyebrow label that opens most sections. */
.eyebrow {
  font-size: .73rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .85rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 5rem; }
.band--dark .eyebrow { color: #8b919c; }
.band--dark .eyebrow::after { background: #33383f; }

.lede { font-size: clamp(1.1rem, 1.02rem + .42vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); }
.band--dark .lede { color: #c2c7d0; }

/* --- 4. The lintel mark -------------------------------------------------- */
/* A lintel is the beam spanning an opening — two piers, one span, load above.
   It is the site's one recurring graphic device. */
.lintel-rule {
  border: 0; height: 0; margin: 0 0 2.5rem;
  border-top: 2px solid var(--ink); width: 3.5rem; position: relative;
}
.lintel-rule::before, .lintel-rule::after {
  content: ""; position: absolute; top: 0; width: 2px; height: .6rem; background: var(--ink);
}
.lintel-rule::before { left: 0; }
.lintel-rule::after  { right: 0; }
.band--dark .lintel-rule { border-top-color: var(--band-ink); }
.band--dark .lintel-rule::before, .band--dark .lintel-rule::after { background: var(--band-ink); }

/* --- 5. Site header ------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; flex: none; color: var(--brass); }
.wordmark__text { font-family: var(--font-display); font-size: 1.16rem; letter-spacing: .015em; line-height: 1; }
.wordmark__text b { font-weight: 600; }
.wordmark__text span { color: var(--ink-faint); font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a {
  color: var(--ink-soft); font-size: .93rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; padding-block: .35rem;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); }

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 550; letter-spacing: .005em;
  padding: .82rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .18s ease, color .18s ease,
  border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid   { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); color: var(--paper); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.band--dark .btn--solid { background: var(--band-ink); color: var(--band); }
.band--dark .btn--solid:hover { background: #fff; color: var(--band); }
.band--dark .btn--ghost { color: var(--band-ink); border-color: #3c424b; }
.band--dark .btn--ghost:hover { border-color: var(--band-ink); color: var(--band-ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* --- 7. Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 46ch; }

/* The architectural drawing that sits beside the hero copy. */
.blueprint { width: 100%; color: var(--ink); }
.blueprint .stroke   { stroke: currentColor; fill: none; }
.blueprint .faint    { stroke: var(--rule-strong); fill: none; }
.blueprint .fill-acc { fill: var(--brass); }
.blueprint .label    { fill: var(--ink-faint); font-family: var(--font-body);
                       font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* --- 8. Cards and grids -------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); }

.card {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card--link:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.card__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brass); border: 1px solid currentColor;
  border-radius: 2px; padding: .22rem .5rem;
}
.card__foot { margin-top: auto; padding-top: .6rem; font-size: .9rem; font-weight: 550; }

/* A numbered principle — used for "How we operate". */
.principle { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.principle__num {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--brass);
  border-top: 2px solid currentColor; padding-top: .55rem; min-width: 2.2rem;
}
.principle h3 { margin: 0 0 .4rem; font-size: 1.18rem; }
.principle p  { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.band--dark .principle p { color: #aeb4be; }

/* --- 9. Venture entries (ventures page) ---------------------------------- */
.entry { padding-block: clamp(2.25rem, 4.5vw, 3.25rem); border-top: 1px solid var(--rule); }
.entry:first-of-type { border-top: none; padding-top: 0; }
.entry__grid { display: grid; gap: clamp(1rem, 3vw, 3rem); }
@media (min-width: 820px) { .entry__grid { grid-template-columns: 15rem 1fr; } }
.entry__meta { display: flex; flex-direction: column; gap: .5rem; }
.entry__meta dt { font-size: .68rem; font-weight: 600; letter-spacing: .13em;
                  text-transform: uppercase; color: var(--ink-faint); }
.entry__meta dd { margin: 0 0 .85rem; font-size: .95rem; color: var(--ink); }
.entry h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .35em; }

/* --- 10. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; max-width: 38rem; }
.field { display: grid; gap: .42rem; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: .72rem .85rem; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field--pair { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field--pair { grid-template-columns: 1fr 1fr; } }

/* The honeypot: invisible to people, irresistible to bots. Never `display:none`
   — some bots skip hidden fields. Push it off-screen instead. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .85rem; color: var(--ink-faint); max-width: 38rem; }

/* Status message shown after the form is submitted. */
.form__status { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .94rem;
                border: 1px solid; display: none; }
.form__status[data-state="ok"]      { display: block; border-color: #4f7a52; background: color-mix(in srgb, #4f7a52 12%, transparent); color: var(--ink); }
.form__status[data-state="error"]   { display: block; border-color: #a2543f; background: color-mix(in srgb, #a2543f 12%, transparent); color: var(--ink); }
.form__status[data-state="working"] { display: block; border-color: var(--rule-strong); color: var(--ink-soft); }

/* --- 11. Contact details list -------------------------------------------- */
.detail-list { display: grid; gap: 1.6rem; margin: 0; }
.detail-list dt { font-size: .68rem; font-weight: 600; letter-spacing: .13em;
                  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .3rem; }
.detail-list dd { margin: 0; font-size: 1rem; color: var(--ink); }

/* --- 12. Footer ---------------------------------------------------------- */
.site-foot { background: var(--band); color: var(--band-ink); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 600;
                letter-spacing: .15em; text-transform: uppercase; color: #8b919c; margin: 0 0 1rem; }
.site-foot a { color: #c8cdd6; font-size: .94rem; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-foot p { color: #8b919c; font-size: .92rem; }
.site-foot .wordmark { color: var(--band-ink); }
.site-foot .wordmark__text span { color: #8b919c; }
.site-foot__base {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid #2a2e35;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: #757b86;
}
.site-foot__base p { margin: 0; font-size: .85rem; }

/* --- 13. Utilities ------------------------------------------------------- */
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.center-col { max-width: 44rem; margin-inline: auto; text-align: center; }
.center-col p, .center-col .lede { margin-inline: auto; }
.center-col .lintel-rule, .center-col .eyebrow { margin-inline: auto; justify-content: center; }
.center-col .eyebrow::after { display: none; }
.center-col .btn-row { justify-content: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--ink);
  color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--radius); transition: top .18s ease;
}
.skip-link:focus { top: .75rem; text-decoration: none; color: var(--paper); }

/* --- 14. Narrow screens -------------------------------------------------- */
/* Below ~540px the wordmark and three nav links cannot share a row without
   forcing the page sideways. Let the header wrap into two centred rows
   instead — no JavaScript, no hamburger, and it never overflows. */
@media (max-width: 540px) {
  .site-head__inner {
    flex-wrap: wrap; justify-content: center;
    gap: .4rem 1rem; min-height: 0; padding-block: .8rem;
  }
  .nav { width: 100%; justify-content: center; gap: 1.5rem; }
  .nav a { font-size: .88rem; }
  .wordmark__text { font-size: 1.08rem; }

  /* The footer's bottom row reads better stacked than squeezed. */
  .site-foot__base { flex-direction: column; gap: .4rem; }
}
