/* SALTY / saltworks
   Premium visual chassis with integrated widget styles
*/

/* ---------- CSS Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Design Tokens ---------- */
:root{
  /* Colors - Dark theme with premium gradients */
  --bg: #0b0c10;
  --bg2: #0f1117;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.10);

  --text: rgba(255,255,255,0.90);
  --muted: rgba(255,255,255,0.65);
  --soft: rgba(255,255,255,0.45);

  --accent: #79d7ff;
  --accent2: #b7ffcf;
  --danger: #ff6b6b;

  /* Status colors */
  --status-minimal: rgba(255,255,255,0.35);
  --status-low: #8b9a7d;
  --status-moderate: var(--accent);
  --status-high: #c9713d;
  --status-extreme: #a63d3d;
  --status-extreme-text: #ff6b6b;

  /* CTA button background */
  --cta-text: #001018;

  /* Effects */
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius2: 26px;

  /* Layout */
  --max: 1100px;
  --pad: clamp(18px, 3vw, 28px);

  /* Typography */
  --h1: clamp(2.1rem, 4.2vw, 3.4rem);
  --h2: clamp(1.5rem, 2.6vw, 2.1rem);
  --h3: clamp(1.1rem, 1.8vw, 1.35rem);
  --p: clamp(1rem, 1.2vw, 1.06rem);
  --small: clamp(0.85rem, 1vw, 0.92rem);
  --xs: clamp(0.75rem, 0.9vw, 0.82rem);
}

/* ---------- Base Typography ---------- */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--p);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(121,215,255,0.12), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(183,255,207,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

.container{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--stroke);
  z-index: 10000;
}
.skip-link:focus{
  left: 12px;
  outline: 2px solid var(--accent);
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,12,16,0.68);
  backdrop-filter: blur(10px);
}

.nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.logo{
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.logo-primary{
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
}

.logo-secondary{
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.logo:hover .logo-primary,
.logo:hover .logo-secondary{
  color: var(--accent);
}

/* Nav list */
.nav-menu{
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav-menu a{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-menu a:hover{
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle-bar{
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Sections ---------- */
section{
  padding: clamp(48px, 7vw, 86px) 0;
}

/* Section titles */
.section-title{
  font-size: var(--h2);
  margin: 0 0 12px 0;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.section-intro{
  margin: 0 0 26px 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.65;
}

/* ---------- Hero ---------- */
.hero-section{
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(70px, 10vw, 120px);
}
.hero-section .container{
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(121,215,255,0.14), transparent 60%),
    radial-gradient(700px 360px at 80% 40%, rgba(183,255,207,0.10), transparent 55%),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.hero-headline{
  font-size: var(--h1);
  line-height: 1.06;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero-subheadline{
  margin: 0 0 22px 0;
  color: rgba(255,255,255,0.78);
  max-width: 75ch;
  line-height: 1.65;
}

.cta-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--cta-text);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(121,215,255,0.22);
  border: 1px solid rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.cta-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(121,215,255,0.28);
}
.cta-button:active{
  transform: translateY(0px);
}

.hero-tagline{
  margin: 16px 0 0 0;
  color: var(--soft);
  font-style: italic;
}

.tagline-inline{
  font-style: italic;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* ---------- History section ---------- */
.history-section .big-statement{
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 10px 0 26px 0;
  color: rgba(255,255,255,0.84);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.story-content{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.story-part{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  padding: 20px 20px;
  transition: background 0.2s;
}

.story-part:hover{
  background: rgba(255,255,255,0.07);
}

.story-heading{
  margin: 0 0 10px 0;
  font-size: var(--h3);
  font-weight: 800;
}

.story-part p{
  margin: 10px 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.story-emphasis{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.section-closer{
  text-align: center;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
}

/* ---------- Section Big Statements ---------- */
.big-statement{
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 10px 0 26px 0;
  color: rgba(255,255,255,0.84);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ---------- Field Reports Section ---------- */
.reports-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.report-card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.42);
}

.report-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 260px at 10% 0%, rgba(121,215,255,0.10), transparent 60%),
    radial-gradient(480px 240px at 90% 10%, rgba(183,255,207,0.08), transparent 55%);
  opacity: 0.9;
}

.report-card > *{
  position: relative;
}

.report-title{
  font-size: var(--h3);
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.report-meta{
  margin: 0 0 14px 0;
}

.report-meta p{
  margin: 8px 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.report-lesson{
  margin: 14px 0 10px 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.84);
  line-height: 1.6;
}

.report-tagline{
  margin: 10px 0 0 0;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ---------- Contact Section ---------- */
.contact-section{
  text-align: center;
}

.contact-email{
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin: 18px 0;
  color: rgba(255,255,255,0.84);
}

.email-link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.email-link:hover{
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

.contact-note{
  margin: 12px 0 18px 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  padding: clamp(36px, 5vw, 56px) 0;
}

.footer-tagline{
  font-weight: 900;
  margin: 0 0 14px 0;
  letter-spacing: 0.02em;
}

.footer-nav{
  margin: 16px 0 20px 0;
}
.footer-links{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-links a{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.footer-links a:hover{
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

.legal-text,
.copyright,
.footer-final,
.footer-tagline-final{
  color: var(--muted);
  line-height: 1.6;
}
.legal-text{
  font-size: var(--small);
  margin: 12px 0;
}
.copyright{
  font-size: var(--small);
  margin: 8px 0;
}
.footer-final{
  margin-top: 18px;
  font-size: var(--small);
}
.footer-tagline-final{
  margin-top: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.50);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .rules-grid,
  .protocols-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .nav-toggle{
    display: inline-flex;
  }
  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px;
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-top: none;
    background: rgba(11,12,16,0.95);
    backdrop-filter: blur(10px);
    gap: 0;
  }
  .nav-menu.nav-open{
    display: flex;
  }
  .nav-menu a{
    padding: 14px 16px;
    border-radius: 10px;
  }
  .nav-container{
    flex-wrap: wrap;
    position: relative;
  }
  .logo{
    padding: 6px 0;
  }
}

@media (max-width: 420px){
  .logo{
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .logo-secondary{
    font-size: 0.78rem;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .nav-toggle,
  .cta-button,
  .widget-active,
  .skip-link {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .rule-card,
  .protocol-card,
  .story-part {
    page-break-inside: avoid;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --stroke: rgba(255,255,255,0.25);
    --text: rgba(255,255,255,0.98);
  }

  .rule-card,
  .protocol-card,
  .widget-active {
    border-width: 2px;
  }
}
