/* Ocean Wishes — Wish letters
   Colors from brand-brief.md. #33CCCC is only used on the give button. */

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --warm: #fbfaf3;
  --navy: #15133a;
  --give: #33cccc;
  --muted: #686868;
  --line: rgba(17, 17, 17, 0.16);
  --font-text: Manrope, sans-serif;
  --font-display: Fraunces, serif;
  --measure: 61ch;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --bar-h: 4.25rem;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 420;
  line-height: 1.65;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
}

@media (min-width: 700px) {
  body {
    font-size: 1.125rem;
  }
}

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

p,
h1,
h2,
h3,
blockquote {
  text-wrap: pretty;
}

h1,
h2,
h3,
.pull,
.lede,
.grants li {
  font-family: var(--font-display);
  font-weight: 520;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1, "wght" 560;
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0, "wght" 520;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-variation-settings: "opsz" 48, "SOFT" 20, "WONK" 0, "wght" 520;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
.give:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--give);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.6rem;
  z-index: 40;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
}

.skip:focus {
  transform: none;
}

/* Sticky bar: the give button stays in view. Solid white, not glass. */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--bar-h);
  padding: 0.55rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.bar-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 560;
  font-variation-settings: "opsz" 36, "SOFT" 20, "wght" 560;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.bar-name:hover {
  text-decoration: none;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-button {
  display: none;
}

@media (min-width: 1181px) {
  .nav-check {
    display: none;
  }
}

.bar-nav {
  margin-left: auto;
}

.bar-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar-nav a {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.bar-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  background: var(--give);
  color: var(--ink);
  border: 2px solid var(--give);
  font-family: var(--font-text);
  font-size: 1.125rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 40px;
  transition: transform 0.15s ease;
}

.give:hover {
  text-decoration: none;
  border-color: transparent;
  transform: translateY(-3px);
}

.give:focus-visible {
  text-decoration: none;
}

.give:active {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .give,
  .footer-nav a {
    transition: none;
  }

  .give:hover,
  .give:active,
  .footer-nav a:hover,
  .footer-nav a:active {
    transform: none;
  }
}

.intro {
  width: 68%;
  padding: clamp(1.6rem, 4vw, 2.8rem) 6% 0.4rem;
}

.intro h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 0.85rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 460;
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 50, "wght" 460;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

@media (max-width: 899px) {
  .intro {
    width: auto;
    padding-inline: var(--gutter);
  }
}

.pair {
  display: flex;
  flex-direction: column;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pair:has(+ .pair) {
  margin-bottom: 0;
}

.pair + .pair {
  margin-top: 105px;
}

.wave {
  display: flex;
  justify-content: flex-start;
  margin: 0.2rem 0 0.85rem;
}

.pair > * {
  min-width: 0;
}

.pair figure {
  margin: 0;
}

.pair picture {
  display: block;
}

.pair img {
  display: block;
  width: 100%;
  height: auto;
}

.wave img {
  width: 8.25rem;
  height: auto;
}

.qr {
  margin: 0.25rem 0 1rem;
}

.qr img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.pair-copy {
  width: 100%;
  padding: clamp(1.35rem, 3vw, 2rem) var(--gutter) 0.25rem;
}

.pair-copy h2 {
  margin-bottom: 0.85rem;
}

.pair-copy h2:has(+ .wave) {
  margin-bottom: 0.35rem;
}

@media (min-width: 900px) {
  .pair {
    display: grid;
    grid-template-columns: 52% 44%;
    align-items: center;
    column-gap: 4%;
  }

  .pair-copy {
    padding: clamp(1.5rem, 3vw, 2.6rem) 4% clamp(1.5rem, 3vw, 2.6rem) 0;
  }

  .pair.flip {
    grid-template-columns: 44% 52%;
  }

  .pair.flip figure {
    order: 2;
  }

  .pair.flip .pair-copy {
    order: 1;
    padding: clamp(1.5rem, 3vw, 2.6rem) 0 clamp(1.5rem, 3vw, 2.6rem) 8%;
  }
}

.beliefs,
.grants {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
}

.beliefs {
  counter-reset: belief;
}

.beliefs li {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  column-gap: 0.55rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 480;
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 480;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.beliefs li::before {
  content: counter(belief) ".";
  counter-increment: belief;
  font-variant-numeric: tabular-nums;
}

.beliefs li:last-child {
  border-bottom: 1px solid var(--line);
}

.grants li {
  margin: 0 0 0.95rem;
  font-size: 1.2em;
  font-weight: 450;
  font-style: italic;
  font-variation-settings: "opsz" 28, "SOFT" 40, "wght" 450;
  line-height: 1.35;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.legal {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.prose h2 {
  margin: 2.1rem 0 0.75rem;
}

.prose h2:has(+ .wave) {
  margin-bottom: 0.35rem;
}

.prose h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.35rem;
}

.prose h4 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.12rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.page-head {
  margin-bottom: 1.4rem;
}

.page-head h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.page-links {
  margin: 0 0 1.75rem;
}

.page-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-links li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.page-links li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-links a {
  display: inline-block;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.said {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pull {
  margin: 1.6rem 0 1.7rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-variation-settings: "opsz" 80, "SOFT" 60, "WONK" 1, "wght" 460;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.pull p {
  margin: 0;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.related-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.related-list h3 {
  margin: 0.15rem 0 0.4rem;
}

.related-list p:last-child {
  margin-bottom: 0;
}

.donate-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  width: 68%;
  margin: clamp(2rem, 5vw, 3.5rem) auto clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.close-copy {
  min-width: 0;
}

.close-copy p:last-child {
  margin-bottom: 0;
}

.essay,
.related {
  width: 68%;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.related {
  margin-bottom: 0.5rem;
}

@media (max-width: 899px) {
  .donate-close,
  .essay,
  .related {
    width: auto;
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }
}

.close-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0, "wght" 480;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.close-line:has(+ .wave) {
  margin-bottom: 0.35rem;
}

#gift {
  scroll-margin-top: var(--bar-h);
}

.pair-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

@media (max-width: 1180px) {
  .bar-name {
    font-size: clamp(1.35rem, 4.6vw, 1.7rem);
    white-space: nowrap;
  }

  .bar .give {
    font-size: 1rem;
    padding: 0.55rem 0.8rem;
  }

  .nav-button {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 680;
    line-height: 1;
    cursor: pointer;
  }

  .nav-check:focus-visible + .nav-button {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }

  .nav-label-close,
  .nav-check:checked + .nav-button .nav-label-open {
    display: none;
  }

  .nav-check:checked + .nav-button .nav-label-close {
    display: inline;
  }

  .bar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.2rem var(--gutter) 0.7rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-check:checked ~ .bar-nav {
    display: block;
  }

  .bar-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .bar-nav a {
    display: inline-block;
    padding: 0.6rem 0;
  }
}

@media (max-width: 699px) {
  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 599px) {
  .donate-close {
    flex-direction: column;
    align-items: stretch;
  }

  .gift .give,
  .donate-close .give {
    width: 100%;
  }
}

.site-footer {
  background: var(--navy);
  color: #ffffff;
  padding: clamp(2.4rem, 6vw, 4rem) var(--gutter) clamp(1.4rem, 4vw, 2rem);
}

.site-footer a {
  color: inherit;
}

.site-footer :focus-visible {
  outline-color: #ffffff;
}

.site-footer .bar-name {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-top {
  margin-bottom: 1.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2rem;
}

.footer-qr h4 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.footer-qr-plate {
  display: inline-block;
  background: #ffffff;
  border-radius: 15px;
  padding: 8px;
  line-height: 0;
}

.footer-qr-plate img {
  display: block;
  width: 125px;
  height: 125px;
  max-width: 100%;
}

.footer-tag {
  margin: 0;
  max-width: 22rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: 0.85em;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.footer-nav {
  margin-left: auto;
  font-size: 0.85em;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: max-content max-content;
  column-gap: 2.25rem;
  row-gap: 0.55rem;
  justify-items: start;
  text-align: left;
}

.footer-nav a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.footer-nav a:hover {
  transform: translateY(-3px);
}

.footer-nav a:active {
  transform: translateY(-1px);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
}

.colophon p {
  margin: 0;
}
