/* ============================================================
   Gilded Quay — Layout, sections, grid, responsive
   ============================================================ */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.wrap--narrow {
  max-width: 720px;
}

section {
  padding: var(--s9) 0;
  position: relative;
}

/* Tighten the welcome → details transition specifically */
#welcome { padding-bottom: var(--s7); }
#details { padding-top: var(--s7); }

.sec-head {
  max-width: 720px;
  margin: 0 auto var(--s8);
  text-align: center;
}

.sec-head .eyebrow {
  display: block;
  margin-bottom: var(--s4);
}

.sec-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--olive);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sec-head h2 {
    white-space: normal;
    font-size: clamp(1.7rem, 6.6vw, 2.4rem);
    max-width: 22ch;
    margin-inline: auto;
  }
}

.sec-head .subhead {
  margin-top: var(--s5);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-head p {
  margin-top: var(--s5);
  color: var(--sepia);
}

/* ---------- divider rules ---------- */

.divline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  margin: 0;
}

.deco-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  color: var(--gold);
  margin: var(--s7) auto;
}

.deco-rule .line {
  height: 1px;
  width: min(180px, 22vw);
  background: linear-gradient(90deg, transparent, currentColor);
}

.deco-rule .line.r {
  background: linear-gradient(90deg, currentColor, transparent);
}

.deco-rule svg { flex: 0 0 auto; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .wrap { padding: 0 var(--s5); }
  section { padding: var(--s8) 0; }
  .sec-head { margin-bottom: var(--s7); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 var(--s4); }
  section { padding: var(--s7) 0; }
}
