/* ---------- Design tokens ---------- */
:root {
  --color-deep-water: #1B3A4B;
  --color-sea-glass: #7FBFB4;
  --color-driftwood: #C9B99A;
  --color-morning-mist: #F4F7F6;
  --color-white: #FFFFFF;
  --color-sunset-coral: #E07A5F;
  --color-ripples: #2E7D74;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;

  --text-site-name: 2.5rem;
  --text-listing-headline: 1.6rem;
  --text-card-headline: 1.25rem;
  --text-body: 1rem;
  --text-price: 1.1rem;
  --text-label: 0.75rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-morning-mist);
  color: var(--color-deep-water);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: var(--text-body);
}

a { color: var(--color-sea-glass); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--color-sunset-coral); outline-offset: 2px; }

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

/* ---------- Waterline motif ---------- */
.waterline {
  border: none;
  border-top: 1.5px solid var(--color-sea-glass);
  margin: 2rem 0;
  opacity: 0.6;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--color-deep-water);
  color: var(--color-white);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand { color: var(--color-white); display: flex; align-items: center; gap: 0.75rem; flex: 1 1 320px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; }
.brand-text { display: block; min-width: 0; }
.site-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-site-name);
  color: var(--color-white);
}
.header-inner .waterline {
  margin: 0.4rem 0 0.6rem;
  border-top-color: var(--color-sea-glass);
  opacity: 0.7;
}
.site-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-sea-glass);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-label);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-nav a:hover { color: var(--color-sea-glass); text-decoration: none; }


/* ---------- Header home link ---------- */
.header-home-link {
  position: absolute;
  bottom: 1.75rem;
  left: calc(50% + 270px - 1.5rem);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.header-home-link:hover { color: var(--color-sea-glass); text-decoration: none; }
@media (max-width: 800px) {
  .header-home-link { left: auto; right: 1.5rem; bottom: 0.75rem; }
}

/* ---------- Layout ---------- */
.site-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.feed-layout, .post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .feed-layout, .post-layout { grid-template-columns: 1fr; }
}

.feed-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  color: var(--color-deep-water);
}

/* ---------- Hero (homepage) ---------- */
.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--color-deep-water);
  margin: 0 0 0.5rem;
}
.hero-subhead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-deep-water);
  max-width: 640px;
  margin: 0 auto 1.25rem;
}
.hero-email-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.hero-email-form input[type="email"] {
  font-family: var(--font-body);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-driftwood);
  border-radius: 3px;
  min-width: 260px;
  background: var(--color-white);
  color: var(--color-deep-water);
}
.hero-email-form button {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--color-sunset-coral);
  color: var(--color-white);
  border: none;
  border-radius: 3px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
}
.hero-email-form button:hover { opacity: 0.92; }

/* ---------- Post cards (feed) ---------- */
.post-grid {
  display: flex;
  flex-direction: column;
}
.post-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  margin-bottom: 1.75rem;
}
@media (max-width: 560px) {
  .post-card { grid-template-columns: 1fr; }
}
.post-card-image { position: relative; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.post-card-body { padding: 1.25rem 1.5rem; }
.post-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-driftwood);
}
.post-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-card-headline);
  margin: 0.4rem 0 0.5rem;
}
.post-card-title a { color: var(--color-deep-water); }
.post-card-excerpt { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--color-deep-water); }
.read-more { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--color-sea-glass); }

.price-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-sunset-coral);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-price);
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
}
.price-tag-large {
  position: static;
  display: inline-block;
  font-size: 1.2rem;
  margin: 0.75rem 0 1.25rem;
}

/* ---------- Status badges (sold / removed) ---------- */
.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  color: var(--color-white);
  border-radius: 3px;
}
.status-badge--sold { background: var(--color-deep-water); }
.status-badge--removed { background: var(--color-driftwood); }
.status-badge-large {
  position: static;
  display: inline-block;
  margin: 0.75rem 0 1.25rem 0.75rem;
}
.status-notice {
  margin: -0.5rem 0 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--color-morning-mist);
  border-left: 4px solid var(--color-driftwood);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-deep-water);
}
.status-notice--sold { border-left-color: var(--color-deep-water); }
.status-notice--removed { border-left-color: var(--color-driftwood); }

/* ---------- "Ripples of Possibility" badge ---------- */
.ripples-badge {
  position: absolute;
  top: 2.6rem;
  right: -0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem 0.3rem 0.75rem;
  color: var(--color-white);
  background: var(--color-ripples);
  transform: rotate(3deg);
  box-shadow: 1px 2px 3px rgba(0,0,0,0.25);
}
.ripples-badge-large {
  position: static;
  display: inline-block;
  transform: rotate(2deg);
  margin: 0.75rem 0 1.25rem 0.75rem;
  background: var(--color-ripples);
}

