:root {
  --ink: #17242a;
  --ink-soft: #53656b;
  --paper: #f4efe2;
  --surface: #fffdf8;
  --bay: #0f6d78;
  --bay-dark: #0b3f49;
  --cranberry: #b6423b;
  --eelgrass: #6f8f51;
  --gold: #c89232;
  --sky: #d9edf0;
  --line: rgba(23, 36, 42, 0.14);
  --shadow: 0 18px 42px rgba(23, 36, 42, 0.16);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf8ef 0, var(--paper) 42rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.7rem max(1rem, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 226, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: var(--bay);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1;
  padding: 0.58rem 0.62rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 109, 120, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -0.42rem;
}

.nav-toggle-lines::after {
  top: 0.42rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-0.42rem) rotate(-90deg);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 72svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 30, 38, 0.9), rgba(8, 30, 38, 0.62) 48%, rgba(8, 30, 38, 0.16)),
    var(--hero-image) center / cover no-repeat;
}

.page-hero {
  min-height: 30svh;
}

.home-hero {
  min-height: 36svh;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(0deg, rgba(244, 239, 226, 0.98), rgba(244, 239, 226, 0));
  z-index: -1;
}

.hero-content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 6rem 1rem 5rem;
  color: #ffffff;
}

.home-hero .hero-content {
  padding: 3rem 1rem 2.7rem;
}

.page-hero .hero-content {
  padding: 3rem 1rem 2.7rem;
}

.hero-content.narrow {
  max-width: var(--max-width);
}

.hero-content > * {
  max-width: 48rem;
}

.photo-credit {
  color: var(--ink-soft);
  font-size: 9pt;
  line-height: 1.25;
}

.photo-credit a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f2cb77;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 4.45rem;
  font-weight: 700;
  line-height: 1;
}

.home-hero h1 {
  max-width: 34rem;
  font-size: 2.25rem;
  line-height: 1.06;
}

.page-hero h1 {
  max-width: 34rem;
  font-size: 2.25rem;
  line-height: 1.06;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 2.35rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.9rem 1rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  border-color: var(--cranberry);
  color: #ffffff;
  background: var(--cranberry);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.button.dark-text {
  width: fit-content;
}

.ad-section {
  width: min(100% - 2rem, 728px);
  min-height: 120px;
  margin: 1.4rem auto 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  text-align: center;
}

.ad-section p {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cotuit-ad {
  min-height: 90px;
}

.grid-ad {
  grid-column: 1 / -1;
  width: min(100%, 728px);
  margin: 0 auto;
}

.intro-band,
.topic-grid,
.page-shell,
.hotel-grid,
.rate-note,
.beach-grid,
.photo-sources {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1fr);
  gap: 2.5rem;
  padding: 4rem 0 2rem;
}

.intro-band > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0 5rem;
}

.topic-card,
.hotel-card,
.note-panel,
.rate-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 36, 42, 0.08);
}

.topic-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.topic-card h2 {
  font-size: 1.65rem;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.wide-card {
  grid-column: span 3;
  min-height: auto;
}

.accent-blue {
  border-top: 5px solid var(--bay);
}

.accent-red {
  border-top: 5px solid var(--cranberry);
}

.accent-green {
  border-top: 5px solid var(--eelgrass);
}

.accent-gold {
  border-top: 5px solid var(--gold);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 3rem;
  padding: 4rem 0 5rem;
}

.content-main {
  max-width: 48rem;
}

.source-kicker {
  margin-bottom: 0.55rem;
  color: var(--cranberry);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

blockquote {
  margin: 0 0 2rem;
  border-left: 5px solid var(--bay);
  background: rgba(255, 253, 248, 0.7);
  padding: 1rem 1.2rem;
}

blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.content-main p {
  color: var(--ink-soft);
}

.content-main h2 {
  margin-top: 2rem;
}

.story-image {
  overflow: hidden;
  margin: 1.35rem 0 1.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 36, 42, 0.08);
}

.story-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sky);
}

.story-image img.contain-image {
  object-fit: contain;
  padding: 0.8rem;
  background: #efe7d3;
}

.story-image figcaption {
  padding: 0.65rem 0.8rem;
  color: var(--ink-soft);
  font-size: 9pt;
  line-height: 1.3;
}

.story-image strong {
  display: inline;
  margin-right: 0.25rem;
  color: var(--ink);
}

.story-image a {
  color: var(--bay);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.story-image-wide {
  margin-block: 1.5rem 2rem;
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.62fr);
  gap: 1.2rem;
  align-items: start;
  margin: 0.8rem 0 1.1rem;
}

.story-split-reverse {
  grid-template-columns: minmax(15rem, 0.62fr) minmax(0, 1fr);
}

.story-split .story-image {
  margin: 0;
}

.content-aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.note-panel {
  padding: 1rem;
}

.note-panel h2 {
  font-size: 1.35rem;
}

