/* Nexus Habitat · Lorbeer. Local resources, no runtime dependencies. */
:root {
  --color-brand: #183f35;
  --color-accent: #ac9166;
  --color-bg: #f5f2ea;
  --color-surface: #fff;
  --color-surface-muted: #eeece2;
  --color-text: #24372f;
  --color-text-muted: #526158;
  --color-text-inverse: #f5f2ea;
  --color-border-decorative: #d5d5c9;
  --color-border-functional: #526158;
  --color-focus: #183f35;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --layout-max: 72rem;
  --text-max: 65ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--color-brand); font-family: var(--font-display); font-weight: 400; }
h1, h2 { text-wrap: balance; }
em { font-weight: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
::selection { background: var(--color-brand); color: var(--color-bg); }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--layout-max)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 10; padding: .65rem 1rem; background: var(--color-brand); color: var(--color-bg); transform: translateY(-200%); }
.skip:focus { transform: none; outline-color: var(--color-bg); }
.eyebrow { font-family: var(--font-body); font-size: .75rem; font-weight: 500; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.small-rule { display: inline-block; width: 2rem; height: 1px; flex: 0 0 auto; background: var(--color-accent); }
.grid-motif, .contact-grid { flex: 0 0 auto; width: 5rem; height: 2rem; opacity: .6; background-image: repeating-linear-gradient(45deg, transparent 0 15px, var(--color-accent) 15px 16px, transparent 16px 32px), repeating-linear-gradient(-45deg, transparent 0 15px, var(--color-accent) 15px 16px, transparent 16px 32px); }

/* A compact masthead, with every navigation link visible on mobile. */
.site-header { padding-block: 1.35rem; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-bottom: 1px solid var(--color-border-decorative); padding-bottom: 1.25rem; }
.brand { flex: 0 1 15rem; min-width: 0; max-width: 100%; }
.brand img { width: 15rem; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.25rem, 3.8vw, 3rem); }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 1.4rem; font-size: .875rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.nav-contact { border-bottom: 1px solid var(--color-brand); }
.nav-contact span { font-size: 1.2rem; }

/* The opening spreads type and architecture across an asymmetric composition. */
.hero { display: grid; grid-template-columns: 1.16fr 1fr; gap: 2rem; padding-block: 3rem 4.5rem; }
.hero-copy { position: relative; padding-top: 1.75rem; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 1rem; }
.hero h1 { margin-block: 2rem 1.8rem; font-size: clamp(2.65rem, 6.1vw, 5.25rem); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 em { display: inline-block; max-width: 100%; letter-spacing: -.055em; }
.hero-description { max-width: 32ch; font-size: 1.0625rem; color: var(--color-text-muted); }
.text-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; margin-top: 1.6rem; border-bottom: 1px solid var(--color-brand); text-decoration: none; font-size: .875rem; }
.text-action span { font-size: 1.35rem; }
.text-action:hover { border-bottom-width: 2px; }
.hero-note { display: flex; align-items: flex-start; gap: 1.3rem; margin-top: 4rem; font-size: .75rem; line-height: 1.6; color: var(--color-text-muted); }
.note-index { padding-top: .15rem; letter-spacing: .08em; font-size: .75rem; }
.hero-note p { border-left: 1px solid var(--color-border-decorative); padding-left: 1.3rem; }
.hero-figure { position: relative; min-width: 0; }
.hero-image { height: 35rem; background: var(--color-surface-muted); }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; color: var(--color-text-muted); font-size: .8125rem; line-height: 1.6; }
.hero-figure figcaption { margin-top: .8rem; }

