/* =========================================================
   Wish You Were Sailing — shared stylesheet
   Palette and type pulled directly from the brand logo:
   cream background, navy ship, sage-teal, coral, brass star.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Yellowtail&family=Roboto+Slab:wght@400;600;800&family=Montserrat:wght@500;600;700&family=Karla:wght@400;500;700&display=swap');

:root {
  --cream: #faf7f2;
  --cream-card: #ffffff;
  --line: rgba(39, 70, 91, 0.14);
  --line-strong: rgba(39, 70, 91, 0.26);

  --navy: #27465b;
  --navy-soft: #3c5c72;
  --teal: #5d8686;
  --coral: #ad705d;
  --peach: #cf8c71;
  --gold: #b8935a;

  --text: #27465b;
  --text-dim: #5b6b72;

  --font-script: 'Yellowtail', cursive;
  --font-display: 'Roboto Slab', serif;
  --font-caps: 'Montserrat', sans-serif;
  --font-body: 'Karla', sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--navy);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0.2em 0 0.4em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--text-dim); margin: 0 0 1em; }
p.lead { color: var(--text); font-size: 1.12rem; }

/* ---------- Signature divider: star flanked by rules (from the logo) ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.divider svg { flex-shrink: 0; }
.divider.center { justify-content: center; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark img {
  height: 44px;
  width: auto;
  object-fit: cover;
}
.wordmark-text {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-caps);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--navy);
  padding: 8px 10px;
  font-family: var(--font-caps);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream-card);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a {
    display: block;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--coral);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 16px; }
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-art {
  max-width: 620px;
  margin: 48px auto 0;
}
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 48px auto 0;
}

/* ---------- Section shell ---------- */
section.block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
section.block .eyebrow { display: block; margin-bottom: 12px; }
.block-head {
  max-width: 640px;
  margin: 0 0 36px;
}
.block-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(39, 70, 91, 0.04);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 60px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { display: block; margin-bottom: 14px; }
.page-head p.lead { max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 36px;
  margin-top: 36px;
  background: var(--cream-card);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .wordmark { margin-bottom: 12px; }
.footer-brand p { max-width: 300px; margin: 0; }

.footer-col h4 {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--coral); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-caps);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* ---------- Blog: list ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(39, 70, 91, 0.1);
}
.post-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--peach), var(--teal));
}
.post-thumb-fallback {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach), var(--teal));
}
.post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-date {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h3 { margin: 6px 0 8px; }
.post-excerpt {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.post-read-more {
  margin-top: 16px;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Blog: single post ---------- */
.post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 28px 0;
}
.post-content {
  max-width: 720px;
}
.post-content p { color: var(--text); white-space: pre-line; }
.back-link {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  color: var(--text-dim);
  grid-column: 1 / -1;
}

/* ---------- Blog: post images ---------- */
.post-inline-img{

    display:block;

    width:100%;

    max-width:700px;

    margin:32px auto;

    border-radius:16px;

}

.post-gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:16px;

    margin:32px 0;

}

.post-gallery img{

    width:100%;

    border-radius:12px;

    display:block;

}

/* ---------- Utility ---------- */
.note {
  background: rgba(184, 147, 90, 0.12);
  border: 1px solid rgba(184, 147, 90, 0.4);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--navy);
}
.note strong { color: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card { transition: none; }
}

.about-headshot {
  float: right;
  width: 180px;      /* adjust size */
  max-width: 35%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
}
