/* ===========================================================
   Shared styles — old-computer / terminal aesthetic.
   Black background, RGB-blue accent. Edit colors here once
   and every page updates.
   =========================================================== */
:root {
  --blue:      #3b6cff;   /* RGB blue, the star of the show */
  --blue-dark: #1f4eff;
  --blue-soft: #11183a;   /* deep blue panel fill */
  --ink:       #d7d9e6;   /* light text on black */
  --muted:     #6f6f86;
  --line:      #2a3a8f;
  --bg:        #000000;
  --paper:     #07070d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 38px, #0b0b14 38px, #0b0b14 39px),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--blue); }
a:hover { color: #6f93ff; }

/* ---- top bar / forum header ---- */
.bar {
  background: var(--blue-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 4px solid #0b1763;
}
.bar .brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.bar .brand::before { content: ">> "; opacity: 0.7; }
.bar nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  border-bottom: 2px solid transparent;
}
.bar nav a:hover { border-bottom-color: #fff; }

/* ---- page frame ---- */
.wrap {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.wrap.wide { max-width: 980px; }

/* ---- forum-style boxed section ---- */
.box {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  margin: 1.2rem 0;
  box-shadow: 4px 4px 0 #060a24;
}
.box > .box-head {
  background: var(--blue-soft);
  border-bottom: 2px solid var(--line);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aebbff;
}
.box > .box-body { padding: 1rem 0.9rem; }

h1 { font-size: 1.6rem; margin: 0 0 0.3rem; }
h1 .blink { color: var(--blue); }
.tagline { color: var(--muted); margin: 0 0 1rem; }
code { color: #aebbff; }

/* ===========================================================
   TERMINAL — plain prompt/output lines, no boxes
   =========================================================== */
.term {
  max-width: 760px;
  margin: 1.6rem auto;
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
}
.term.wide { max-width: 980px; }
.term .line { white-space: pre-wrap; margin: 0; }
.prompt { color: var(--blue); font-weight: 700; }
.prompt::before { content: "mc@site:~$ "; }
.prompt.book::before { content: "mc@booking:~$ "; }
.cmd { color: var(--ink); }
.out { color: var(--ink); margin: 0.15rem 0 1.1rem; }
.out.dim { color: var(--muted); }
.out a { color: var(--blue); }
.blink {
  color: var(--blue);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- form bits ---- */
label { display: block; font-size: 0.85rem; margin: 0.9rem 0 0.3rem; }

/* terminal-style section heading inside a form */
.section {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1.8rem 0 0.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
}
.section::before { content: "# "; }

/* radio choices as chips */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: #05050a;
}
.choices label:hover { border-color: var(--blue); }
.choices input { width: auto; margin: 0; }

/* preferred-date row */
.dates { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dates input { width: auto; flex: 1 1 140px; }

/* file inputs sit a touch tighter */
input[type="file"] { padding: 0.5rem; font-size: 0.82rem; }
input, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #05050a;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #0a0a16;
}
textarea { min-height: 140px; resize: vertical; }

button {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.8rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue-dark);
  border: 2px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0b1763;
}
button:hover { background: var(--blue); }
button:active { transform: translate(3px, 3px); box-shadow: none; }
button:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.note { font-size: 0.78rem; color: var(--muted); margin-top: 0.8rem; }
.status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; font-weight: 700; }
.ok  { color: #4fd17a; }
.err { color: #ff5b78; }

/* honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; }

/* public note cards (guestbook) */
.note-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 3px;
  background: var(--paper);
  padding: 0.6rem 0.8rem;
  margin: 0.5rem 0;
}
.note-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.25rem; }
.note-body { white-space: pre-wrap; word-break: break-word; }

/* scattered guestbook wall (home page) */
.scatter { columns: 210px auto; column-gap: 0.9rem; margin: 0.6rem 0 1.4rem; }
.scrap {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 #060a24;
}
.scrap .who { color: var(--blue); font-size: 0.72rem; }
.scrap .who::before { content: "> "; }
.scrap .what { white-space: pre-wrap; word-break: break-word; }

/* ===========================================================
   GALLERY — old file-explorer look
   =========================================================== */

/* prompt line: mc@gallery:~/path$ ls */
.explorer-bar {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.2rem 0 0.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.explorer-bar .path { color: var(--blue); font-weight: 700; }
.explorer-bar .path::before { content: "mc@gallery:"; color: var(--blue); }
.explorer-bar .cmd { color: var(--ink); }
.explorer-bar .up {
  border: none;
  background: none;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font: inherit;
  margin: 0;
  width: auto;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
}
.explorer-bar .up:hover { color: var(--blue); }
.explorer-bar .up:disabled { display: none; }

/* grid of folders / files */
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.4rem;
  padding: 0.4rem 0 0.6rem;
}

/* a single folder or file tile */
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.item:hover { border-color: var(--line); background: #0a0a16; }
.item .ico { font-size: 2.1rem; line-height: 1; }
.item .ico::before { content: "📁"; }
.item .label {
  font-size: 0.8rem;
  color: var(--ink);
  word-break: break-word;
}
.item .label::before { content: "› "; color: var(--blue); }
.item .label.nofolder::before { content: none; }
.item .meta { font-size: 0.68rem; color: var(--muted); }

/* file thumbnail tile */
.item .thumb {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #05050a;
  image-rendering: auto;
}

.empty { padding: 0.6rem 0; color: var(--muted); font-size: 0.85rem; }

/* trailing comment line, like terminal output */
.statusbar {
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.statusbar::before { content: "# "; }

/* public flash gallery — bigger numbered thumbnails, always visible */
.gal-note { color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 3px; padding: 0.7rem 0.9rem; margin: 0.6rem 0 1rem; font-size: 0.9rem; }
/* masonry columns so each image keeps its natural shape (hearts overlay exactly) */
.gal-grid { column-width: 230px; column-gap: 0.7rem; margin: 0.4rem 0 1.6rem; }
.gal-tile { position: relative; break-inside: avoid; margin: 0 0 0.7rem; border: 1px solid var(--line);
  border-radius: 4px; background: #05050a; overflow: hidden; cursor: pointer; display: block; }
.gal-tile img { width: 100%; height: auto; display: block; }
.gal-tile:hover { border-color: var(--blue); }
.gal-tile .num { position: absolute; top: 0; left: 0; background: var(--blue); color: #fff;
  font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-bottom-right-radius: 4px; z-index: 2; }
/* a placed claimed marker "post-it" */
.hh { position: absolute; transform: translate(-50%, -50%); font-size: 2.3rem;
  line-height: 1; pointer-events: none; z-index: 3; text-shadow: 0 0 4px #000, 0 0 4px #000, 0 0 4px #000;
  filter: drop-shadow(0 0 2px #000); }
.lightbox .cap .num { color: #aebbff; font-weight: 700; }
.lb-wrap { position: relative; display: inline-block; line-height: 0; }
.lb-wrap img { max-width: 94vw; max-height: 78vh; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.92);
  z-index: 50;
  padding: 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px #000, 6px 6px 0 #0b1763;
}
.lightbox .cap { color: var(--ink); font-size: 0.85rem; text-align: center; }
.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: auto;
  margin: 0;
  padding: 0.3rem 0.8rem;
  box-shadow: none;
}

/* ---- footer ---- */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 2rem 1rem;
}
.foot .lock::before { content: "🔒 "; }

/* booking thank-you ascii art */
.art {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  white-space: pre;
  line-height: 1.0;
  letter-spacing: 0;
  font-size: clamp(7px, 2.3vw, 13px);
  color: var(--ink);
  margin: 1.1rem 0;
  overflow-x: auto;
}

/* ===========================================================
   MOBILE — phone tuning
   =========================================================== */
@media (max-width: 600px) {
  .wrap, .term { margin: 1.1rem auto; padding: 0 0.7rem 1rem; }
  .term { font-size: 0.9rem; }
  .bar { padding: 0.55rem 0.75rem; }
  .bar .brand { font-size: 0.95rem; }
  .bar nav a { margin-left: 0.75rem; font-size: 0.9rem; }
  h1 { font-size: 1.35rem; }

  /* 2-up gallery on phones */
  .gal-grid { column-width: 150px; column-gap: 0.5rem; }

  /* boxed sections + cards a touch tighter */
  .box > .box-body { padding: 0.8rem 0.7rem; }
  .gal-note { font-size: 0.86rem; padding: 0.6rem 0.7rem; }

  /* form controls comfortable to tap */
  input, textarea { padding: 0.65rem 0.7rem; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  button { padding: 0.85rem; }
  .choices label { padding: 0.5rem 0.7rem; }

  /* lightbox uses more of the screen */
  .lb-wrap img, .lightbox img { max-width: 96vw; max-height: 74vh; }
  .lightbox .close { top: 0.6rem; right: 0.7rem; }
}