.empty-feed-message {
  font-size: 0.95rem;
  color: var(--color-driftwood);
  font-style: italic;
}

/* ---------- Sidebar ---------- */
.sidebar { background: var(--color-white); border-radius: 4px; padding: 1.5rem; }
.sidebar-section h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-deep-water);
  margin: 0 0 0.75rem;
}
.sidebar-section ul { list-style: none; margin: 0; padding: 0; }
.sidebar-section li { padding: 0.35rem 0; font-size: 0.92rem; }
.sidebar-section a { color: var(--color-deep-water); }
.sidebar-section a:hover { color: var(--color-sea-glass); text-decoration: none; }
.sidebar .waterline { margin: 1.25rem 0; }
.sidebar-email p { font-size: 0.9rem; margin: 0 0 0.6rem; }
.sidebar-email form { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-email input[type="email"] {
  font-family: var(--font-body);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-driftwood);
  border-radius: 3px;
  width: 100%;
}
.sidebar-email button {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--color-sunset-coral);
  color: var(--color-white);
  border: none;
  border-radius: 3px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.sidebar-email button:hover { opacity: 0.92; }
.micro-copy { font-size: 0.78rem; color: var(--color-driftwood); margin-top: 0.5rem; }

/* ---------- Single post page ---------- */
.post-full-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-listing-headline);
  margin: 0.3rem 0 0;
  color: var(--color-deep-water);
}
.post-full-image {
  width: 100%;
  border-radius: 4px;
  margin: 1.25rem 0;
}
.post-byline { margin: -0.5rem 0 1.25rem; font-size: 0.875rem; color: var(--color-driftwood); text-align: center; }
.post-full-body p { margin: 0 0 1rem; }
.post-nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.back-link, .return-top-link { font-family: var(--font-body); font-weight: 600; }

/* ---------- Life at the Water ---------- */
.life-section { margin-top: 1.5rem; }
.life-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--color-deep-water);
}
.life-item { margin-bottom: 1.25rem; }
.life-item:last-child { margin-bottom: 0; }
.life-subheading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--color-sunset-coral);
}
.life-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Around the Water (community) ---------- */
.community-section { margin-top: 1.5rem; }
.community-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--color-deep-water);
}
.community-item { margin-bottom: 1.25rem; }
.community-item:last-child { margin-bottom: 0; }
.community-subheading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--color-sea-glass);
}
.community-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Post gallery ---------- */
.post-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.gallery-img {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Related posts ---------- */
.related-posts { margin-top: 1.5rem; }
.related-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--color-deep-water);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-deep-water);
  transition: box-shadow 0.15s;
}
.related-card:hover {
  box-shadow: 0 3px 10px rgba(27,58,75,0.15);
  text-decoration: none;
}
.related-card-img-wrap { position: relative; height: 140px; overflow: hidden; }
.related-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-price {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: var(--color-sunset-coral);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.related-card-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.related-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-driftwood);
  font-weight: 600;
}
.related-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-deep-water);
  line-height: 1.3;
}

/* ---------- Listing source link ---------- */
.listing-source { margin-top: 1.25rem; font-size: 0.9rem; text-align: center; color: var(--color-driftwood); }
.listing-source a { color: var(--color-sea-glass); font-weight: 600; }

/* ---------- Post disclaimer ---------- */
.post-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--color-driftwood);
  line-height: 1.6;
}
.post-disclaimer p { margin: 0 0 0.75rem; }
.post-disclaimer p:last-child { margin-bottom: 0; }
.post-disclaimer a { color: var(--color-driftwood); text-decoration: underline; }

/* ---------- Static pages (about / coming-soon / 404) ---------- */
.static-page { max-width: 720px; margin: 0 auto; }
.static-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-deep-water);
}
.static-page p { font-size: 1rem; }
.static-page .waterline { margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-deep-water); color: var(--color-white); margin-top: 2rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem 2rem; }
.site-footer .waterline { border-top-color: var(--color-sea-glass); margin: 0 0 1.5rem; opacity: 0.5; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; }
.footer-nav a { color: var(--color-sea-glass); }
.footer-nav a:hover { color: var(--color-white); text-decoration: none; }
.footer-disclaimer { opacity: 0.7; font-size: 0.78rem; line-height: 1.6; }
.footer-disclaimer p { margin: 0 0 0.75rem; }
.footer-credit { margin-top: 1.25rem; font-size: 0.85rem; }
.footer-credit em { font-family: var(--font-display); font-style: italic; }
