/* Rumi Hires — Print Catalogue 2026
   Dense, photo-forward A4 planner edition */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap");

:root {
  --ivory: #e5f4fa;
  --cream: #d1f2ff;
  --sand: #99d6ee;
  --charcoal: #000000;
  --ink: #1a1a1a;
  --accent: #5ab8db;
  --accent-deep: #2a7a9e;
  --muted: #6f6f6f;
  --white: #ffffff;
  --studio: #e3e3e4;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --page-w: 210mm;
  --page-h: 297mm;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 10pt; }
body {
  font-family: var(--font-body);
  background: #9ec4d4;
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.screen-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--charcoal); color: var(--ivory);
  padding: 0.75rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.05em;
}
.screen-bar button {
  background: var(--sand); color: var(--charcoal); border: none;
  border-radius: 999px; padding: 0.5rem 1.3rem;
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}

.catalogue {
  padding: 4.2rem 0 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}

.page {
  width: var(--page-w); height: var(--page-h);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* Tight page chrome */
.pad {
  flex: 1; min-height: 0;
  padding: 9mm 10mm 8mm;
  display: flex; flex-direction: column;
}

.foot {
  margin-top: auto; padding-top: 3.5mm;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 6pt; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border-top: 0.4pt solid rgba(153,214,238,0.7);
}

.kicker {
  font-size: 6pt; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 1.5mm;
}
.title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22pt; line-height: 1.05; text-transform: lowercase;
  color: var(--charcoal); margin-bottom: 2mm;
}
.title--sm { font-size: 18pt; }
.lead {
  font-size: 8.5pt; color: var(--ink); max-width: 160mm; margin-bottom: 4mm;
}
.head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 6mm; margin-bottom: 4mm;
}
.head .title { margin-bottom: 0; }
.head .aside {
  font-size: 7pt; color: var(--muted); text-align: right;
  letter-spacing: 0.04em; max-width: 55mm; line-height: 1.4;
}

/* ---------- COVER ---------- */
.page--cover { background: #000; color: #fff; }
.cover-img { position: absolute; inset: 0; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cover-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.78) 100%);
}
.cover-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16mm 14mm 18mm;
}
.cover-eyebrow {
  font-size: 7pt; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 4mm;
}
.cover-logo {
  font-family: var(--font-display); font-size: 46pt; font-weight: 500;
  letter-spacing: 0.18em; line-height: 0.95; margin-bottom: 2mm;
}
.cover-logo span { color: var(--sand); }
.cover-year {
  font-size: 9pt; letter-spacing: 0.4em; color: rgba(255,255,255,0.6); margin-bottom: 7mm;
}
.cover-tag {
  font-family: var(--font-display); font-style: italic; font-size: 12.5pt;
  color: rgba(229,244,250,0.95); max-width: 140mm; line-height: 1.35; margin-bottom: 8mm;
}
.cover-meta {
  font-size: 7pt; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand);
}

/* ---------- INTRO (photo-forward) ---------- */
.page--intro { background: var(--ivory); }
.intro-hero {
  height: 118mm; margin: -9mm -10mm 5mm; position: relative; overflow: hidden;
}
.intro-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.intro-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(229,244,250,0.95) 100%);
}
.intro-body { position: relative; z-index: 1; margin-top: -18mm; }
.intro-cols {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 6mm; margin-top: 3mm;
}
.intro-copy p { font-size: 8.5pt; margin-bottom: 3mm; color: var(--ink); }
.intro-copy .pull {
  font-family: var(--font-display); font-style: italic; font-size: 12.5pt;
  color: var(--accent-deep); margin: 3.5mm 0; line-height: 1.3;
}
.intro-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm;
}
.stat {
  background: var(--white); border: 0.4pt solid var(--sand);
  border-radius: 2mm; padding: 3.5mm 3.5mm 3mm;
}
.stat strong {
  display: block; font-family: var(--font-display); font-size: 14pt;
  font-weight: 500; color: var(--charcoal); line-height: 1.1; margin-bottom: 1mm;
  text-transform: lowercase;
}
.stat span { font-size: 6.5pt; color: var(--muted); letter-spacing: 0.04em; }
.intro-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm;
  margin-top: 5mm; height: 42mm;
}
.intro-strip div { border-radius: 1.5mm; overflow: hidden; background: var(--studio); }
.intro-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PRODUCT HERO ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5mm;
  flex: 1; min-height: 0;
}
.hero__media {
  background: var(--studio); border-radius: 2mm; overflow: hidden; min-height: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: contain; }
.hero__media--cover img { object-fit: cover; }
.hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 2.5mm;
}
.hero__copy h3 {
  font-family: var(--font-display); font-size: 18pt; font-weight: 500;
  text-transform: lowercase; line-height: 1.1; color: var(--charcoal);
}
.badge {
  align-self: flex-start; background: var(--cream); color: var(--charcoal);
  font-size: 5.5pt; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.2mm 2.8mm; border-radius: 999px;
}
.desc { font-size: 8pt; color: var(--muted); line-height: 1.5; }
.note { font-size: 6.5pt; color: var(--muted); }

