/* Sumus Balt Projects — design concept by Matthew Link
   Shared tokens, type and components for index.html and brand.html */

:root {
  --night: #100E0C;
  --plate: #1C1A17;
  --iron: #3A3834;
  --steel: #9A958C;
  --clay: #C6A58C;
  --last-light: #E39B48;
  --panel: #E7E4DC;
  --drawing: #F6F3EC;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);
  --fs-title: clamp(1.9rem, 1.35rem + 2.1vw, 2.5rem);
  --fs-heading: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-body: 1.125rem;
  --fs-label: 0.75rem;

  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --max: 82rem;
  --header-h: 4.6rem;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--drawing);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--last-light); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--last-light); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--last-light); color: var(--night); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--drawing); color: var(--night); padding: .75rem 1rem;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.display, .title, .heading { font-family: var(--font-head); }
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.title { font-size: var(--fs-title); font-weight: 650; }
.heading { font-size: var(--fs-heading); font-weight: 600; }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.5; color: var(--drawing); max-width: 38ch; }
.body { font-size: var(--fs-body); line-height: 1.5; }
.note { font-style: italic; color: var(--steel); font-size: 1rem; }
.muted { color: var(--steel); }
.label, .kicker {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}
.label { color: var(--steel); font-size: max(var(--fs-label), 0.875rem); letter-spacing: .14em; }
.kicker { font-family: var(--font-head); font-weight: 600; color: var(--last-light); font-size: .8125rem; }
.em { color: var(--last-light); }

/* ---------- To confirm tag ---------- */
.tbc {
  display: inline-flex; align-items: center; gap: .4em;
  border: 1px solid var(--last-light); color: var(--last-light);
  font-family: var(--font-body); font-weight: 600; font-style: normal;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .2em .6em .22em; line-height: 1.2; border-radius: 2px;
  white-space: nowrap; vertical-align: middle;
}
.tbc::before { content: ""; width: .45em; height: .45em; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8.5rem); position: relative; }
.rule { height: 1px; background: var(--iron); border: 0; margin: 0; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(246,243,236,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246,243,236,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ---------- The Stake ---------- */
.stake { display: inline-block; width: 14px; height: 56px; color: var(--last-light); flex: none; }
.stake svg { width: 100%; height: 100%; overflow: visible; }
.chapter-mark { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem; }
.chapter-mark .stake { height: 3.2rem; margin-top: -.15rem; }
.chapter-mark .kicker { padding-top: .1rem; }
.chapter-mark .label { display: block; margin-top: .4rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--drawing); --bd: rgba(246,243,236,.5);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 2px; position: relative; isolation: isolate;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { --bd: var(--drawing); color: var(--fg); }
.btn--primary { --bg: var(--last-light); --fg: var(--night); --bd: var(--last-light); }
.btn--primary:hover { --bg: var(--drawing); --bd: var(--drawing); color: var(--night); }
.btn--light { --bg: var(--drawing); --fg: var(--night); --bd: var(--drawing); }
.btn--light:hover { --bg: var(--last-light); --bd: var(--last-light); color: var(--night); }
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.textlink {
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  border-bottom: 1px solid transparent;
}
.textlink:hover { color: var(--last-light); }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; background: var(--plate); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03) brightness(.94); }
.photo--shade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(16,14,12,.7) 0%, rgba(16,14,12,.35) 35%, rgba(16,14,12,0) 62%);
}

/* ---------- Contact block ---------- */
.contact-block { display: grid; gap: 1.4rem; font-size: 1.0625rem; }
.contact-block dt { margin-bottom: .3rem; }
.contact-block dd { margin: 0; }
.contact-block a { text-decoration: none; border-bottom: 1px solid rgba(246,243,236,.25); }
.contact-block a:hover { border-color: var(--last-light); }

/* ---------- Logo ---------- */
.logo-img { height: 32px; width: auto; }
.logo-img--inv { filter: invert(1) brightness(1.15); }

/* ---------- Reveal defaults (GSAP sets the start state; without it everything is visible) ---------- */
.no-motion * { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
