/* ====== Base & Theme (Black) ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --bg: #000;
  --text: #e9e9e9;
  --muted: #a3a3a3;
  --accent: #7dd3fc;
  --card: #111;
  --border: #222;
  --sidebar: #0a0a0a;
}
@font-face {
  font-family: 'Old London Gothic';
  src: url('assets/fonts/OldLondon.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Times New Roman';
  src: url('assets/fonts/times.ttf') format('truetype');
  font-display: swap;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Times New Roman', Times, serif;
  display: grid;
  grid-template-areas: 
    "header header"
    "sidebar main";
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

/* ====== Header ====== */
.header {
  grid-area: header;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  font-family: 'Old London Gothic', 'UnifrakturCook', 'Old English Text MT', 'Goudy Text MT', serif;
  font-size: 7rem;
  line-height: 1.1;
  text-decoration: none;
  color: var(--text);
  letter-spacing: .5px;
}

/* ====== Sidebar ====== */
.sidebar {
  grid-area: sidebar;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav {
  display: grid;
  gap: .5rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .6rem;
  border-radius: .5rem;
  transition: background .15s ease;
}
.nav a:hover { background: #121212; }
.nav a.active { background: #141414; outline: 1px solid var(--border); }

/* ====== Content ====== */
.main {
  grid-area: main;
  padding: 2rem 2rem 3rem;
}
.container { max-width: 960px; margin: 0 auto; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; }
.lead { color: var(--muted); margin-bottom: 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
}

/* Gallery grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
figure { margin: 0; }
figure.card { padding: .75rem; }
img { width: 100%; height: auto; display: block; border-radius: .5rem; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* Contact form */
form.contact { display: grid; gap: .75rem; max-width: 560px; }
input, textarea {
  width: 100%;
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid var(--border);
  padding: .6rem .7rem;
  border-radius: .5rem;
}
button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: .65rem 1rem;
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 600;
}
button:hover { filter: brightness(1.1); }

/* Footer */
footer { color: var(--muted); margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* Mobile */
@media (max-width: 800px) {
  body { 
    grid-template-areas: 
      "header"
      "sidebar"
      "main";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .sidebar { position: relative; height: auto; }
}
