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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-raised: #1c2129;
  --text: #f0f0f0;
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #5b9bd5;
  /* Darker tint of --accent so white button labels clear WCAG AA (4.8:1). */
  --accent-strong: #3776ae;
  --accent-strong-hover: #2e6697;
  --accent-soft: rgba(91, 155, 213, 0.15);
  --accent-glow: rgba(91, 155, 213, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 720px;
  --section-pad: clamp(4rem, 10vw, 6rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7eb3e8;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 155, 213, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #0a1628 0%, #0d1117 45%, #0d1117 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(255, 255, 255, 0.015) 48px,
      rgba(255, 255, 255, 0.015) 49px
    );
  opacity: 0.5;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 25, 0.2) 0%,
    rgba(13, 17, 23, 0.4) 70%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  max-width: 52rem;
}

.brand-parent {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.motto {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.divider {
  width: 200px;
  height: 1px;
  margin: 1.25rem auto;
  border: none;
  background: repeating-linear-gradient(
    90deg,
    var(--text-muted) 0,
    var(--text-muted) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.6;
}

.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.campaign-line {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-strong);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-strong-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: none;
  color: var(--text);
}

/* Sections */
main section {
  padding: var(--section-pad) 1.5rem;
  max-width: calc(var(--max-width) + 3rem);
  margin: 0 auto;
}

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

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.pitch-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.pitch-lines span:last-child {
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

main section p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}

.pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pillars h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pillars p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.arrow-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.35rem;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.arrow-list li {
  display: inline-flex;
  align-items: center;
}

.arrow-list li:not(:last-child)::after {
  content: '→';
  margin-left: 0.35rem;
  color: var(--accent);
  opacity: 0.7;
}

/* Living Seamanship — the four movements, and the per-practice marker */
.movements,
.courses {
  margin: 1.5rem 0;
}

.movements dt,
.courses dt {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.movements dd,
.courses dd {
  font-size: 0.98rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.movements dd:last-of-type,
.courses dd:last-of-type {
  margin-bottom: 0;
}

.seamanship-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9rem;
}

.seamanship-note span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.service-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.service-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.claim {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.pull-quote {
  margin-top: 1.75rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
}

main section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}

main section .pillars h3 {
  margin: 0 0 0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.partner-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-top: 1rem;
}

.partner-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact {
  text-align: center;
  padding-bottom: calc(var(--section-pad) + 1rem);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
