/* ═══════════════════════════════════════════════════════════════
   ATELIER STUDIO — NORDIC MINIMALIST ARCHIVE
   Aesthetic: Scandinavian Architectural Studio & Gallery
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&display=swap');

:root {
  --atl-bg: #f7f6f2;
  --atl-card: #ffffff;
  --atl-surface: #eeece6;
  --atl-charcoal: #181716;
  --atl-slate: #54524f;
  --atl-ash: #8c8984;
  --atl-line: rgba(24, 23, 22, 0.09);
  --atl-line-strong: rgba(24, 23, 22, 0.18);
  
  --atl-accent: #3d4a3e;
  --atl-accent-light: #d6ded5;
  
  --atl-font-head: 'Fraunces', Georgia, serif;
  --atl-font-body: 'DM Sans', -apple-system, sans-serif;
  
  --atl-width: 1200px;
  --atl-narrow: 780px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--atl-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--atl-charcoal);
  background: var(--atl-bg);
}
a { color: inherit; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.atl-container { max-width: var(--atl-width); margin: 0 auto; padding: 0 32px; }
.atl-narrow { max-width: var(--atl-narrow); margin: 0 auto; padding: 0 32px; }

/* ── Navigation ────────────────────────────────────────────── */
.atl-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--atl-line);
  height: 68px;
}
.atl-nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.atl-brand {
  font-family: var(--atl-font-head);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--atl-charcoal);
}
.atl-brand span {
  font-size: 11px;
  font-family: var(--atl-font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--atl-ash);
  margin-left: 8px;
}
.atl-menu {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.atl-menu a { color: var(--atl-slate); }
.atl-menu a:hover, .atl-menu a.active { color: var(--atl-charcoal); }

/* ── Masthead Hero ─────────────────────────────────────────── */
.atl-masthead {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--atl-line);
}
.atl-subhead-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--atl-accent);
  margin-bottom: 16px;
  display: block;
}
.atl-title {
  font-family: var(--atl-font-head);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.atl-lead {
  font-size: 16.5px;
  color: var(--atl-slate);
  max-width: 680px;
  line-height: 1.8;
}

/* ── Statement Box ─────────────────────────────────────────── */
.atl-statement-box {
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  padding: 36px 40px;
  margin: 40px 0;
}
.atl-statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  font-size: 14.5px;
  color: var(--atl-slate);
  line-height: 1.8;
}

/* ── Catalog Grid ──────────────────────────────────────────── */
.atl-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 48px 0 28px;
}
.atl-section-title {
  font-family: var(--atl-font-head);
  font-size: 30px;
  font-weight: 400;
}
.atl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.atl-item-card {
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.atl-item-card:hover {
  border-color: var(--atl-charcoal);
  transform: translateY(-4px);
}
.atl-item-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--atl-surface);
}
.atl-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.atl-item-card:hover .atl-item-img {
  transform: scale(1.04);
}
.atl-item-num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  color: var(--atl-charcoal);
}
.atl-item-details {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.atl-item-name {
  font-family: var(--atl-font-head);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 8px;
}
.atl-item-desc {
  font-size: 13.5px;
  color: var(--atl-slate);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.atl-item-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--atl-charcoal);
  border-top: 1px solid var(--atl-line);
  padding-top: 12px;
  display: inline-block;
}
.atl-item-link:hover { color: var(--atl-accent); }

/* ── SEO Bottom ────────────────────────────────────────────── */
.atl-notes-wrap {
  border-top: 1px solid var(--atl-line);
  padding: 50px 0;
  background: var(--atl-card);
  margin-top: 40px;
}
.atl-notes-title {
  font-family: var(--atl-font-head);
  font-size: 26px;
  margin-bottom: 16px;
}
.atl-notes-body {
  color: var(--atl-slate);
  line-height: 1.8;
  margin-bottom: 24px;
}
.atl-tags-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.atl-tag-item {
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  background: var(--atl-surface);
  border: 1px solid var(--atl-line);
  color: var(--atl-slate);
}
.atl-tag-item:hover {
  background: var(--atl-charcoal);
  color: #fff;
}

/* ── Product Page ──────────────────────────────────────────── */
.atl-entry-hero {
  padding: 44px 0 24px;
}
.atl-entry-meta-bar {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--atl-ash);
  margin-bottom: 12px;
}
.atl-entry-title {
  font-family: var(--atl-font-head);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}
.atl-entry-showcase {
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  padding: 12px;
  margin-bottom: 36px;
}
.atl-entry-showcase img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.atl-entry-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--atl-charcoal);
}
.atl-entry-text p { margin-bottom: 24px; }
.atl-entry-text strong {
  font-family: var(--atl-font-head);
  font-size: 19px;
  font-weight: 500;
  color: var(--atl-charcoal);
  display: block;
  margin-bottom: 18px;
}

/* Photo grids */
.atl-duo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.atl-trio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.atl-photo-cell {
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  padding: 6px;
  cursor: zoom-in;
}
.atl-photo-cell img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Reference Card */
.atl-reference-card {
  border: 1px solid var(--atl-charcoal);
  background: var(--atl-card);
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.atl-reference-thumb {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--atl-line);
}
.atl-reference-name {
  font-family: var(--atl-font-head);
  font-size: 22px;
  margin-bottom: 6px;
}
.atl-reference-note {
  font-size: 13px;
  color: var(--atl-slate);
  margin-bottom: 14px;
}
.atl-wayfair-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--atl-charcoal);
  color: #ffffff !important;
  padding: 10px 22px;
  transition: all 0.2s;
}
.atl-wayfair-btn:hover {
  background: var(--atl-accent);
}

/* ── Footer ────────────────────────────────────────────────── */
.atl-footer {
  border-top: 1px solid var(--atl-line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--atl-slate);
  margin-top: 60px;
}
.atl-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.atl-footer-links {
  display: flex;
  gap: 20px;
}

/* ── Modal ─────────────────────────────────────────────────── */
.atl-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 23, 22, 0.94);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.atl-modal.open { display: flex; }
.atl-modal-pic { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.atl-modal-exit {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .atl-grid { grid-template-columns: repeat(2, 1fr); }
  .atl-statement-grid { grid-template-columns: 1fr; }
  .atl-reference-card { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .atl-grid { grid-template-columns: 1fr; }
  .atl-duo-gallery, .atl-trio-gallery { grid-template-columns: 1fr; }
  .atl-title { font-size: 32px; }
  .atl-entry-title { font-size: 28px; }
  .atl-footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}
