/* ============================================================
 * OceansideToday — Sharp design system, homepage stylesheet
 * Spec: /var/www/pantheon/docs/oceanside-design.md
 * ============================================================ */

:root {
  --paper:        #FFFFFF;
  --ink:          #000000;
  --ink-soft:     #1A1A1A;
  --ink-mute:     #5F5F5F;
  --ink-faint:    #999999;
  --ink-ghost:    #D5D5D5;
  --teal:         #0F8888;
  --teal-deep:    #0A6868;
  --teal-pale:    #E8F2F2;
  --red:          #D1331E;
  --red-soft:     #FF7559;
  --rule:         #ECECEC;
  --rule-strong:  #D0D0D0;
  --row:          #FAFAFA;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}
a { color: var(--teal); text-decoration: none; }

.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 100;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { left: 8px; }

/* ─── Header (sticky, shrinks on scroll) ─────────────────── */
.head {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--rule);
}
.head-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 32px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 28px;
  transition: padding .18s ease;
}
.brand { line-height: 1; }
.mast {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.030em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  transition: font-size .18s ease;
}
.mast em { font-style: normal; color: var(--teal); }
.tagline {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  max-height: 22px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .18s ease, opacity .18s ease, margin-top .18s ease;
}
.nav {
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 2px;
}
.nav a.txt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: color .12s, border-color .12s;
}
.nav a.txt:hover { color: var(--teal); border-color: var(--rule-strong); }
.nav a.txt.on { color: var(--ink); border-color: var(--teal); }

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
  align-self: stretch;
}
.nav-icons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  transition: color .12s;
}
.nav-icons a:hover { color: var(--teal); }
.nav-icons svg { width: 19px; height: 19px; display: block; }

.tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility .14s, transform .14s ease;
}
.tip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 0 5px 5px 5px;
  border-color: transparent transparent var(--ink) transparent;
}
.nav-icons a:hover .tip,
.nav-icons a:focus-visible .tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.head.is-shrunk .head-in {
  padding: 12px 32px 10px;
  align-items: center;
}
.head.is-shrunk .nav { align-self: center; padding-bottom: 0; }
.head.is-shrunk .mast { font-size: 22px; }
.head.is-shrunk .tagline { max-height: 0; opacity: 0; margin-top: 0; }

/* ─── Page wrap ───────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.shrink-sentinel { height: 1px; width: 100%; }

/* ─── Heading row (shared) ────────────────────────────────── */
.h-row { padding: 56px 0 30px; }
.h-row h2 {
  font-weight: 900;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.h-row h2 em { font-style: normal; color: var(--teal); }
.h-row .h-sub {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  max-width: 70ch;
}
.h-row .h-sub b { color: var(--ink); font-weight: 600; }

/* ─── Section divider ────────────────────────────────────── */
.section-divider {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 72px 0 0;
}

/* ─── Shared CTA "more" link ─────────────────────────────── */
.more {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.more:hover { color: var(--teal); border-color: var(--teal); }
.section-foot { margin-top: 28px; }

/* ─── HERO EVENTS: featured + list split ─────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.feat { display: flex; flex-direction: column; min-width: 0; }
.feat .photo {
  width: 100%;
  aspect-ratio: 21/9;
  background: #222 center/cover no-repeat;
  position: relative;
}
.feat .photo .live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 11px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feat .photo .live-pill::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  animation: pulse 2s infinite;
}
.feat .when {
  display: block;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.feat h3 {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.020em;
  margin: 8px 0 6px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat .where {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.feat .blurb {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat .cta {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
}
.feat .cta:hover { color: var(--teal); border-color: var(--teal); }

/* ─── Event list (right column hero & weekend) ─────────── */
.also {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}
.also > li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding .12s, background .12s;
  min-width: 0;
}
.also > li:hover {
  padding-left: 10px;
  padding-right: 10px;
  background: var(--row);
}
.also .a-when {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 4px;
}
.also .a-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.010em;
  color: var(--ink);
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.also .a-where {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mute);
}
.also-foot { padding: 20px 4px 0; }

/* ─── Things to Do (3-up cards, 4:3) ─────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}
.card .card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: #222 center/cover no-repeat;
  transition: opacity .15s;
}
.card:hover .card-photo { opacity: 0.92; }
.card .card-eye {
  display: block;
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.card h3 {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 6px 0 8px;
}
.card .card-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Eat & Drink (4-up cards, 1:1) ─────────────────────── */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card-sm {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}
.card-sm .card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: #222 center/cover no-repeat;
  transition: opacity .15s;
}
.card-sm:hover .card-photo { opacity: 0.92; }
.card-sm h3 {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 12px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sm .card-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card-sm .card-meta b { color: var(--ink); font-weight: 800; }
.card-sm .card-place {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Newsletter signup (box rule applied) ──────────────── */
.signup {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: 38px 44px 36px;
  max-width: 880px;
  margin-top: 56px;
}
.signup-eye {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.signup-title {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.020em;
  color: var(--ink);
  margin: 0 0 12px;
}
.signup-title em { font-style: normal; color: var(--teal); }
.signup-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 56ch;
}
.signup-form { display: flex; flex-direction: column; gap: 22px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}
.form-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.signup-form input[type="text"],
.signup-form input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.signup-form input::placeholder { color: var(--ink-faint); font-weight: 400; }
.signup-form input:focus { border-bottom-color: var(--teal); }
.form-chips .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px 7px;
  border: 1.5px solid var(--rule-strong);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  user-select: none;
  background: var(--paper);
  color: var(--ink);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.form-submit {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form-submit button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px 11px;
  cursor: pointer;
  transition: background .12s;
}
.form-submit button:hover { background: var(--teal); }
.form-submit .fine {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── Coming Weekend (2-column list) ─────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ─── Footer (Ink Wash — variant A) ──────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 80px;
}
.footer-rule { height: 4px; background: var(--teal); }
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-in .mast {
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.034em;
  line-height: 0.95;
  color: var(--paper);
  text-decoration: none;
}
.footer-in .mast em { font-style: normal; color: var(--teal); }
.footer-in .footer-tagline {
  display: block;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-in .footer-blurb {
  margin: 26px 0 28px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.footer-nav a:hover { color: var(--teal); border-color: var(--teal); }
.footer-nav .sep { color: #333; align-self: center; }

/* Rights line — merged copyright + legal, sits inside .footer-in
 * directly under the link row in the same dark block. */
.footer-rights {
  margin: 28px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.footer-rights .sep { color: #333; margin: 0 6px; }
.footer-rights a { color: var(--ink-faint); text-decoration: none; }
.footer-rights a:hover { color: var(--teal); }

/* CSS-rendered photo fallback — used by .card / .card-sm / .feat photos
 * when the data row has no real image_url. Beats a random picsum image
 * (which is, by design, unrelated to the content). */
.card-photo[data-fallback],
.feat .photo[data-fallback] {
  background-image: linear-gradient(135deg, var(--teal-deep) 0%, var(--ink) 75%) !important;
  position: relative;
  overflow: hidden;
}
.card-photo[data-fallback]::after,
.feat .photo[data-fallback]::after {
  content: attr(data-fallback);
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
