.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(255 255 255 / 25%);
  color: white;
  background: var(--marine);
  background-image: url("assets/textures/diagonal-noise.png");
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: min(180px, 45vw);
  max-height: 46px;
  filter: brightness(0) invert(1);
}

.brand span {
  padding-left: 1rem;
  border-left: 1px solid rgb(255 255 255 / 45%);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.member-nav {
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.member-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.member-links a {
  padding: 0.55rem 0.7rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.member-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.club-picker span {
  color: rgb(255 255 255 / 72%);
}

.club-picker select {
  min-width: 190px;
  color: white;
  border-color: rgb(255 255 255 / 38%);
  background: var(--marine-deep);
}

.site-header .button-quiet {
  color: white;
  border-color: rgb(255 255 255 / 40%);
}

.login-view {
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.login-image {
  min-height: 580px;
  background:
    linear-gradient(120deg, rgb(0 63 85 / 32%), transparent 60%),
    url("assets/imagery/Daysails-hero.jpg") center / cover;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 6rem);
  background: var(--paper);
}

.login-panel h1 {
  max-width: 8ch;
  margin-bottom: 1.25rem;
  color: var(--marine);
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-panel form {
  width: min(100%, 390px);
  margin-top: 1.4rem;
}

.identity-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.identity-option {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 440px);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--marine);
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.identity-option:hover,
.identity-option:focus-visible {
  border-color: var(--marine);
  box-shadow: 0 5px 18px rgb(0 58 79 / 12%);
}

.identity-option span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: end;
  padding: clamp(2rem, 7vw, 6rem);
  color: white;
  background:
    linear-gradient(
      90deg,
      rgb(0 48 67 / 91%) 0%,
      rgb(0 69 94 / 65%) 43%,
      rgb(0 69 94 / 10%) 75%
    ),
    url("assets/imagery/Daysails-hero.jpg") center 48% / cover;
}

.hero-copy {
  max-width: 830px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: rgb(255 255 255 / 84%);
  font-size: 1.1rem;
}

.hero .button {
  margin-top: 0.8rem;
}

.charter-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  color: var(--marine);
}

.charter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.charter-card {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgb(0 87 117 / 16%);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 14px 38px rgb(0 58 79 / 11%);
}

.charter-photo {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-right: 5px solid var(--sun);
  object-fit: cover;
  background: var(--marine);
}

.charter-content {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.6rem) 1rem;
}

.charter-date {
  margin-bottom: 1.15rem;
  color: var(--sun);
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.charter-card h3 {
  margin-bottom: 0.65rem;
  color: var(--marine);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.charter-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.status-pill {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgb(0 87 117 / 25%);
  border-radius: 999px;
  color: var(--marine);
  background: var(--sand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.charter-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.15rem clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.2rem);
}

.charter-actions .button {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.charter-actions .button-quiet {
  color: var(--marine);
  border-color: rgb(0 87 117 / 32%);
  background: transparent;
}

.charter-actions .button-quiet:hover {
  background: var(--sand);
}

.participant-list {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0 clamp(1.5rem, 4vw, 2.6rem);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.78rem;
}

.participant > span:last-child {
  display: flex;
  gap: 0.35rem;
}

.participant button {
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgb(0 87 117 / 28%);
  color: var(--marine);
  background: transparent;
}

.participant button:hover {
  background: var(--sand);
}

.empty-state {
  padding: 5rem 1rem;
  text-align: center;
}

.load-more {
  display: block;
  margin: 2rem auto 0;
}

.empty-state img {
  width: 48px;
  margin-bottom: 1rem;
}

dialog {
  width: min(94vw, 620px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.boat-dialog {
  width: min(96vw, 980px);
}

dialog::backdrop {
  background: rgb(0 42 57 / 72%);
  backdrop-filter: blur(3px);
}

.dialog-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.boat-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
}

.step-number {
  color: var(--sun);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.boat-step > .step-number {
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--sun);
}

.boat-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boat-picker legend {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.boat-options {
  display: grid;
  max-height: 410px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  overflow-y: auto;
  padding: 0.25rem 0.45rem 0.6rem 0.15rem;
}

.boat-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem 1rem;
  border: 1px dashed rgb(0 87 117 / 28%);
  color: var(--muted);
  background: rgb(255 255 255 / 48%);
  text-align: center;
}

.boat-option {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(0 87 117 / 18%);
  border-radius: 5px;
  background: white;
  box-shadow: 0 7px 20px rgb(0 58 79 / 8%);
  cursor: pointer;
}

.boat-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.boat-option img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--marine);
}

.boat-option strong {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.85rem;
  color: var(--marine);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.15;
}

.boat-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgb(0 58 79 / 14%);
}

.boat-option:has(input:checked) {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun);
}

