/* The Providers Playbook
   Shared styles for the static site. Other pages can link this file.
   Colors come from the cover photo: navy ocean, storm lavender, sunset coral. */

/* Anton by Vernon Adams, SIL Open Font License 1.1. https://scripts.sil.org/OFL */
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/Anton-Regular.woff2") format("woff2"),
       url("assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1424;
  --raised: #141c2e;
  --ink: #ffffff;
  --body: #e6dfd6;
  --muted: #cfc6d4;
  --soft: #a89bb8;
  --link: #f0a080;
  --coral: #f07848;
  --coral-hover: #ff8d5c;
  --coral-press: #e06a38;
  --line: rgba(168, 155, 184, 0.32);
  --focus: #ffb089;
  --display: "Anton", Impact, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: 1.25rem;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--coral-hover);
}

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

::selection {
  background: var(--coral);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid rgba(240, 120, 72, 0.4);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--ink);
}

.header-link {
  color: var(--link);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 0.15rem;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The cover photo is shown whole. Do not crop it, and do not lay text,
   buttons, or a tint over it. The three ships sit on the horizon. */
.hero {
  display: block;
}

.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--bg);
}

.hero-copy-inner {
  width: min(100% - (var(--pad) * 2), 38rem);
  margin: 1.6rem auto 2.4rem;
}

h1 {
  font-size: clamp(2.55rem, 8vw, 4.5rem);
  line-height: 0.94;
  text-wrap: balance;
}

.lede {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--body);
  max-width: 36rem;
}

.cta {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.2;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--coral);
  color: var(--bg);
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 3.15rem;
  padding: 0.9rem 1.35rem;
  width: 100%;
}

.btn-primary:hover {
  background: var(--coral-hover);
  color: var(--bg);
}

.btn-primary:active {
  background: var(--coral-press);
  color: var(--bg);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--soft);
  width: 100%;
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--ink);
}

.wrap {
  width: min(100% - (var(--pad) * 2), 66rem);
  margin-inline: auto;
}

.who {
  padding: 3.5rem 0 1rem;
}

.who .wrap {
  width: min(100% - (var(--pad) * 2), 40rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 2.85rem);
  line-height: 0.98;
  text-wrap: balance;
}

.who p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* About page cover. Shown whole. Do not crop it or cover the ships. */
.about-photo {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  background: var(--bg);
}

.text-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.latest {
  padding: 3.25rem 0 1rem;
}

.latest h2 {
  margin-bottom: 1.35rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--raised);
  color: var(--body);
  text-decoration: none;
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: 10px;
  padding: 1.35rem 1.25rem 1.25rem;
}

.card:hover {
  border-color: rgba(240, 120, 72, 0.7);
  border-top-color: var(--coral);
  color: var(--body);
}

.kicker {
  margin: 0;
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.55rem 0 0.7rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.card p:last-of-type {
  flex: 1;
}

.card-go {
  margin-top: 1.15rem;
  color: var(--link);
  font-weight: 700;
}

.card .btn {
  margin-top: 1.15rem;
  align-self: flex-start;
}

.closing {
  padding: 3.25rem var(--pad) 3.5rem;
  text-align: center;
}

.closing .btn-primary {
  width: min(100%, 22rem);
}

.site-footer {
  padding: 1.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.copyright {
  margin-top: 0.9rem;
  color: var(--soft);
  font-size: 0.95rem;
}

@media (max-width: 359px) {
  .wordmark {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  :root {
    --pad: 1.5rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .site-header {
    padding-inline: 1.5rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }

  .hero-copy {
    display: flex;
    align-items: center;
  }

  .hero-copy-inner {
    width: min(100% - 5rem, 36rem);
    margin: 3rem auto;
  }

  h1 {
    font-size: clamp(3.1rem, 4.4vw, 4.6rem);
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
  }

  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .who,
  .latest {
    padding-top: 5.5rem;
  }

  .closing {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

/* Header links sit together. Start here reuses the home page look. */
.site-header {
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.85rem 1.15rem;
}

.header-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-intro {
  padding: 2.75rem 0 0.5rem;
}

.page-intro .wrap,
.sayings .wrap,
.best .wrap {
  width: min(100% - (var(--pad) * 2), 48rem);
}

.sayings,
.best {
  padding: 3rem 0 0.5rem;
}

.sayings h2,
.best h2 {
  margin-bottom: 1.35rem;
}

.quotes,
.post-list {
  display: grid;
  gap: 1rem;
}

.quote {
  margin: 0;
  background: var(--raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: 10px;
  padding: 1.75rem 1.4rem 1.45rem;
}

.quote p {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  color: var(--ink);
  font-size: clamp(1.7rem, 4.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.quote-note {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--body);
  margin-top: 1rem;
}

.quote-by {
  display: block;
  margin-top: 1.35rem;
  color: var(--link);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-cta {
  width: min(100%, 24rem);
  margin-inline: auto;
}

.closing-cta .btn-row {
  flex-direction: column;
}

.closing-cta .btn-primary,
.closing-cta .btn-secondary {
  width: 100%;
}

/* Podcast page. The show cover is shown whole. Do not cover the ships. */
.listen {
  padding: 0.5rem 0 0.5rem;
}

.listen .wrap {
  width: min(100% - (var(--pad) * 2), 52rem);
}

.listen-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-content: start;
}

.show-cover {
  width: min(100%, 28rem);
  height: auto;
  background: var(--bg);
}

.listen-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(100%, 22rem);
}

.listen-actions .btn-primary {
  width: 100%;
}

.callout-line {
  margin: 0 auto 1rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

@media (max-width: 719px) {
  .header-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
  }
}

@media (min-width: 800px) {
  .listen-layout {
    grid-template-columns: auto minmax(16rem, 22rem);
    gap: 2.25rem;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  .header-link {
    font-size: 0.9rem;
  }

  .header-nav {
    gap: 0.7rem;
  }
}

@media (min-width: 800px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .page-intro {
    padding-top: 4.5rem;
  }

  .sayings,
  .best {
    padding-top: 4.25rem;
  }
}

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