/* One continuous field, rather than a grid of cards. */
.activities { background: var(--color-brand); color: var(--color-text-inverse); padding-block: 2rem 3.5rem; }
.section-label { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid #49665b; padding-bottom: 1.25rem; }
.section-label h2 { color: inherit; }
.section-label > span { font-size: .75rem; letter-spacing: .1em; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 2.5rem; }
.activity { padding-inline: 2.5rem; border-left: 1px solid #49665b; }
.activity:first-child { padding-left: 0; border-left: 0; }
.activity:last-child { padding-right: 0; }
.activity-number { color: #c4cabc; font-size: .75rem; letter-spacing: .1em; }
.activity h3 { color: inherit; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.2; margin-block: .6rem 1rem; letter-spacing: -.025em; }
.activity p { max-width: 28ch; color: #d2dad1; font-size: .875rem; line-height: 1.7; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-areas: "image copy"; gap: clamp(3rem, 8vw, 7rem); align-items: center; padding-block: 7rem; }
.about-figure { grid-area: image; align-self: start; }
.about-figure > img { width: 100%; aspect-ratio: 1.03; object-fit: cover; object-position: 62% center; background: var(--color-surface-muted); }
.about-figure figcaption { margin-top: .8rem; }
.about-copy { grid-area: copy; }
.about-copy h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em; margin-block: 1.4rem 1.8rem; }
.about-copy > p:not(.eyebrow) { color: var(--color-text-muted); max-width: 48ch; }
.about-copy > p + p { margin-top: 1rem; }
.company-note { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: flex-start; border-top: 1px solid var(--color-border-decorative); padding-top: 1.5rem; margin-top: 2rem; }
.company-note .small-rule { margin-top: .65rem; }
.company-note p { color: var(--color-text-muted); font-size: .8125rem; line-height: 1.7; }
.company-note > .grid-motif { margin-left: auto; }

.contact { background: var(--color-surface-muted); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); position: relative; padding-block: 4.5rem 5rem; }
.contact h2, .meeting-access h3 { margin-top: 1.25rem; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; }
.contact-details { align-self: center; position: relative; z-index: 1; }
.contact-details > p:first-child { max-width: 42ch; color: var(--color-text-muted); }
.email-link { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 44px; padding-block: 1rem; margin-block: .5rem 1rem; border-bottom: 1px solid var(--color-brand); font-size: clamp(1rem, 1.7vw, 1.45rem); text-decoration: none; overflow-wrap: anywhere; }
.email-link span { flex: 0 0 auto; font-size: 1.6rem; }
.email-link:hover { border-bottom-width: 2px; }
.contact-meta { font-size: .875rem; color: var(--color-text-muted); max-width: 42ch; }
.contact-grid { position: absolute; right: 0; bottom: 0; width: 9rem; max-width: 100%; height: 3rem; }
.meeting-access { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--color-border-decorative); }
.meeting-details p { color: var(--color-text-muted); max-width: 46ch; }
.meeting-details p + p { margin-top: 1rem; }
.meeting-details .text-action { max-width: 100%; overflow-wrap: anywhere; }

.site-footer { padding-block: 2rem; font-size: .75rem; color: var(--color-text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand > img { width: 2.5rem; height: 2.5rem; }
.footer-location { display: block; font-size: .75rem; }
.site-footer nav a, .back-top { font-size: .875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.back-top { gap: 1.5rem; text-decoration: none; }
.back-top:hover { text-decoration: underline; }

/* Legal pages use the same masthead and a readable continuous text column. */
.legal { padding-block: 3rem 6rem; }
.legal > .wrap { max-width: 48rem; }
.legal h1 { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border-decorative); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.legal h2 { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.5; font-weight: 500; margin-block: 2.25rem .75rem; }
.legal p, .legal address, .legal ul { max-width: var(--text-max); }
.legal p + p { margin-top: 1rem; }
.legal address { font-style: normal; }
.legal a { overflow-wrap: anywhere; }
.legal ul { padding-left: 1.25rem; }
.legal + .site-footer { border-top: 1px solid var(--color-border-decorative); }

@media (max-width: 64rem) {
  .hero { gap: 1.5rem; padding-top: 2rem; }
  .hero-copy { padding-top: 1rem; }
  .hero .eyebrow { font-size: .75rem; gap: .6rem; }
  .hero .small-rule { width: 1rem; }
  .hero-image { height: 32rem; }
  .hero-note { margin-top: 2.5rem; }
  .activity { padding-inline: 1.5rem; }
  .about { padding-block: 5rem; gap: 3rem; }
}

@media (max-width: 40rem) {
  .site-header { padding-top: .8rem; }
  .header-inner { gap: .5rem 1.25rem; flex-wrap: wrap; padding-bottom: .8rem; }
  .brand { flex-basis: 12rem; }
  .brand img { width: 12rem; }
  .site-header nav { gap: 1.5rem; margin-left: auto; }
  .site-header nav a { gap: .6rem; font-size: .875rem; }
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 1rem 3rem; }
  .hero-copy { padding-top: .75rem; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 4rem); margin-block: 1.5rem; }
  .hero-description { max-width: 34ch; font-size: 1rem; }
  .text-action { margin-top: 1.25rem; }
  .hero-note { display: none; }
  .hero-image { height: auto; aspect-ratio: 1.2; }
  .activities { padding-block: 1.75rem 2.5rem; }
  .activity-grid { grid-template-columns: 1fr; margin-top: 0; }
  .activity, .activity:first-child, .activity:last-child { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; border-left: 0; padding: 1.75rem 0; border-bottom: 1px solid #49665b; }
  .activity:last-child { padding-bottom: 0; border-bottom: 0; }
  .activity-number { padding-top: .6rem; grid-row: span 2; }
  .activity h3 { font-size: 2rem; margin: 0 0 .5rem; }
  .activity p { max-width: 34ch; }
  .about { grid-template-columns: 1fr; grid-template-areas: "copy" "image"; padding-block: 3.5rem; gap: 2.5rem; }
  .about-copy h2 { margin-block: 1rem 1.5rem; }
  .about-figure { width: 85%; }
  .about-figure > img { aspect-ratio: 1.3; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.5rem; }
  .meeting-access { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .email-link { font-size: clamp(1rem, 4.7vw, 1.4rem); }
  .site-footer { padding-block: 1.5rem; }
  .footer-inner { gap: .75rem 2rem; }
  .footer-brand { flex-basis: 100%; }
  .legal { padding-top: 1.75rem; padding-bottom: 3.5rem; }
  .legal h1 { margin-bottom: 2rem; padding-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 160ms, background-color 160ms; }
}

@media (forced-colors: active) {
  a:focus-visible, .skip:focus { outline: 3px solid Highlight; }
  .small-rule, .grid-motif, .contact-grid { display: none; }
  .nav-contact, .text-action, .email-link { border-color: LinkText; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header nav, .skip, .back-top, .grid-motif, .contact-grid { display: none; }
  .hero, .about, .contact-inner { display: block; padding-block: 1.5rem; }
  .meeting-access { display: block; margin-top: 1.5rem; }
  .meeting-details { margin-top: 1rem; }
  .hero-note { display: none; }
  .hero-figure, .about-figure { max-width: 20rem; margin-block: 1.5rem; }
  .hero-image { height: 15rem; }
  .activities { background: #fff; color: #000; border-block: 1px solid #999; padding-block: 1rem; }
  .activity h3, .activity p, .activity-number { color: #000; }
  .contact { background: #fff; }
  .legal h2 { break-after: avoid; }
  .legal p, .legal address, .activity { break-inside: avoid; }
}