.boat-option:has(input:checked)::after {
  content: "Selected";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #352000;
  background: var(--sun);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boat-option:has(input:focus-visible) {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.departure-home {
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--marine);
  border-radius: 4px;
  background: rgb(0 87 117 / 7%);
}

.departure-home .eyebrow {
  margin-bottom: 0.2rem;
}

.departure-home strong {
  color: var(--marine);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-heading h2 {
  color: var(--marine);
  font-size: 2.4rem;
}

.chat-card {
  grid-template-rows: auto minmax(220px, 50vh) auto auto;
}

.message-list {
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: white;
}

.message {
  max-width: 82%;
  margin: 0.65rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px 14px 14px 2px;
  background: var(--sand);
}

.message.mine {
  margin-left: auto;
  color: white;
  border-radius: 14px 14px 2px;
  background: var(--marine);
}

.message.system {
  max-width: 100%;
  color: var(--muted);
  border-radius: 3px;
  background: transparent;
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
}

.message time {
  display: block;
  margin-top: 0.25rem;
  opacity: 0.7;
  font-size: 0.68rem;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.7rem;
}

.updates-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 6vw, 6rem);
  color: white;
  background:
    linear-gradient(
      100deg,
      rgb(0 48 67 / 96%),
      rgb(0 87 117 / 72%) 65%,
      rgb(0 87 117 / 35%)
    ),
    url("assets/harbors/Marina-Del-Rey.jpg") center 48% / cover;
}

.updates-hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -9rem;
  width: 34vw;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgb(255 255 255 / 5%),
    0 0 0 8rem rgb(255 255 255 / 4%);
}

.updates-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin-bottom: 1rem;
}

.updates-hero > p:last-child {
  max-width: 42rem;
  color: rgb(255 255 255 / 82%);
  font-size: 1.1rem;
}

.updates-shell {
  display: grid;
  max-width: 1480px;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.updates-settings {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-top: 5px solid var(--sun);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.updates-settings h2 {
  color: var(--marine);
  font-size: 2.4rem;
}

.frequency-picker {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.frequency-picker legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.frequency-picker label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.frequency-picker input,
.harbor-follow input,
.follow-boat input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--sun);
}

.frequency-picker span,
.frequency-picker small {
  display: block;
}

.frequency-picker small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 400;
}

.updates-heading {
  margin-bottom: 2rem;
}

.updates-fleet {
  display: grid;
  gap: 3.5rem;
}

.harbor-group {
  display: grid;
  gap: 1rem;
}

.harbor-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgb(0 87 117 / 22%);
}

.harbor-title h3 {
  color: var(--marine);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.harbor-follow {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.follow-boats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.follow-boat {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(0 87 117 / 17%);
  border-radius: 5px;
  background: white;
  box-shadow: 0 8px 24px rgb(0 58 79 / 9%);
  cursor: pointer;
}

.follow-boat input {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.35rem;
  min-height: 1.35rem;
}

.follow-boat img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.86);
}

.follow-boat strong {
  padding: 0.85rem 1rem 1rem;
  color: var(--marine);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.follow-boat:has(input:checked) {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun);
}

.follow-boat.covered {
  opacity: 0.48;
}

.email-link-view {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(rgb(0 63 85 / 72%), rgb(0 63 85 / 88%)),
    url("assets/imagery/Daysails-hero.jpg") center / cover;
}

.email-link-card {
  display: grid;
  width: min(100%, 580px);
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4rem);
  border-top: 6px solid var(--sun);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.email-link-card h1 {
  color: var(--marine);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.email-link-card .button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header,
  .member-nav {
    align-items: stretch;
  }

  .member-links {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .site-header {
    flex-direction: column;
  }

  .member-nav {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .login-view {
    display: block;
  }

  .login-image {
    min-height: 32vh;
  }

  .login-panel {
    padding: 2.2rem 1.25rem 3rem;
  }

  .hero {
    min-height: 500px;
    padding: 3rem 1.25rem;
    background-position: 62% center;
  }

  .charter-card {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .charter-photo {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 4px solid var(--sun);
  }

  .charter-content {
    grid-column: 1;
    grid-row: 2;
  }

  .participant-list {
    grid-column: 1;
    grid-row: 3;
  }

  .charter-actions {
    grid-column: 1;
    grid-row: 4;
  }

  .participant {
    align-items: start;
    flex-direction: column;
  }

  .form-row,
  .message-form {
    grid-template-columns: 1fr;
  }

  .boat-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-shell {
    grid-template-columns: 1fr;
  }

  .updates-settings {
    position: static;
  }

  .follow-boats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .boat-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .boat-options {
    grid-template-columns: 1fr;
  }

  .harbor-title {
    align-items: start;
    flex-direction: column;
  }

  .follow-boats {
    grid-template-columns: 1fr;
  }
}
