/* =========================================================
   SMALL TOWN MAHJ — CONTENT TILE SYSTEM
   Cobalt is the table. Ivory, soft blue, sage, and coral pieces
   sit on top of the field like arranged Mahjong objects.
   ========================================================= */

:root {
  --tile-field: #083477;
  --tile-ivory: #fff9ee;
  --tile-ivory-deep: #f4ecde;
  --tile-blue: #174b8f;
  --tile-blue-dark: #0a356f;
  --tile-blue-soft: #dfeaf6;
  --tile-blue-soft-2: #edf4fb;
  --tile-sage: #dfe7d7;
  --tile-sage-deep: #b6c8ac;
  --tile-coral: #de7667;
  --tile-coral-soft: #f1b2a7;
  --tile-ink: #183b67;
  --tile-muted: #64758a;
  --tile-gap-xs: 14px;
  --tile-gap-sm: 18px;
  --tile-gap-md: 28px;
  --tile-gap-lg: 42px;
  --tile-gap-xl: 52px;
  --tile-radius-lg: 20px;
  --tile-radius-md: 14px;
}

.home-tile-flow {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 4rem;
  background: transparent;
}

.home-piece {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(18px, 3.5vw, 46px);
}

.home-piece + .home-piece {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.tile-kicker {
  margin: 0 0 .72rem;
  color: var(--tile-blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.field-heading {
  width: min(620px, 100%);
  margin: 0 0 1.8rem;
  color: var(--tile-ivory);
}

.field-heading .tile-kicker {
  color: #bcd1ea;
}

.field-heading h2 {
  max-width: 9em;
  margin: 0;
  color: var(--tile-ivory);
  font-size: clamp(2.7rem, 5.5vw, 5.25rem);
  line-height: .96;
}

.field-heading--centered {
  margin-inline: auto;
  text-align: center;
}

.field-heading--centered h2 {
  margin-inline: auto;
}

.content-tile {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(23,75,143,.82);
  border-radius: var(--tile-radius-lg);
  box-shadow:
    0 7px 0 rgba(181,164,140,.92),
    0 13px 0 rgba(3,31,73,.24),
    0 25px 42px rgba(0,12,42,.22),
    inset 0 0 0 6px rgba(255,255,255,.34);
  color: var(--tile-ink);
  padding: clamp(1.7rem, 4vw, 3.25rem);
}

.content-tile::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(23,75,143,.18);
  border-radius: calc(var(--tile-radius-lg) - 7px);
  content: '';
  pointer-events: none;
}

.content-tile h2,
.content-tile h3,
.content-tile p,
.content-tile a,
.content-tile ul {
  position: relative;
  z-index: 2;
}

.content-tile h2,
.content-tile h3 {
  color: var(--tile-blue-dark);
}

.content-tile h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: .94;
}

.content-tile h3 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.content-tile > p:not(.tile-kicker) {
  max-width: 42rem;
  margin: 0;
  color: #53657a;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.68;
}

.content-tile--porcelain {
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.95), transparent 17rem),
    linear-gradient(145deg, #fffdf8 0%, var(--tile-ivory) 56%, #f2e9dc 100%);
}

.content-tile--soft-blue {
  border-color: rgba(50,91,145,.72);
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.72), transparent 15rem),
    linear-gradient(145deg, var(--tile-blue-soft-2), var(--tile-blue-soft));
}

.content-tile--sage {
  border-color: rgba(70,108,76,.42);
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.62), transparent 14rem),
    linear-gradient(145deg, #edf1e8, var(--tile-sage));
  box-shadow:
    0 7px 0 rgba(169,182,153,.88),
    0 13px 0 rgba(3,31,73,.20),
    0 25px 42px rgba(0,12,42,.18),
    inset 0 0 0 6px rgba(255,255,255,.32);
}

.content-tile--sage::before {
  border-color: rgba(74,112,79,.16);
}

.content-tile__botanical,
.invitation-flower {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: .55rem;
  color: var(--tile-coral);
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  opacity: .22;
  transform: rotate(-10deg);
}

.content-tile__botanical--left {
  right: auto;
  left: .7rem;
  bottom: .2rem;
  color: #6f9073;
}

.content-tile--statement {
  width: min(980px, 86%);
  margin: 0 auto;
  text-align: center;
}

.content-tile--statement h2,
.content-tile--statement > p:not(.tile-kicker) {
  margin-inline: auto;
}

.gathering-tile-stack {
  display: grid;
  gap: 1.35rem;
  width: min(940px, 100%);
  margin: 0 auto;
}

.content-tile--offset-left {
  width: 78%;
  justify-self: start;
}

.content-tile--offset-right {
  width: 72%;
  justify-self: end;
}

.content-tile--offset-left-wide {
  width: 82%;
  justify-self: start;
}

.tile-symbol {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  color: rgba(23,75,143,.16);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
}

.tile-symbol--coral {
  color: rgba(222,118,103,.32);
}

.field-link,
.tile-text-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--tile-ivory);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.field-link {
  margin: 1.7rem 0 0 2%;
  border-bottom: 1px solid rgba(255,249,238,.35);
  padding-bottom: .35rem;
}

