:root {
  --paper: #faf7f2;
  --paper-2: #f2ece1;
  --card: #ffffff;
  --ink: #14181f;
  --ink-2: #3d4552;
  --ink-3: #687385;
  --coral: #ff5a36;
  --coral-dark: #e04320;
  --navy: #0b2545;
  --mint: #10b981;
  --line: #14181f;
  --line-soft: #dfd7c8;
  --shadow: 4px 4px 0 #14181f;
  --shadow-lg: 6px 6px 0 #14181f;
  --radius: 14px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-dark); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header — clean editorial masthead */
.site-header {
  border-bottom: 2px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--coral);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 700; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Main */
.main-content { padding: 20px 20px 56px; }

.hero-stage { margin-bottom: 30px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-sub {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 720px;
  margin-bottom: 14px;
}

/* Player — deep ocean frame set on warm paper */
.player-shell {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: var(--navy);
}
.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #113d69 0%, #071b33 100%);
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.cover-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.cover-badge {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--coral);
  color: #ffffff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.play-btn:hover {
  background: var(--coral-dark);
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--line);
}
.play-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy);
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 600;
}
[data-gf-state="loading"] [data-gf-loading] { display: flex; }
[data-gf-state="loading"] [data-gf-cover],
[data-gf-state="playing"] [data-gf-cover] { display: none; }
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--coral);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-top: 2px solid var(--line);
  background: var(--paper-2);
}
.player-bar-left, .player-bar-right { display: flex; align-items: center; gap: 8px; }
.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.bar-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.bar-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.bar-btn[data-gf-liked] {
  background: var(--coral);
  color: #fff;
}
.share-msg { font-size: 12.5px; font-weight: 700; color: var(--navy); }

/* Content & Sidebar */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}
.prose-card, .side-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.prose-card h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 26px 0 10px;
  color: var(--ink);
}
.prose-card h2:first-child { margin-top: 0; }
.prose-card h3 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; color: var(--navy); }
.prose-card p { color: var(--ink-2); margin-bottom: 12px; }
.prose-card ul, .prose-card ol { margin: 0 0 14px 20px; color: var(--ink-2); }
.prose-card li { margin-bottom: 6px; }
.prose-card table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.prose-card th, .prose-card td { padding: 10px 10px; border-bottom: 1.5px solid var(--line-soft); text-align: left; }
.prose-card th { color: var(--ink); font-weight: 800; background: var(--paper-2); }
.prose-card td { color: var(--ink-2); }

.faq-block { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--line-soft); }
.faq-item {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq-item summary { font-weight: 800; cursor: pointer; color: var(--ink); }
.faq-item p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }

.side-col { display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 20px; }
.side-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line-soft);
}
.zone-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.zone-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
}
.zone-list span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); font-weight: 700; }

/* Comments */
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.comments-list[data-gf-empty]::before {
  content: "No diver logs yet. Leave the first comment below!";
  font-size: 13px;
  color: var(--ink-3);
}
.comment-item, .reply-item {
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.comment-item[data-gf-owner], .reply-item[data-gf-owner] {
  border-color: var(--navy);
  background: #edf3fa;
}
.comment-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; }
.comment-head time { margin-left: auto; color: var(--ink-3); }
.owner-badge {
  display: none;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
[data-gf-owner] .owner-badge { display: inline-block; }
.comment-body { color: var(--ink-2); margin-bottom: 6px; }
.reply-btn { font-size: 12px; color: var(--coral-dark); font-weight: 700; }
.replies-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line-soft); }

.comment-form { display: flex; flex-direction: column; gap: 8px; }
.replying-bar { display: none; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--navy); }
[data-gf-replying] .replying-bar { display: flex; }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--coral);
}
.submit-btn {
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  font-weight: 750;
  font-size: 13.5px;
}
.submit-btn:hover { background: #133968; }
.comment-msg { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Blog & Single */
.single-page { max-width: 820px; margin: 0 auto; }
.post-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.post-card {
  display: block;
  padding: 18px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
}
.post-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); text-decoration: none; }
.post-card time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.post-card h2 { font-family: var(--serif); font-size: 19px; margin: 6px 0; color: var(--ink); }
.post-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; font-weight: 400; }
.cta-box {
  margin-top: 26px;
  padding: 20px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--line);
  background: var(--paper-2);
  padding: 28px 0 34px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.footer-brand strong { font-family: var(--serif); color: var(--ink); font-size: 17px; display: block; margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-copy { font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .stage { min-height: 360px; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; font-size: 13px; }
  .stage { aspect-ratio: 3 / 4; min-height: 440px; }
}
