/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #f9f8f5;
  --ink:       #1c1c1a;
  --muted:     #9a9a94;
  --accent:    #5c7a4e;
  --border:    #e4e2db;
  --sidebar-w: 180px;
  --font-body: 'DM Sans', sans-serif;
  --font-disp: 'DM Serif Display', serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, #c8c5bc 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Page layout ── */
.page {
  display: flex;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  gap: 5rem;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding-top: 26rem;
}

.quick-links h3 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.quick-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quick-links ul li a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  border-left: 1.5px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

.quick-links ul li a:hover,
.quick-links ul li a.active {
  color: var(--ink);
  border-left-color: var(--accent);
}

/* ── Main content ── */
.content {
  flex: 1;
  padding-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.15s forwards;

  /* Mask out dots behind the content column */
  background-color: var(--bg);
  /* Bleed the mask slightly beyond the column edges */
  margin-left: -1.5rem;
  padding-left: 1.5rem;
  margin-right: -1rem;
  padding-right: 1rem;
}

/* ── Banner ── */
.banner-slot {
  margin-bottom: 2.25rem;
}

.banner-inner {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  background: var(--border);
  border: 1.5px dashed #c8c5bc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.banner-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  padding: 1rem;
  max-width: 320px;
  pointer-events: none;
  user-select: none;
}

/* ── Greeting ── */
.greeting {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Intro ── */
.intro {
  max-width: 560px;
}

.accent {
  color: var(--accent);
}

.intro-body {
  font-size: 1rem;
  color: #555;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── Links ── */
.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.links a:hover::after {
  width: 100%;
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .page {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .sidebar {
    width: 100%;
    padding-top: 0;
    order: 2;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }

  .quick-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .quick-links ul li a {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-bottom: 0;
  }

  .content {
    padding-top: 1rem;
    margin-left: 0;
    padding-left: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .banner-inner {
    height: 140px;
  }
}