/* =========================================================================
   style.css — the moodboard itself (index.html).

   Laid out fluidly rather than at fixed breakpoints: type and spacing scale
   with clamp(), grids reflow with auto-fit, and photos are sized by aspect
   ratio instead of pixel heights. Two breakpoints remain, for the things
   that genuinely need a different shape on a phone — the section nav
   becomes a menu, and the toolbar buttons drop to icons.
   ========================================================================= */

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

:root {
  --ivory: #faf7f2;
  --paper: #fffdf9;
  --line: #e4ddd0;
  --ink: #2c2822;
  --ink-soft: #5b5348;
  --sage: #77906a;
  --sage-dark: #4c6b45;
  --gold: #c69a4e;
  --accent-btn: #b98a6a;

  /* Real fallbacks: the Google Fonts request can fail (offline, blocked,
     or a slow network) and the page must still look deliberate. */
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(18px, 5vw, 64px);
  --page-max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stops iOS Safari from inflating type in landscape. */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  /* Long Indonesian compounds in narrow columns would otherwise overflow. */
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }

.serif { font-family: var(--font-display); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  flex-wrap: wrap;
}

nav#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

nav#site-nav a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.15s;
}
nav#site-nav a:hover { color: var(--sage-dark); }
nav#site-nav a.active { color: var(--sage-dark); font-weight: 500; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 13px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

.topbar-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent-btn); color: var(--accent-btn); }
.btn.primary { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn.primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }

/* --------------------------------------------------------------- hero */

.hero {
  padding: clamp(40px, 8vw, 100px) var(--gutter) clamp(34px, 6vw, 72px);
  max-width: var(--page-max);
  margin: 0 auto;
}
.eyebrow {
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-intro {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: clamp(26px, 4vw, 36px);
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 26px);
  margin-bottom: clamp(30px, 5vw, 44px);
}
.palette-chip { display: flex; align-items: center; gap: 10px; }
.palette-dot {
  width: clamp(22px, 5vw, 26px);
  height: clamp(22px, 5vw, 26px);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.palette-chip span { font-size: clamp(12.5px, 2.6vw, 13.5px); color: var(--ink-soft); }

/* align-items keeps the image from being stretched to full width by the
   figure's flex layout, which would defeat the sizing below. */
.hero-image-wrap .gallery-item { gap: 10px; align-items: center; }

/* The hero is one feature image, not a grid cell: it keeps its own shape and
   is never cropped. `aspect-ratio: auto` undoes the 3:4 that
   .gallery-grid siblings use — the renderer gives the hero the same
   .gallery-item class — and letting width and height both stay auto inside
   a max-width/max-height box means the element shrinks to the photo. So a
   wide photo is never sliced down to a portrait crop, and a tall one is
   bounded without grey bars appearing around either. */
/* Two class names, not one: the generic `.gallery-item img` rules further
   down would otherwise tie on specificity and win on source order, which is
   exactly how the hero ended up cropped to a portrait box on phones. */
.hero-image-wrap .gallery-item img {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}
.hero-image-wrap .img-placeholder {
  width: 100%;
  height: clamp(220px, 44vw, 440px);
  border-radius: 4px;
}

/* ----------------------------------------------------------- sections */

.section-tint { background: #eaf0e6; }
.section-inner {
  padding: clamp(40px, 7vw, 92px) var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  scroll-margin-top: 76px;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-number {
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(16px, 3.5vw, 18px);
  flex-shrink: 0;
}
.section-badge {
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-intro {
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
  margin-bottom: clamp(24px, 4vw, 30px);
  /* Section intros are edited as multi-line text; keep the line breaks. */
  white-space: pre-line;
}

.block { margin-bottom: clamp(26px, 4vw, 34px); }
.block:last-child { margin-bottom: 0; }
.block-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 3vw, 21px);
  margin-bottom: 12px;
}

.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 9px; max-width: 68ch; }
.bullet-list li {
  display: flex;
  gap: 10px;
  font-size: clamp(14.5px, 2.9vw, 15.5px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.bullet-dash { color: var(--gold); flex-shrink: 0; }

.paragraph-block p {
  font-size: clamp(14.5px, 2.9vw, 15.5px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
  white-space: pre-line;
}

/* --------------------------------------------------------------- cards */

.cards-grid,
.style-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.info-card,
.style-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 24px);
}
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 14px;
  display: block;
  background: #efe9dd;
}
.card-mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 84px), 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.mini-gallery-item { display: flex; flex-direction: column; gap: 3px; }
.mini-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #efe9dd;
  border-radius: 3px;
  display: block;
}
.mini-gallery-item figcaption { font-size: 10.5px; line-height: 1.3; color: var(--ink-soft); text-align: center; }

