/* ===============================
   1. CSS VARIABLES
   =============================== */
:root {
  --wall: #f3efe9;
  --paper: #fffdf9;
  --ink: #1b1816;
  --muted: #6f675f;
  --accent: #b48a5a;
  --frame: #e3ddd5;
  --max: 1180px;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.14);
  --radius: 16px;
}

/* ===============================
   2. RESET & BASE STYLES
   =============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--wall);
  color: var(--ink);
  line-height: 1.7;
}

/* ===============================
   3. NAVIGATION
   =============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243,239,233,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
}

.brand .sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

/* ===============================
   4. HERO SECTION
   =============================== */
header.hero {
  max-width: var(--max);
  margin: 72px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

header.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  line-height: 0.98;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 62ch;
}

/* ===============================
   5. PANE & CATALOG IMAGE
   =============================== */
.pane {
  background: var(--paper);
  width: 400px;
  height: 280px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  overflow: hidden; /* critical for image masking */
}

header.hero aside.pane {
  margin-top: -28px;
}

.catalog-image {
  width: 240px; /* intentional object size */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  transform: rotate(-90deg);
  transform-origin: center;
}

/* ===============================
   6. STAMPS / LABELS
   =============================== */
.stamp {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ===============================
   7. DOORS / SECTIONS
   =============================== */
.doors {
  max-width: var(--max);
  margin: 14px auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.door {
  background: var(--paper);
  padding: 28px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.door h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.door span {
  color: var(--muted);
  font-size: 0.95rem;
}




/* ===============================
   8. FOOTER
   =============================== */
footer {
  margin: 0;
  padding: 28px 24px;
  background: linear-gradient(180deg, #efeae3, #e7e1d9);
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===============================
   9. RESPONSIVE
   =============================== */
@media(max-width: 980px) {
  header.hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  .brand h1 {
    font-size: 24px;
  }

  header.hero h2 {
    font-size: 40px;
  }
}
