/* flaglerbeachhomewatch.com: "Pier and surf". Watercolor hero, wave dividers, ocean blue, sand and a sunset button. */
:root {
  --ocean: #0e4c75;
  --ocean-deep: #0a3552;
  --sky: #dcedf8;
  --sand: #f4e6cc;
  --sand-deep: #e9d3aa;
  --sunset: #b4471a;
  --sunset-dark: #923712;
  --text: #17293a;
  --muted: #3d5163;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ocean);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sunset-dark);
}

:focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ocean-deep);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip:focus {
  top: 1rem;
  color: #fff;
}

/* Header */
.site-header {
  background: var(--sand);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ocean-deep);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.logo small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sunset-dark);
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.logo-mark circle {
  fill: var(--sunset);
}

.logo-mark path {
  fill: var(--ocean);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ocean-deep);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.4rem;
}

.nav a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--sunset);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--sunset-dark);
}

.btn:hover {
  background: var(--sunset-dark);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
}

.btn-sand {
  background: var(--sand);
  color: var(--ocean-deep);
  box-shadow: 0 3px 0 var(--sand-deep);
}

.btn-sand:hover {
  background: #fff;
  color: var(--ocean-deep);
}

/* Hero */
.hero {
  position: relative;
  background: var(--sky);
}

.hero-img {
  width: 100%;
  height: clamp(16rem, 52vw, 40rem);
  object-fit: cover;
  object-position: 40% 60%;
}

.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(10, 53, 82, 0.18);
  margin-top: -4rem;
  position: relative;
  max-width: 44rem;
}

/* On a wide screen the card sits over the picture, and the hero grows with the card, so a long
   headline never pushes the card up over the header. */
@media (min-width: 1000px) {
  .hero {
    display: grid;
  }

  .hero > .hero-img,
  .hero > .wrap {
    grid-area: 1 / 1;
  }

  .hero-img {
    height: 100%;
    min-height: clamp(16rem, 52vw, 40rem);
  }

  .hero .wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-block: 3rem;
  }

  .hero-card {
    position: static;
    margin: 0;
    max-width: 38rem;
  }
}

.hero-card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.wave {
  display: block;
  width: 100%;
  height: 40px;
}

.wave-sky {
  background: var(--sky);
  fill: #e9f4fb;
}

.wave-sand {
  background: #e9f4fb;
  fill: var(--sand);
}

/* Island */
.island {
  background: #e9f4fb;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.island-grid {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .island-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.section-across {
  margin: 0;
}

.bands {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  font-weight: 600;
}

.bands li {
  padding: 0.85rem 1.1rem;
}

.b-ocean {
  background: var(--ocean);
  color: #fff;
}

.b-dune {
  background: var(--sand);
}

.b-road {
  background: #3b4249;
  color: #fff;
  letter-spacing: 0.2em;
  border-block: 3px dashed #f2c94c;
}

.b-town {
  background: #fff;
}

.b-icw {
  background: #2f6c8f;
  color: #fff;
}

.section-across figcaption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Salt */
.salt {
  background: var(--sand);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.salt-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.salt-list li {
  background: #fffaf0;
  border-radius: 18px;
  padding: 1.5rem;
  border-bottom: 6px solid var(--ocean);
}

.salt-list p {
  margin: 0;
}

.salt-note {
  font-size: 1.15rem;
  max-width: 44rem;
}

/* Storms */
.storms {
  background: var(--ocean-deep);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.storms-inner {
  max-width: 50rem;
}

.storms p {
  color: #e4f1fa;
}

/* Visits */
.visits {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cards {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.25rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.card {
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 2px solid var(--sky);
  border-top-width: 14px;
  display: flex;
  flex-direction: column;
}

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

.c-street {
  border-top-color: var(--sand-deep);
}

.c-grounds {
  border-top-color: #8fbf9f;
}

.c-air {
  border-top-color: #8cc1e3;
}

.where {
  font-weight: 600;
  color: var(--sunset-dark);
  font-size: 0.95rem;
}

.prices {
  color: var(--muted);
}

/* Steps */
.steps {
  background: var(--sky);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.step-list {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.25rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.step-list li {
  counter-increment: s;
  background: #fff;
  border-radius: 999px 999px 20px 20px;
  padding: 2.25rem 1.5rem 1.5rem;
  text-align: center;
}

.step-list li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
}

.step-list p {
  margin: 0;
}

.more::after {
  content: ' \2192';
}

/* FAQ */
.faq {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.faq-inner {
  max-width: 48rem;
}

details {
  border-radius: 14px;
  background: #f7fbfe;
  border: 1px solid #c9e0ee;
  margin-bottom: 0.9rem;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem 3rem 1rem 1.25rem;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 0.7rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sunset-dark);
}

details[open] summary::after {
  content: '\2212';
}

details p {
  padding: 0 1.25rem 0.5rem;
}

/* Closing */
.closing {
  background: var(--ocean);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

/* Footer */
.footer {
  background: var(--sand);
  padding-block: 2.5rem;
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.3rem;
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Hover colours that read on their own background */
.skip:hover {
  color: #fff;
}

.storms a {
  color: #fff;
}

.storms a:hover {
  color: var(--sand);
}

/* Blog: the home page's band, the index and the posts */
.blog-band {
  background: #fff;
  border-top: 1px solid var(--sand-deep);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.blog-list,
.guide-list,
.post-index,
.post-links {
  list-style: none;
  padding: 0;
}

.blog-list {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}

@media (min-width: 760px) {
  .blog-list {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-list p,
.post-index p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.blog-more {
  margin: 0 0 2rem;
}

.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0.75rem 0 0;
}

.post-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 7vw, 5rem);
}

.post-main h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
}

.post-main h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-top: 2.25rem;
}

.post-crumb,
.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-crumb {
  margin: 0 0 1rem;
}

.post-meta {
  margin: 0 0 1.5rem;
}

.post-lead {
  font-size: 1.15rem;
}

.post ul:not(.post-links) {
  padding-left: 1.25rem;
}

.post li {
  margin-bottom: 0.4rem;
}

.post-more {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-deep);
}

.post-more h2 {
  margin-top: 0;
}

.post-cta {
  margin-top: 2rem;
}

.post-index {
  margin: 2rem 0;
}

.post-index li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--sand-deep);
}

.post-index h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
