/* SIR: Surf, Invest, Retire — retiredsir.com */

:root {
  --sand: #f4efe6;
  --paper: #fbf8f2;
  --foam: #ffffff;
  --ink: #152326;
  --muted: #4d5b5d;
  --line: #d7cfc2;
  --ocean: #0e5a62;
  --ocean-deep: #0a3d43;
  --copper: #b85a2a;
  --shadow: 0 18px 50px rgba(21, 35, 38, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: var(--ocean);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ocean-deep);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}

.wordmark-sir {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.wordmark-sub {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ocean);
}

.hero {
  position: relative;
  background:
    radial-gradient(1200px 420px at 80% -10%, color-mix(in srgb, var(--ocean) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, #e7efe9 100%);
  padding: 5.5rem 0 7rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 700;
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ocean);
  color: var(--foam);
}

.btn-primary:hover {
  background: var(--ocean-deep);
  color: var(--foam);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--foam) 70%, transparent);
  color: var(--ink);
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  color: var(--paper);
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.about,
.latest,
.topics,
.subscribe {
  padding: 5rem 0;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  gap: 1.25rem 3rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 8rem 1fr;
    align-items: start;
  }
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--copper);
}

.about-copy h2,
.section-head h2,
.subscribe-card h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
}

.about-copy p,
.subscribe-card p,
.section-note,
.video-fallback {
  color: var(--muted);
}

.about-copy p:last-child,
.subscribe-card p:last-child {
  margin-bottom: 0;
}

.latest {
  background: var(--sand);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.section-note {
  margin: -0.4rem 0 0;
  font-size: 0.98rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a1a1c;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.topics {
  background: var(--paper);
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .topic-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.topic-list li {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.topic-letter {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ocean);
  line-height: 1;
}

.topic-list h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.topic-list p:last-child {
  margin: 0;
  color: var(--muted);
}

.subscribe {
  padding-top: 1.5rem;
  padding-bottom: 5.5rem;
}

.subscribe-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ocean) 8%, var(--sand)), var(--sand));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.subscribe-card .section-kicker,
.subscribe-card h2,
.subscribe-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
}

.site-footer {
  background: var(--ink);
  color: #d6ddd8;
  padding: 3.5rem 0 2.75rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand .wordmark-sir {
  margin: 0;
  color: var(--paper);
}

.footer-brand p {
  margin: 0.2rem 0 0;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 550;
}

.social a:hover {
  color: #b7ddd8;
}

.disclaimer {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  font-size: 0.92rem;
  color: #b4bdb8;
}

.copyright {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #8f9a96;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0 0.95rem;
    min-height: 0;
    gap: 0.65rem;
  }

  .hero {
    padding: 3.4rem 0 5.5rem;
  }

  .about,
  .latest,
  .topics {
    padding: 3.5rem 0;
  }

  .subscribe {
    padding-bottom: 3.75rem;
  }
}

.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;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.video-facade:hover .play,
.video-facade:focus-visible .play {
  transform: scale(1.08);
}

.video-facade:hover svg path:first-child,
.video-facade:focus-visible svg path:first-child {
  fill: #c00;
  fill-opacity: 1;
}