.prices { width: 100%; border-collapse: collapse; font-size: 7.5pt; }
.prices th {
  text-align: left; font-size: 5.5pt; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 1.5mm 2mm;
  border-bottom: 0.4pt solid var(--sand);
}
.prices td {
  padding: 2.2mm 2mm; border-bottom: 0.4pt solid rgba(153,214,238,0.4); vertical-align: top;
}
.prices .amt { font-weight: 500; white-space: nowrap; }
.prices .hi { color: var(--accent-deep); }

/* ---------- DENSE PRODUCT GRIDS ---------- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; flex: 1; min-height: 0; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; flex: 1; min-height: 0; }
.g4 { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3mm; flex: 1; min-height: 0; }
.g6 { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3mm; flex: 1; min-height: 0; }

.item {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--white); border: 0.4pt solid rgba(153,214,238,0.55);
  border-radius: 2mm; overflow: hidden;
}
.item__img {
  flex: 1; min-height: 0; background: var(--studio); position: relative;
}
.item__img img { width: 100%; height: 100%; object-fit: contain; }
.item__img--cover img { object-fit: cover; }
.item__meta {
  padding: 2.8mm 3mm 3mm; background: var(--white);
  border-top: 0.4pt solid rgba(153,214,238,0.35);
}
.item__cat {
  font-size: 5pt; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 0.6mm;
}
.item__name {
  font-family: var(--font-display); font-size: 11pt; font-weight: 500;
  text-transform: lowercase; line-height: 1.1; color: var(--charcoal);
}
.item__spec { font-size: 6.5pt; color: var(--muted); margin-top: 0.8mm; }
.item__price {
  margin-top: 1.5mm; font-size: 9.5pt; font-weight: 500; color: var(--charcoal);
}
.item__price span { font-size: 6.5pt; font-weight: 400; color: var(--muted); }
.item__bulk { font-size: 6pt; color: var(--accent-deep); margin-top: 0.5mm; }

/* Feature row: product + lifestyle */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm;
  flex: 1; min-height: 0; margin-bottom: 3.5mm;
}
.feature__shot {
  border-radius: 2mm; overflow: hidden; background: var(--studio); min-height: 0;
}
.feature__shot img { width: 100%; height: 100%; object-fit: cover; }

/* Lite iron trio with prices under */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm;
  flex: 1; min-height: 0; margin-bottom: 4mm;
}
.trio .item__img { flex: 1.4; }

/* Bleed lifestyle */
.page--bleed { background: #000; color: #fff; }
.bleed-img { position: absolute; inset: 0; }
.bleed-img img { width: 100%; height: 100%; object-fit: cover; }
.bleed-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.7) 100%);
}
.bleed-copy {
  position: relative; z-index: 1; margin-top: auto; padding: 16mm 14mm 18mm;
}
.bleed-copy h2 {
  font-family: var(--font-display); font-size: 26pt; font-weight: 500;
  text-transform: lowercase; line-height: 1.12; color: #fff; margin-bottom: 3mm;
}
.bleed-copy h2 em { font-style: italic; color: var(--sand); }
.bleed-copy p {
  font-size: 7.5pt; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(229,244,250,0.85);
}

/* Moments gallery — filled */
.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2.5mm; flex: 1; min-height: 0;
}
.gallery__cell { border-radius: 1.8mm; overflow: hidden; background: var(--studio); min-height: 0; }
.gallery__cell--lg { grid-row: 1 / span 2; }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.page--contact {
  background:
    radial-gradient(ellipse at 85% 8%, rgba(153,214,238,0.4) 0%, transparent 45%),
    linear-gradient(180deg, var(--ivory), var(--cream));
}
.contact {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: stretch;
}
.contact__photo { border-radius: 2.5mm; overflow: hidden; min-height: 0; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact__info {
  display: flex; flex-direction: column; justify-content: center;
}
.contact-logo {
  font-family: var(--font-display); font-size: 28pt; letter-spacing: 0.16em;
  color: var(--charcoal); margin: 2mm 0 1mm;
}
.contact-logo span { color: var(--accent); }
.contact-year { font-size: 7.5pt; letter-spacing: 0.35em; color: var(--muted); margin-bottom: 7mm; }
.contact-list { list-style: none; font-size: 10pt; line-height: 1.85; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list strong { font-weight: 500; }
.contact-cta {
  margin-top: 7mm; font-family: var(--font-display); font-style: italic;
  font-size: 12pt; color: var(--accent-deep); line-height: 1.3;
}
.contact-area {
  margin-top: 3mm; font-size: 6.5pt; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* Donut stacked layout */
.stack-top {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4mm;
  height: 112mm; margin-bottom: 3.5mm; flex: 0 0 auto;
}
.stack-top .hero__media { height: 100%; }
.stack-bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm;
  flex: 1; min-height: 0;
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff; }
  .screen-bar { display: none !important; }
  .catalogue { padding: 0; gap: 0; }
  .page {
    box-shadow: none;
    page-break-after: always; break-after: page;
    width: var(--page-w); height: var(--page-h);
  }
  .page:last-child { page-break-after: auto; break-after: auto; }
}

@media screen and (max-width: 820px) {
  .catalogue { padding-top: 4rem; }
  .page { width: min(100%, 210mm); height: auto; min-height: 90vh; }
}