.tile-text-link {
  margin-top: 1.4rem;
  color: var(--tile-blue);
  border-bottom: 1px solid rgba(23,75,143,.30);
  padding-bottom: .3rem;
}

.about-object-pair {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  grid-template-columns: .75fr 1.25fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.photo-tile {
  position: relative;
  margin: 0;
  border: 2px solid rgba(23,75,143,.78);
  border-radius: 18px;
  background: var(--tile-ivory);
  box-shadow:
    0 7px 0 rgba(181,164,140,.9),
    0 14px 0 rgba(3,31,73,.23),
    0 25px 42px rgba(0,12,42,.22);
  padding: 10px 10px 14px;
}

.photo-tile__surface {
  position: relative;
  display: grid;
  min-height: 380px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(23,75,143,.30);
  border-radius: 11px;
  background:
    radial-gradient(circle at 25% 20%, rgba(239,178,167,.46), transparent 22%),
    radial-gradient(circle at 78% 75%, rgba(182,200,172,.48), transparent 26%),
    linear-gradient(145deg, #e9f0f8, #cfddeb 52%, #f7eee3);
}

.photo-tile__flower {
  color: var(--tile-coral);
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 8rem);
  opacity: .9;
}

.photo-tile__label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: var(--tile-blue-dark);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.photo-tile figcaption {
  margin-top: .75rem;
  color: var(--tile-blue-dark);
  font-family: var(--serif);
  font-size: .9rem;
  font-style: italic;
  text-align: center;
}

.content-tile--story {
  transform: translateY(22px);
}

.step-piece-stack {
  display: grid;
  gap: 1rem;
  width: min(900px, 100%);
  margin: 0 auto;
}

.mahjong-step {
  position: relative;
  display: grid;
  width: 76%;
  min-height: 130px;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 1rem;
  border: 2px solid rgba(23,75,143,.75);
  border-radius: 13px;
  background: linear-gradient(180deg, #fffdf8, #f4ecdf);
  box-shadow:
    0 8px 0 #c3b39d,
    0 13px 0 rgba(3,31,73,.24),
    0 19px 28px rgba(0,12,42,.18),
    inset 0 0 0 4px rgba(255,255,255,.68);
  color: var(--tile-ink);
  padding: 1.2rem 1.35rem;
}

.mahjong-step::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(23,75,143,.14);
  border-radius: 8px;
  content: '';
  pointer-events: none;
}

.mahjong-step--left { justify-self: start; }
.mahjong-step--right { justify-self: end; }

.mahjong-step__number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(23,75,143,.24);
  border-radius: 9px;
  background: #edf4fb;
  color: var(--tile-blue);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.mahjong-step div {
  position: relative;
  z-index: 2;
}

.mahjong-step h3 {
  margin: 0 0 .3rem;
  color: var(--tile-blue-dark);
  font-size: clamp(1.65rem, 2.3vw, 2.5rem);
  line-height: 1;
}

.mahjong-step p {
  margin: 0;
  color: var(--tile-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.content-tile--reassurance {
  width: min(820px, 86%);
  margin: 0 auto;
  text-align: center;
}

.content-tile--reassurance > p:not(.tile-kicker) {
  margin-inline: auto;
}

.content-tile--ledger {
  width: min(920px, 90%);
  margin: 0 auto;
}

.ledger-heading {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.porcelain-ledger {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.porcelain-ledger li {
  display: grid;
  grid-template-columns: 34px minmax(120px,.65fr) 1fr;
  align-items: center;
  gap: .8rem;
  border-top: 1px solid rgba(23,75,143,.16);
  padding: 1rem 0;
}

.porcelain-ledger li:first-child {
  border-top: 0;
}

.porcelain-ledger li > span {
  color: var(--tile-coral);
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: center;
}

.porcelain-ledger strong {
  color: var(--tile-blue-dark);
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.porcelain-ledger small {
  color: var(--tile-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.photo-tile--wide {
  width: min(880px, 86%);
  margin: 0 auto;
  transform: rotate(-.6deg);
}

.photo-tile__surface--table {
  min-height: 430px;
  background:
    radial-gradient(circle at 22% 24%, rgba(239,178,167,.35), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(182,200,172,.34), transparent 20%),
    linear-gradient(145deg, #174b8f, #0d3f83 58%, #082f67);
}

.atmosphere-piece {
  position: absolute;
  display: grid;
  min-width: 72px;
  min-height: 88px;
  place-items: center;
  border: 1px solid #7897bf;
  border-radius: 9px;
  background: #fff9ee;
  box-shadow: 0 6px 0 #c3b39d, 0 11px 16px rgba(0,18,49,.25);
  color: var(--tile-blue);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.atmosphere-piece--one { left: 18%; top: 24%; transform: rotate(-8deg); }
.atmosphere-piece--two { right: 23%; top: 18%; color: var(--tile-coral); transform: rotate(7deg); }
.atmosphere-piece--three { left: 42%; bottom: 20%; font-size: 1rem; letter-spacing: .2em; transform: rotate(3deg); }

.photo-tile__surface--table .photo-tile__label {
  color: rgba(255,249,238,.74);
}

.content-tile--invitation {
  width: min(900px, 90%);
  margin: 0 auto;
  text-align: center;
}

.content-tile--invitation > p:not(.tile-kicker) {
  margin-inline: auto;
}

.invitation-flower {
  right: .8rem;
  bottom: .2rem;
}

.physical-cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 54px;
  margin-top: 1.6rem;
  border: 2px solid rgba(23,75,143,.72);
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbfe, #dce8f4);
  box-shadow: 0 5px 0 #9eb4ce, 0 9px 0 rgba(3,31,73,.20);
  color: var(--tile-blue-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  padding: 0 1.4rem;
  text-decoration: none;
  text-transform: uppercase;
}

.home-piece--signoff {
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: rgba(255,249,238,.82);
  text-align: center;
}

.signoff-piece {
  display: grid;
  width: 52px;
  aspect-ratio: .82;
  place-items: center;
  border: 1px solid rgba(23,75,143,.65);
  border-radius: 7px;
  background: #fff9ee;
  box-shadow: 0 5px 0 #c3b39d, 0 10px 18px rgba(0,18,49,.22);
  color: var(--tile-coral);
  font-family: var(--serif);
  font-size: 1.75rem;
  transform: rotate(-4deg);
}

.home-piece--signoff p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------
   MOBILE — the primary art direction target
   --------------------------------------------------------- */
@media (max-width: 680px) {
  .home-tile-flow {
    padding-bottom: 3.1rem;
  }

  .home-piece {
    padding-inline: 18px;
  }

  .home-piece + .home-piece {
    margin-top: 44px;
  }

  .content-tile {
    border-width: 1.5px;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow:
      0 5px 0 rgba(181,164,140,.92),
      0 9px 0 rgba(3,31,73,.22),
      0 18px 30px rgba(0,12,42,.19),
      inset 0 0 0 4px rgba(255,255,255,.32);
  }

  .content-tile::before {
    inset: 6px;
    border-radius: 12px;
  }

  .content-tile h2 {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
  }

  .content-tile h3 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .content-tile > p:not(.tile-kicker) {
    font-size: .98rem;
    line-height: 1.6;
  }

  .content-tile--statement {
    width: 90%;
    padding: 28px 21px;
  }

  .content-tile--statement h2 {
    font-size: clamp(2.45rem, 11.5vw, 3.4rem);
  }

  .field-heading {
    width: 90%;
    margin: 0 auto 22px;
  }

  .field-heading h2 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .gathering-tile-stack {
    gap: 16px;
  }

  .content-tile--offset-left { width: 82%; }
  .content-tile--offset-right { width: 76%; }
  .content-tile--offset-left-wide { width: 84%; }

  .tile-symbol {
    top: .75rem;
    right: .8rem;
    font-size: 3.1rem;
  }

  .field-link {
    margin-top: 20px;
    margin-left: 8%;
  }

  .about-object-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-tile--host {
    width: 78%;
    justify-self: end;
    transform: rotate(1deg);
  }

  .photo-tile__surface {
    min-height: 290px;
  }

  .content-tile--story {
    width: 90%;
    justify-self: start;
    transform: none;
  }

  .step-piece-stack {
    gap: 14px;
  }

  .mahjong-step {
    width: 80%;
    min-height: 116px;
    grid-template-columns: 58px 1fr;
    gap: .85rem;
    border-width: 1.5px;
    padding: 1rem;
  }

  .mahjong-step__number {
    width: 52px;
    font-size: 1.4rem;
  }

  .mahjong-step h3 {
    font-size: 1.72rem;
  }

  .mahjong-step p {
    font-size: .87rem;
  }

  .content-tile--reassurance {
    width: 88%;
  }

  .content-tile--ledger {
    width: 90%;
  }

  .porcelain-ledger li {
    grid-template-columns: 30px 1fr;
    gap: .4rem .7rem;
    padding: .9rem 0;
  }

  .porcelain-ledger small {
    grid-column: 2;
    font-size: .84rem;
  }

  .photo-tile--wide {
    width: 88%;
  }

  .photo-tile__surface--table {
    min-height: 320px;
  }

  .atmosphere-piece {
    min-width: 58px;
    min-height: 72px;
    font-size: 1.65rem;
  }

  .atmosphere-piece--one { left: 11%; top: 26%; }
  .atmosphere-piece--two { right: 12%; top: 17%; }
  .atmosphere-piece--three { left: 38%; bottom: 19%; font-size: .78rem; }

  .content-tile--invitation {
    width: 92%;
    padding-block: 28px;
  }

  .physical-cta {
    min-height: 50px;
    margin-top: 1.4rem;
  }

  .home-piece--signoff {
    margin-top: 36px !important;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .home-piece {
    padding-inline: 32px;
  }

  .about-object-pair {
    grid-template-columns: .8fr 1.2fr;
  }
}
