/*
Theme Name: Shotline Maritime Archive
Theme URI: https://www.shotlinediving.com/
Author: Shotline Diving
Description: A disciplined, archive-first WordPress theme for shipwreck research, Great Lakes diving records, survey notes, historical articles, and contributor-supported maritime documentation.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: shotline-archive
Tags: maritime, archive, accessibility-ready, custom-logo, featured-images, block-styles
*/

:root {
  --sl-navy-950: #07131b;
  --sl-navy-900: #0e2a3a;
  --sl-teal-700: #1e5b63;
  --sl-teal-500: #2d7d86;
  --sl-brass-500: #b08d57;
  --sl-slate-600: #44515a;
  --sl-sand-100: #e7ecef;
  --sl-sand-200: #c9d2d6;
  --sl-rust-600: #8f4b32;
  --sl-success: #5f8f6a;
  --sl-warning: #b08d57;
  --sl-danger: #a34b3f;
  --sl-max: 1180px;
  --sl-radius: 14px;
  --sl-shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sl-navy-950);
  color: var(--sl-sand-100);
  line-height: 1.65;
  font-size: 18px;
}
a { color: #8fcfd5; text-underline-offset: .18em; }
a:hover, a:focus { color: #fff; }
img { max-width: 100%; height: auto; }
.site-header {
  background: linear-gradient(135deg, rgba(7,19,27,.98), rgba(14,42,58,.94)), radial-gradient(circle at top right, rgba(45,125,134,.28), transparent 40%);
  border-bottom: 1px solid rgba(231,236,239,.12);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.header-inner, .site-main, .site-footer-inner { max-width: var(--sl-max); margin: 0 auto; padding: 0 22px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-title { margin: 0; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.site-description { margin: 0; color: var(--sl-sand-200); font-size: .86rem; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--sl-sand-100); text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .03em; }
.primary-menu a:hover { color: #8fcfd5; }
.hero {
  padding: clamp(54px, 8vw, 110px) 0;
  background:
    linear-gradient(rgba(7,19,27,.72), rgba(7,19,27,.92)),
    var(--sl-hero-image, linear-gradient(135deg, var(--sl-navy-900), var(--sl-teal-700)));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(231,236,239,.1);
}
.hero-inner { max-width: var(--sl-max); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--sl-brass-500); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 900; }
h1, h2, h3, h4 { line-height: 1.15; color: #fff; }
h1 { font-size: clamp(2.25rem, 5vw, 5rem); max-width: 900px; margin: 10px 0 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-top: 2.2em; }
h3 { font-size: 1.35rem; margin-top: 1.8em; }
.lede { max-width: 780px; color: var(--sl-sand-200); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.archive-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(231,236,239,.18);
  background: var(--sl-brass-500); color: #08141c; text-decoration: none; font-weight: 900;
}
.button.secondary { background: transparent; color: var(--sl-sand-100); }
.site-main { padding-top: 46px; padding-bottom: 70px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card, article.post-card, .research-panel {
  background: rgba(14,42,58,.72);
  border: 1px solid rgba(231,236,239,.12);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow);
  overflow: hidden;
}
.card-body, .post-card-body, .research-panel { padding: 22px; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); }
.meta, .entry-meta { color: var(--sl-sand-200); font-size: .88rem; }
.entry-content { max-width: 860px; }
.entry-content p, .entry-content li { color: var(--sl-sand-100); }
.entry-content blockquote { border-left: 4px solid var(--sl-brass-500); padding-left: 20px; color: var(--sl-sand-200); }
.archive-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.archive-table th, .archive-table td { border-bottom: 1px solid rgba(231,236,239,.12); padding: 12px; text-align: left; }
.archive-table th { color: var(--sl-brass-500); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(231,236,239,.2); }
.status-verified { background: rgba(95,143,106,.2); color: #b9e2c1; }
.status-probable { background: rgba(176,141,87,.2); color: #f3d7a2; }
.status-reported { background: rgba(45,125,134,.22); color: #a8e4e8; }
.status-lost { background: rgba(68,81,90,.45); color: #d7dde0; }
.status-destroyed { background: rgba(163,75,63,.22); color: #ffc1b9; }
.sidebar { position: sticky; top: 104px; }
.sidebar .widget { background: rgba(14,42,58,.5); border: 1px solid rgba(231,236,239,.12); border-radius: var(--sl-radius); padding: 20px; margin-bottom: 20px; }
.site-footer { background: #050d13; border-top: 1px solid rgba(231,236,239,.12); padding: 42px 0; color: var(--sl-sand-200); }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 20px; top: 20px; width: auto; height: auto; padding: 10px; background: #fff; color: #000; z-index: 100; }
input, textarea, select { width: 100%; background: #08141c; color: #fff; border: 1px solid rgba(231,236,239,.22); border-radius: 10px; padding: 12px; }
@media (max-width: 850px) {
  .header-inner, .content-grid { display: block; }
  .primary-menu { margin-top: 16px; gap: 12px; }
  .site-header { position: relative; }
  .sidebar { position: static; }
  body { font-size: 16px; }
}
