/* ============================================================
   www.nathanseals.com: main stylesheet
   black grungy background, torn-paper panels, tape, hand-drawn
   ============================================================ */

:root {
  --bg-paper:        #f4efe6;   /* aged paper for panels */
  --bg-paper-edge:   #ddd2bd;
  --ink:             #0a0a0a;
  --ink-soft:        #2a2a2a;
  --accent:          #9a1414;   /* red ink stamp */
  --tape:            rgba(245, 230, 165, 0.55);
  --tape-edge:       rgba(120, 100, 50, 0.18);
  --panel-shadow:    0 18px 40px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.4);

  --font-hand:  'Permanent Marker', 'Marker Felt', 'Comic Sans MS', sans-serif;
  --font-body:  'Special Elite', 'Courier New', monospace;
  --font-title: 'Permanent Marker', 'Impact', sans-serif;
}

/* fonts loaded via <link> in each page <head> from Google Fonts */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-image:
    url('../assets/backgrounds/diy-1.jpeg'),
    url('../assets/backgrounds/diy-3.jpeg');
  background-repeat: repeat-y, repeat-y;
  background-size: 100% auto, 100% auto;
  background-position: 0 0, 0 800px;
  background-attachment: fixed, scroll;
}

/* Pages can swap the primary background */
body.page-about    { background-image: url('../assets/backgrounds/diy-2.jpeg'); }
body.page-the-table { background-image: url('../assets/backgrounds/diy-4.jpeg'); }
body.page-portfolio{ background-image: url('../assets/backgrounds/diy-5.jpeg'); }
body.page-contact  { background-image: url('../assets/backgrounds/diy-6.jpeg'); }
body.page-zines    { background-image: url('../assets/backgrounds/diy-7.jpeg'); }

body::before {
  /* subtle vignette so panels pop */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}

/* ============================================================
   main layout
   ============================================================ */

.site-main {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #aaa;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 24px 16px 40px;
  letter-spacing: 0.05em;
}

/* ============================================================
   panels: torn-paper white blocks with tape
   ============================================================ */

.panel {
  position: relative;
  background-color: var(--bg-paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05), transparent 55%);
  color: var(--ink);
  padding: 36px 38px 32px;
  margin: 0 auto 36px;
  max-width: 920px;
  box-shadow: var(--panel-shadow);
  /* torn-edge effect via clip-path */
  clip-path: polygon(
    0% 4%, 3% 0%, 12% 2%, 25% 0%, 38% 3%, 55% 1%, 70% 2%, 85% 0%, 100% 3%,
    99% 18%, 100% 35%, 98% 55%, 100% 72%, 99% 88%, 100% 100%,
    88% 99%, 72% 100%, 55% 98%, 38% 100%, 22% 99%, 8% 100%, 0% 98%,
    1% 80%, 0% 60%, 2% 42%, 0% 22%
  );
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.3));
}

.panel + .panel { margin-top: 40px; }

.panel-hero {
  padding: 44px 56px 40px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.panel-aside {
  font-style: italic;
  color: var(--ink-soft);
}

.panel-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3rem;
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
}

.panel-title.small {
  font-size: 2rem;
  margin-bottom: 14px;
}

.panel-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 6px;
  margin-top: 6px;
  background:
    radial-gradient(circle at 10% 50%, var(--ink) 0 4px, transparent 5px),
    linear-gradient(90deg, var(--ink) 0 80%, transparent 100%);
  background-size: 12px 6px, 100% 4px;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 50%, 0 100%;
  opacity: 0.75;
  transform: skewY(-1deg);
}

.panel p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
}

/* tape strips on panel corners */
.tape {
  position: absolute;
  width: 110px;
  height: 28px;
  background: var(--tape);
  border: 1px solid var(--tape-edge);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0.85;
}
.tape-tl { top: -10px;  left: -22px;  transform: rotate(-18deg); }
.tape-tr { top: -10px;  right: -22px; transform: rotate( 16deg); }
.tape-bl { bottom: -10px; left: -22px;  transform: rotate( 14deg); }
.tape-br { bottom: -10px; right: -22px; transform: rotate(-14deg); }

/* ============================================================
   button row (brain / skull / tech)
   ============================================================ */

.button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 48px;
}

.big-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #f1ece0;
  padding: 18px 18px 22px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.big-button:hover {
  transform: translateY(-3px) rotate(-0.6deg);
  background: rgba(40, 30, 30, 0.7);
}

.big-button img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 1px #fff);
  /* button PNGs are black-on-white; invert to white-on-dark */
  filter: invert(1);
  margin-bottom: 12px;
}

.big-button-label {
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: #fff;
}

.big-button-blurb {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #d6d1c2;
}

/* ============================================================
   two-column zines + blog
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.panel-zines, .panel-blog {
  padding: 30px 32px 28px;
  margin: 0;
}

.zine-list, .blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zine-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  margin-bottom: 22px;
  align-items: start;
}

.zine-list .zine-cover {
  width: 80px;
  height: 100px;
  background: #222 center/cover no-repeat;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.zine-list .zine-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1a1a1a;
  color: #ddd;
  font-family: var(--font-title);
  font-size: 0.7rem;
  padding: 6px;
  line-height: 1.05;
}

.zine-list .zine-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.zine-list .zine-title:hover { color: var(--accent); }

.zine-list .zine-blurb {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.zine-list .zine-meta {
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.zine-list .zine-actions {
  margin-top: 6px;
  display: flex;
  gap: 12px;
}

.zine-list .zine-action {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.zine-list .zine-action:hover { color: #000; border-color: #000; }

.zine-list-empty {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.blog-list li {
  margin-bottom: 18px;
}

.blog-list .blog-title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-decoration: underline;
  color: var(--ink);
  margin-bottom: 4px;
}
.blog-list .blog-title:hover { color: var(--accent); }

.blog-list .blog-blurb {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.more-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 760px) {
  .button-row, .two-col { grid-template-columns: 1fr; }
  .panel-hero { padding: 30px 22px; }
  .panel-title { font-size: 2.2rem; }
  .site-main { padding: 32px 14px 60px; }
}