.note-panel p,
.note-panel li {
  color: var(--ink-soft);
}

.compact-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.next-panel {
  border-radius: 8px;
  background: var(--bay-dark);
  color: #ffffff;
  padding: 1rem;
}

.next-panel span {
  display: block;
  margin-bottom: 0.35rem;
  color: #f2cb77;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.next-panel a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.activity-grid div {
  border-left: 5px solid var(--gold);
  background: rgba(255, 253, 248, 0.75);
  padding: 1rem;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.beach-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.hotel-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem;
}

.hotel-photo {
  margin: 0;
}

.hotel-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: var(--sky);
}

.hotel-photo figcaption {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 7px;
  line-height: 1.2;
}

.hotel-photo a {
  color: var(--bay);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.beach-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(23, 36, 42, 0.08);
}

.beach-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.beach-photo {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  background: #efe7d3;
}

.beach-photo + .beach-photo {
  border-left: 1px solid var(--line);
}

.beach-feature-photo {
  border-bottom: 1px solid var(--line);
}

.beach-photo-label {
  margin: 0;
  padding: 0.55rem 0.75rem 0;
  color: var(--cranberry);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.beach-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sky);
}

.beach-photo img.contain-image {
  object-fit: contain;
  padding: 0.5rem;
  background: #efe7d3;
}

.beach-photo figcaption {
  flex: 1;
  padding: 0.6rem 0.75rem;
  color: var(--ink-soft);
  font-size: 9pt;
  line-height: 1.3;
}

.beach-photo strong {
  display: inline;
  margin-right: 0.25rem;
  color: var(--ink);
}

.beach-photo a {
  color: var(--bay);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.beach-copy {
  padding: 1.2rem;
}

.hotel-card h2 {
  font-size: 1.75rem;
}

.beach-card h2 {
  font-size: 1.85rem;
}

.hotel-card p {
  color: var(--ink-soft);
}

.beach-card p,
.beach-facts,
.photo-sources {
  color: var(--ink-soft);
}

.beach-facts {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.hotel-town {
  margin-bottom: 0.55rem;
  color: var(--bay);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rate-note {
  margin-bottom: 5rem;
  padding: 1.2rem;
  border-top: 5px solid var(--gold);
}

.rate-note h2 {
  font-size: 1.6rem;
}

.rate-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.photo-sources {
  margin-bottom: 5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.photo-sources h2 {
  font-size: 1.6rem;
}

.photo-sources ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.photo-sources a {
  color: var(--bay);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem max(1rem, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 4rem;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 4rem 0 auto;
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 239, 226, 0.98);
    transform: translateY(-115%);
    transition: transform 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 0;
    padding: 0.92rem 1rem;
  }

  .hero,
  .page-hero {
    min-height: 66svh;
    background:
      linear-gradient(180deg, rgba(8, 30, 38, 0.9), rgba(8, 30, 38, 0.62)),
      var(--hero-image) center / cover no-repeat;
  }

  .page-hero {
    min-height: 30svh;
  }

  .home-hero {
    min-height: 34svh;
  }

  .hero-content {
    padding-top: 5rem;
    padding-bottom: 4.4rem;
  }

  .home-hero .hero-content {
    padding-top: 2.4rem;
    padding-bottom: 2.6rem;
  }

  .page-hero .hero-content {
    padding-top: 2.4rem;
    padding-bottom: 2.6rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .home-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .intro-band,
  .topic-grid,
  .page-shell,
  .activity-grid,
  .hotel-grid,
  .story-split,
  .story-split-reverse,
  .beach-compare,
  .beach-card {
    grid-template-columns: 1fr;
  }

  .beach-photo + .beach-photo {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .beach-copy {
    padding: 1rem;
  }

  .wide-card {
    grid-column: span 1;
  }

  .page-shell {
    gap: 2rem;
  }

  .content-main {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero,
  .page-hero {
    min-height: 63svh;
  }

  .home-hero {
    min-height: 32svh;
  }

  .page-hero {
    min-height: 32svh;
  }

  .hero-content {
    padding: 4rem 0.8rem 4rem;
  }

  .home-hero .hero-content {
    padding: 2rem 0.8rem 2.4rem;
  }

  .page-hero .hero-content {
    padding: 2rem 0.8rem 2.4rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .home-hero h1 {
    font-size: 1.45rem;
  }

  .page-hero h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .photo-credit {
    font-size: 9pt;
  }

  .hero-credit {
    right: 0.8rem;
    bottom: 0.75rem;
    left: 0.8rem;
    max-width: none;
  }

  .ad-section {
    width: calc(100% - 1rem);
  }

  .intro-band,
  .topic-grid,
  .page-shell,
  .hotel-grid,
  .rate-note,
  .beach-grid,
  .photo-sources {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .intro-band {
    padding-top: 3rem;
  }

  .topic-card,
  .hotel-card {
    min-height: auto;
  }

  blockquote p {
    font-size: 1.08rem;
  }

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