﻿/* Moonspear Studio — Wireframe hand-drawn (Option B)
   Designed for Firebase Hosting static pages.
*/

:root{
  --bg:#ebebeb;
  --surface:#ffffff;
  --ink:#2d2d2d;
  --ink-2:#454545;
  --muted:#6b6b6b;
  --border:#e0e0e0;
  --line:#d7d7d7;
  --shadow:rgba(0,0,0,.12);
  --radius-lg:18px;
  --radius-md:14px;
  --stroke:2px;
  --shadow-offset-x:4px;
  --shadow-offset-y:4px;

  --paper:var(--bg);
  --paper-2:var(--surface);

  --accent-blue:#eef2f7;
  --accent-lilac:#f5f2fb;
  --accent-pink:#fbf1f5;
  --accent-note:#f5f3ec;
  --accent-mint:#eff6f1;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.32)),
    linear-gradient(90deg, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 42%, rgba(255,255,255,.12) 100%),
    var(--bg);
  font-family: 'Architects Daughter', cursive, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  letter-spacing: .2px;
}

img{ max-width:100%; height:auto; display:block; }

a{ color: inherit; }
a:hover{ text-decoration: none; }

.container{
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:14px; top:14px;
  width:auto; height:auto;
  padding:10px 12px;
  background: var(--surface);
  border:var(--stroke) solid var(--ink);
  border-radius: var(--radius-md);
  z-index:9999;
}

.topbar{
  position: sticky;
  top: 10px;
  z-index: 50;
  margin: 10px 0 18px;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;

  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);

  border:var(--stroke) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  min-width: 240px;
}
.brand-mark{
  width:44px; height:44px;
  display:grid;
  place-items:center;

  background: var(--surface);
  border:var(--stroke) solid var(--border);
  border-radius: var(--radius-md);

  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
}
.brand-mark img{ width:32px; height:32px; }
.brand-name{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-name strong{
  font-family: "Caveat", cursive;
  font-size: 22px;
  letter-spacing: .2px;
  line-height: .95;
}
.brand-name span{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.1;
}

.nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
  align-items:center;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;

  border:var(--stroke) solid var(--border);
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;

  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(0,0,0,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pill:hover{
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(0,0,0,.10);
  border-color: #d6d6d6;
}
.pill[aria-current="page"]{
  background: #f6f6f6;
}

main{ padding-bottom: 32px; }

.hero{
  padding: 18px 0 6px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .nav-links{ justify-content:flex-start; }
}

.kicker{
  display:inline-flex;
  gap:12px;
  align-items:center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--muted);
}
.kicker::before{
  content:"→";
  display:inline-block;
  width: auto; height: auto;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  transform: translateY(-1px);
}

h1{
  margin: 10px 0 10px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
}
.lead{
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--ink-2);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: 'Architects Daughter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 rgba(0,0,0,.12);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 5px 6px 0 rgba(0,0,0,.16);
}
.btn-primary{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-note{ background: var(--surface); }
.btn-pink{ background: var(--surface); }
.btn-ghost{
  background: transparent;
  box-shadow: none;
  border-color: var(--border);
}
button.btn,
a.button,
button{
  font-family: 'Architects Daughter', system-ui, sans-serif;
}

.hr{
  border:0;
  height:2px;
  background: var(--line);
  margin: 16px 0;
}

.card {
  background: var(--surface);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
  padding: 24px;
}
.card-pad{ padding: 16px; }
.panel,
.frame,
.cardish{
  background: var(--surface);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
}

.banner-card{
  position: relative;
  overflow:hidden;
}
.banner-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.banner-figure{
  background: var(--surface);
  border:2px dashed rgba(45,45,45,.22);
  border-radius: var(--radius-md);
  padding: 10px;
}
.banner-figure img{
  width:100%;
  border-radius: 12px;
}
.banner-caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.scribble{
  font-family: "Caveat", cursive;
  font-size: 22px;
  line-height: 1.05;
}
.scribble small{
  display:block;
  font-family: 'Architects Daughter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: 4px;
}
.sig{
  width: 54px;
  height: 54px;
  border:var(--stroke) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display:grid;
  place-items:center;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
}
.sig img{ width: 38px; height: 38px; }

.notice{
  background: #f7f7f7;
  border:var(--stroke) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
  font-size: 14px;
}

.section{ padding: 18px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
h2{
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-12{ grid-column: span 12; }
@media (max-width: 920px){
  .col-4, .col-6{ grid-column: span 12; }
}

.thumb{
  height: 170px;
  border:2px dashed rgba(45,45,45,.2);
  border-radius: var(--radius-md);
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.85);
  color: var(--muted);
  text-align:center;
  padding: 10px;
}

.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.badge{
  padding: 6px 10px;
  border:var(--stroke) solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.06);
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.footer{
  border-top:2px dashed rgba(45,45,45,.18);
  padding: 18px 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.footer a{ color: var(--ink); }
.sig-inline{
  display:inline-block;
  vertical-align:middle;
  margin-left: 8px;
  width: 22px;
  height: 22px;
}

/* Page helpers */
.page-head{
  margin: 8px 0 10px;
}
.page-head h1{
  margin: 8px 0 6px;
  font-size: clamp(30px, 3.4vw, 44px);
}
.page-sub{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}
.callout{
  margin-top: 14px;
  background: var(--surface);
  border:var(--stroke) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 var(--shadow);
}

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(20,20,20,.06);
  border:1px solid rgba(20,20,20,.18);
  border-radius: 10px;
  padding: 2px 8px;
}

/* --- LIGHTBOX E GALERIA --- */
.gallery-img { cursor: pointer; transition: transform 0.2s ease; }
.gallery-img:hover { transform: scale(1.03); opacity: 0.9; }

#lightbox {
  display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 15, 15, 0.95); flex-direction: column; align-items: center; justify-content: center;
}

.lightbox-content {
  display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; padding: 0 20px;
}

#lightbox img {
  max-width: 80vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  object-fit: contain; user-select: none;
}

.nav-btn {
  background: rgba(255,255,255,0.1); color: white; border: none; font-size: 30px; 
  cursor: pointer; padding: 15px 20px; border-radius: 50%; transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.3); }

.lightbox-close {
  position: absolute; top: 20px; right: 30px; color: #aaa; font-size: 40px; 
  font-weight: bold; cursor: pointer; line-height: 1; border: none; background: transparent;
}
.lightbox-close:hover { color: #fff; }

.image-counter { color: #888; margin-top: 16px; font-family: monospace; font-size: 14px; }