.info-card-title,
.style-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 3vw, 18px);
  margin-bottom: 8px;
}
.info-card-desc,
.style-card-desc { font-size: clamp(14px, 2.8vw, 15px); line-height: 1.6; color: var(--ink-soft); }
.style-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.style-card-desc { margin-bottom: 10px; }
.style-card-tag { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage-dark); }
.featured-badge {
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--gold);
  color: #26210f;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ------------------------------------------------------------- gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.gallery-item { display: flex; flex-direction: column; gap: 8px; }
.gallery-item img {
  width: 100%;
  border-radius: 4px;
  display: block;
  background: #efe9dd;
}
/* Scoped to the grid on purpose. A uniform crop is what keeps rows of photos
   aligned, but it must not reach the hero image above, which is the same
   markup outside a grid. */
.gallery-grid .gallery-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery-item figcaption { font-size: clamp(12.5px, 2.6vw, 13px); color: var(--ink-soft); text-align: center; }

.img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #efe9dd, #efe9dd 10px, #e8e1d2 10px, #e8e1d2 20px);
  border: 1px dashed #cabfa8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9c9078;
  font-size: 24px;
}
.img-placeholder-label { font-size: 11.5px; max-width: 80%; text-align: center; line-height: 1.4; }

/* ------------------------------------------------------------- swatches */

.swatch-list { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.swatch-row { display: flex; align-items: center; gap: 12px; font-size: clamp(13.5px, 2.8vw, 14.5px); color: var(--ink-soft); }
.swatch-dot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, 0.08); }

/* ------------------------------------------------------------- shotlist */

.shotlist-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--accent-btn);
  color: var(--accent-btn);
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.shotlist-closed-msg { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.chevron { display: inline-block; transition: transform 0.2s; }
.shotlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.shot-group-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 22px); }
.shot-group-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.shot-item-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.shot-item-list li { font-size: clamp(13.5px, 2.8vw, 14px); line-height: 1.55; color: var(--ink-soft); }

/* --------------------------------------------------------------- footer */

footer { padding: 40px var(--gutter) 70px; max-width: var(--page-max); margin: 0 auto; }
#footer-note { font-size: 13.5px; line-height: 1.6; color: #8a8371; max-width: 64ch; }

/* ---------------------------------------------------------- load error */

.load-error {
  max-width: 560px;
  margin: clamp(40px, 10vw, 90px) auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.load-error h2 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.load-error-msg { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 14px; }
.load-error-hint { font-size: 13.5px; line-height: 1.6; color: #8a8371; }

/* --------------------------------------------------------- breakpoints */

@media (max-width: 860px) {
  .topbar-inner { gap: 10px; }

  .nav-toggle { display: inline-flex; }

  nav#site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 6px;
  }
  nav#site-nav.open { display: flex; }
  nav#site-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: 0.1em;
  }
  nav#site-nav a:last-child { border-bottom: none; }

  .section-inner { scroll-margin-top: 68px; }
}

@media (max-width: 560px) {
  /* Icon-only toolbar: the labels are what push the header onto two rows. */
  .btn-text { display: none; }
  .topbar-actions .btn { padding: 9px 13px; min-width: 44px; font-size: 15px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 9px 12px; min-width: 44px; justify-content: center; }

  .gallery-grid,
  .cards-grid,
  .style-cards-grid,
  .shotlist-grid { gap: 14px; }

  /* Slightly squarer crops so two photos per row stay legible on a phone.
     Grid only — the hero keeps its own proportions at every width. */
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
  .gallery-grid .gallery-item img,
  .gallery-grid .img-placeholder { aspect-ratio: 4 / 5; }
}
