/* Swansea FinTech Society — concept 1 palette, institutional monochrome
   direction (see ../design.md, "Decisions").
   Contrast rules: bronze is hairlines/details only on cream (2.8:1 — never
   text); on black it passes for large caps labels (6.8:1). Purple is for
   links and hover highlights, always with adequate contrast on cream. */

:root {
  --black: #000000;
  --cream: #F5F2ED;
  --purple: #771372;
  --bronze: #B08D57;
  --ink-muted: #4a463f;
  --hairline: rgba(176, 141, 87, 0.55);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--cream);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 760px; }

/* Eyebrow labels — letter-spaced small caps, Blackstone-style */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
}

.site-header nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header nav a:hover { color: var(--purple); }

/* Hero — black, editorial */

.hero {
  background: var(--black);
  color: var(--cream);
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-copy { flex: 1 1 34rem; }

.hero .eyebrow { color: var(--bronze); }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  margin-bottom: 1.5rem;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  color: rgba(245, 242, 237, 0.85);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-mark { flex: 0 0 auto; }

.hero-mark img { display: block; }

/* Buttons and links */

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-light {
  background: var(--cream);
  color: var(--black);
}

.btn-light:hover {
  background: var(--bronze);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--cream);
}

.btn-dark:hover { background: var(--purple); }

.arrow-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 0.2rem;
}

.arrow-link::after { content: " \2192"; }

.arrow-link:hover { color: var(--bronze); }

/* Sections */

.section { padding: 5.5rem 0; }

.section + .section { border-top: 1px solid var(--hairline); }

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.section p + p { margin-top: 1.1rem; }

.section p:has(.btn) { margin-top: 2rem; }

.section-dark {
  background: var(--black);
  color: var(--cream);
  border-top: none;
}

.section-dark .eyebrow { color: var(--bronze); }

.section-dark p { color: rgba(245, 242, 237, 0.85); }

.section-dark h2 { color: var(--cream); }

/* Pillars — hairline-ruled columns, no card boxes */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.pillar {
  border-top: 2px solid var(--black);
  padding-top: 1.25rem;
}

.pillar h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}

.pillar p {
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* Links in body text */

.section a:not(.btn) {
  color: var(--purple);
  text-decoration: underline;
}

.section-dark a:not(.btn) { color: var(--cream); }

/* Footer */

.site-footer {
  background: var(--black);
  color: rgba(245, 242, 237, 0.85);
  padding: 3.5rem 0;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-inner p + p { margin-top: 0.5rem; }

.site-footer a {
  color: var(--cream);
  text-decoration: underline;
}

.site-footer a:hover { color: var(--bronze); }

.site-footer .fine {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(176, 141, 87, 0.35);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Focus visibility on both surfaces */

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.hero a:focus-visible,
.section-dark a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--bronze);
}

/* Responsive */

@media (max-width: 820px) {
  .hero { padding: 4rem 0; }
  .hero-inner { flex-direction: column-reverse; }
  /* in column direction the 34rem flex-basis would become height */
  .hero-copy { flex: 0 1 auto; }
  .hero-mark img { width: 110px; height: auto; }
  .pillars { grid-template-columns: 1fr; gap: 1.75rem; }
}
