/* ============================================================
   THE MOORING SOUTH SHORE — Main Stylesheet
   Palette: Harbor Blue #2E6B8A | Off-white #F7F4EF | Navy #1C2B3A
   Type: Cormorant Garamond (serif) + Jost (sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --harbor:    #2E6B8A;
  --harbor-lt: #EBF3F8;
  --harbor-md: #5B9CBD;
  --navy:      #1C2B3A;
  --navy-lt:   #2E4057;
  --cream:     #F7F4EF;
  --cream-dk:  #EDE8DF;
  --sand:      #D4C9B0;
  --bark:      #B5651D;
  --text:      #1C2B3A;
  --text-muted:#6B7B8A;
  --white:     #FFFFFF;
  --border:    rgba(28,43,58,0.1);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.logo-main em {
  font-style: italic;
  color: var(--harbor);
}

.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-subscribe {
  background: var(--harbor) !important;
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
}

.nav-subscribe:hover { background: var(--navy-lt) !important; }

/* ── WEATHER TICKER ── */
.weather-ticker {
  background: var(--harbor);
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(247,244,239,0.9);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(247,244,239,0.35);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HERO ── */
.site-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,43,58,0.05) 0%,
    rgba(28,43,58,0.2)  40%,
    rgba(28,43,58,0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 40px 36px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(247,244,239,0.65);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--harbor-md);
  display: inline-block;
}

.hero-title {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.hero-title em {
  font-style: italic;
  color: #8ECAE6;
}

.hero-summary {
  font-size: 14px;
  font-weight: 300;
  color: rgba(247,244,239,0.78);
  max-width: 500px;
  line-height: 1.55;
}

/* ── EDITORIAL STRIP ── */
.editorial-strip {
  background: var(--navy);
  padding: 18px 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.editorial-rule {
  width: 3px;
  min-height: 52px;
  background: var(--harbor);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.editorial-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--harbor-md);
  margin-bottom: 6px;
}

.editorial-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(247,244,239,0.85);
  line-height: 1.55;
  max-width: 760px;
}

/* ── CATEGORY TILES ── */
.categories-section {
  padding: 28px 40px 0;
}

.section-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  opacity: 0.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.category-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 14px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.category-tile:hover {
  border-color: var(--harbor);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(46,107,138,0.12);
}

.tile-music    { border-top: 3px solid var(--harbor); }
.tile-brewery  { border-top: 3px solid var(--bark); }
.tile-family   { border-top: 3px solid #3A7D52; }
.tile-outdoors { border-top: 3px solid #6B8E23; }
.tile-arts     { border-top: 3px solid #7B5EA7; }

.tile-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.tile-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.tile-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── EVENTS SECTION ── */
.events-section {
  padding: 28px 40px 8px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--harbor);
  border: 1px solid rgba(46,107,138,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── EVENT ROWS ── */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid rgba(28,43,58,0.07);
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.event-row:hover {
  border-color: rgba(46,107,138,0.25);
  box-shadow: 0 3px 14px rgba(28,43,58,0.07);
  transform: translateX(2px);
}

.event-date {
  text-align: center;
  min-width: 40px;
  flex-shrink: 0;
}

.event-dow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--harbor);
  display: block;
}

.event-day {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.event-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.event-info { flex: 1; min-width: 0; }

.event-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

.event-tags {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}

.tag-music    { background: rgba(46,107,138,0.1);  color: var(--harbor); }
.tag-brewery  { background: rgba(181,101,29,0.1);  color: var(--bark); }
.tag-family   { background: rgba(58,125,82,0.1);   color: #3A7D52; }
.tag-outdoors { background: rgba(107,142,35,0.1);  color: #4A6A10; }
.tag-arts     { background: rgba(123,94,167,0.1);  color: #7B5EA7; }
.tag-featured { background: var(--harbor); color: var(--white); }

/* ── NEWSLETTER STRIP ── */
.newsletter-strip {
  margin: 32px 40px;
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nl-copy { flex: 1; }

.nl-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 5px;
}

.nl-sub {
  font-size: 12px;
  color: rgba(247,244,239,0.45);
  font-weight: 300;
}

.nl-form {
  display: flex;
  gap: 8px;
}

.nl-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--cream);
  font-family: var(--sans);
  width: 210px;
  outline: none;
  transition: border-color 0.2s;
}

.nl-input:focus { border-color: var(--harbor-md); }
.nl-input::placeholder { color: rgba(247,244,239,0.25); }

.nl-btn {
  background: var(--harbor);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.nl-btn:hover { background: #235470; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: rgba(28,43,58,0.35);
}

.footer-logo em { font-style: italic; }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.45;
}

/* ── POST / ARCHIVE PAGE ── */
.page-header {
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

.post-feed {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.post-card:hover { opacity: 0.7; }

.post-card-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  min-width: 90px;
}

.post-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
  font-weight: 300;
}

/* ── SINGLE POST ── */
.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px;
}

.post-header { margin-bottom: 32px; }

.post-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--harbor);
  margin-bottom: 12px;
}

.post-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  display: flex;
  gap: 16px;
}

.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 36px 0 14px;
}

.post-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
  letter-spacing: 0.3px;
}

.post-content p { margin-bottom: 20px; }

.post-content a {
  color: var(--harbor);
  border-bottom: 1px solid rgba(46,107,138,0.3);
  transition: border-color 0.2s;
}

.post-content a:hover { border-color: var(--harbor); }

/* ── SUBMIT FORM PAGE ── */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--harbor); }

.form-textarea { min-height: 100px; resize: vertical; }

.form-submit {
  background: var(--harbor);
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--navy-lt); }

/* ── GHOST CARD WIDTHS (required) ── */
.kg-width-wide {
  margin-left: -80px;
  margin-right: -80px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.kg-image { max-width: 100%; height: auto; }

/* ── ERROR PAGE ── */
.error-template {
  max-width: 560px;
  margin: 80px auto;
  padding: 0 40px;
  text-align: center;
}

.error-code {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 600;
  color: var(--harbor);
  line-height: 1;
  margin-bottom: 16px;
}

.error-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.error-link {
  display: inline-block;
  background: var(--harbor);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── MEMBERS / ACCOUNT PAGE ── */
.account-container {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 40px;
}

.account-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .site-hero { height: 320px; }
  .hero-content { padding: 24px 20px 28px; }
  .hero-title { font-size: 42px; }
  .editorial-strip { padding: 16px 20px; }
  .categories-section { padding: 20px 20px 0; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .events-section { padding: 20px 20px 8px; }
  .newsletter-strip { margin: 20px; padding: 20px; flex-direction: column; gap: 16px; }
  .nl-form { width: 100%; }
  .nl-input { flex: 1; width: auto; }
  .site-footer { padding: 16px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .post-container { padding: 32px 20px; }
  .form-container { padding: 32px 20px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 34px; }
  .event-name { font-size: 13px; }
  .event-tags { display: none; }
}
