/* =========================================================
   Shell Shock Foundry
   main.css
   Green base with subtle Turtle accents
   ========================================================= */

:root{
  /* Base surfaces */
  --bg: #f6fff9;
  --panel: #ffffff;
  --text: #0b1b12;
  --muted: #3f5b4d;
  --line: rgba(9, 77, 47, 0.14);

  /* Foundry greens */
  --brand:  #0f6b3f;
  --brand2: #2db46d;

  /* Ninja Turtle accent tokens */
  --turtle-red:    #d83a3a; /* Raphael */
  --turtle-orange: #f28b1a; /* Michelangelo */
  --turtle-blue:   #2a76d2; /* Leonardo */
  --turtle-purple: #7b4bd3; /* Donatello */

  /* UI */
  --radius: 18px;
  --shadow: 0 12px 30px rgba(6, 53, 31, 0.10);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

/* Background grid (green themed) */
.bg-grid{
  background-image:
    linear-gradient(to right, rgba(15, 107, 63, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 107, 63, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  min-height: 100%;
}

/* Layout wrapper */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* Header */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 22px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* Logo mark */
.mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, var(--brand2), var(--brand));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  user-select: none;
}

/* Brand text helpers (optional classes if you remove inline styles) */
.brand-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.brand-subtitle{
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

/* Nav */
nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

nav a{
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}

nav a:hover{
  background: rgba(15, 107, 63, 0.06);
  border-color: rgba(15, 107, 63, 0.18);
  color: var(--text);
}

/* Hero */
.hero{
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(45, 180, 109, 0.16), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(42, 118, 210, 0.08), transparent 55%),
    radial-gradient(800px 420px at 70% 80%, rgba(123, 75, 211, 0.06), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.kicker{
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
}

h1{
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: #06351f;
}

.sub{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
  line-height: 1.55;
}

/* Buttons */
.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(15, 107, 63, 0.22);
  background: rgba(15, 107, 63, 0.08);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
}

.btn:hover{
  background: rgba(15, 107, 63, 0.12);
}

.btn.primary{
  background: linear-gradient(
    90deg,
    rgba(15, 107, 63, 0.18),
    rgba(45, 180, 109, 0.18)
  );
  border-color: rgba(15, 107, 63, 0.30);
}

.btn .mono{
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

/* Main grid */
.grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

/* Cards */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  color: #06351f;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Link list items */
.links{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.link{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(12, 22, 38, 0.10);
  background: rgba(255, 255, 255, 0.7);
}

.link:hover{
  border-color: rgba(15, 107, 63, 0.22);
  background: rgba(15, 107, 63, 0.06);
}

.link .meta{
  display: grid;
  gap: 2px;
}

.link .title{
  font-weight: 800;
  font-size: 14px;
}

.link .desc{
  color: var(--muted);
  font-size: 12px;
}

/* Chips */
.chip{
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 63, 0.25);
  background: rgba(15, 107, 63, 0.08);
  color: var(--muted);
  white-space: nowrap;
}

/* Optional accent chips (use with class="chip accent-red" etc.) */
.accent-red{ border-color: rgba(216, 58, 58, 0.35); background: rgba(216, 58, 58, 0.08); color: #7a1010; }
.accent-orange{ border-color: rgba(242, 139, 26, 0.35); background: rgba(242, 139, 26, 0.10); color: #7a3c00; }
.accent-blue{ border-color: rgba(42, 118, 210, 0.35); background: rgba(42, 118, 210, 0.10); color: #0f2f66; }
.accent-purple{ border-color: rgba(123, 75, 211, 0.35); background: rgba(123, 75, 211, 0.10); color: #2f155f; }

/* Terminal */
.terminal{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 22, 38, 0.12);
  overflow: hidden;
}

.terminal .bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(6, 53, 31, 0.04);
  border-bottom: 1px solid rgba(12, 22, 38, 0.10);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(12, 22, 38, 0.20);
}

/* Give the 3 dots subtle turtle hints */
.terminal .dot:nth-child(1){ background: rgba(216, 58, 58, 0.55); }
.terminal .dot:nth-child(2){ background: rgba(242, 139, 26, 0.55); }
.terminal .dot:nth-child(3){ background: rgba(42, 118, 210, 0.55); }

pre{
  margin: 0;
  padding: 14px 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  background: #08170f;
  color: #d9ffe9;
  overflow-x: auto;
}

footer{
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-top: 16px;
  border-top: 1px solid rgba(9, 77, 47, 0.12);
}

footer .tiny{
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.9;
}

/* Accessibility focus */
:focus-visible{
  outline: 3px solid rgba(45, 180, 109, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 820px){
  h1{ font-size: 34px; }
  .grid{ grid-template-columns: 1fr; }
}
