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

:root{
  --teal:#3D8B6E;
  --teal-light:#5AA88B;
  --teal-dark:#2A6B52;
  --teal-mist:#E8F4EF;
  --cream:#FAF9F7;
  --paper:#F5F1EB;
  --charcoal:#1F2937;
  --slate:#5E676F;
  --ink:#22323A;
  --gold:#B8974B;
  --gold-soft:#D6C08A;
  --frame-shadow:0 18px 42px rgba(24,32,28,0.16);
  --panel-shadow:0 18px 42px rgba(31,41,55,0.09);
}

body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(61,139,110,0.11), transparent 28%),
    radial-gradient(circle at bottom right, rgba(184,151,75,0.08), transparent 24%),
    #ece9e5;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:36px 18px 48px;
  font-family:'Inter',sans-serif;
  color:var(--charcoal);
}

.page-wrap{
  width:min(100%,420px);
}

.ig-frame{
  width:100%;
  background:#fff;
  border-radius:18px;
  box-shadow:var(--frame-shadow);
  overflow:hidden;
}

.ig-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid rgba(31,41,55,0.06);
  background:rgba(255,255,255,0.98);
}

.ig-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--teal);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Playfair Display',serif;
  font-size:15px;
  font-weight:600;
}

.ig-handle{
  font-size:13px;
  font-weight:600;
  color:#262626;
}

.ig-subtitle{
  font-size:11px;
  color:#8e8e8e;
}

.carousel-viewport{
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  position:relative;
  cursor:grab;
}

.carousel-viewport:active{cursor:grabbing;}

.carousel-track{
  display:flex;
  height:100%;
  transition:transform .35s cubic-bezier(.25,.46,.45,.94);
}

.slide{
  width:100%;
  min-width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
}

.surface-cream{
  background:
    radial-gradient(circle at 12% 16%, rgba(61,139,110,0.08), transparent 18%),
    radial-gradient(circle at 84% 8%, rgba(184,151,75,0.09), transparent 20%),
    linear-gradient(180deg,#fbfaf7 0%,#f4efe8 100%);
}

.surface-mist{
  background:
    radial-gradient(circle at 14% 84%, rgba(61,139,110,0.13), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(61,139,110,0.10), transparent 24%),
    linear-gradient(180deg,#f6fbf8 0%, #ebf7f2 100%);
}

.surface-paper{
  background:
    radial-gradient(circle at 0% 88%, rgba(61,139,110,0.08), transparent 20%),
    radial-gradient(circle at 100% 0%, rgba(184,151,75,0.10), transparent 22%),
    linear-gradient(180deg,#f8f6f2 0%, #efe9e2 100%);
}

.surface-ink{
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 20%),
    radial-gradient(circle at bottom left, rgba(90,168,139,0.14), transparent 28%),
    linear-gradient(180deg,#28353b 0%, #1F2937 100%);
  color:#fff;
}

.surface-wash{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.30), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(180deg,#3a7e63 0%, #5FA78B 100%);
  color:#fff;
}

.match-watermark{
  position:absolute;
  inset:auto auto 18% 50%;
  transform:translateX(-50%);
  font-family:'Playfair Display',serif;
  font-size:218px;
  line-height:1;
  color:rgba(61,139,110,0.035);
  pointer-events:none;
}

.surface-ink .match-watermark,
.surface-wash .match-watermark{
  color:rgba(255,255,255,0.045);
}

.match-bubble{
  position:absolute;
  border-radius:50%;
  background:rgba(61,139,110,0.08);
  filter:blur(.2px);
}

.match-bubble.gold{background:rgba(184,151,75,0.10);}

.match-content{
  position:relative;
  z-index:2;
  height:100%;
  padding:30px 28px 82px;
  display:flex;
  flex-direction:column;
}

.match-cover{
  display:grid;
  gap:16px;
  align-content:start;
  min-height:100%;
}

.match-overline{
  display:inline-block;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:10px;
  font-weight:700;
  color:var(--teal);
}

.surface-ink .match-overline{
  color:#CDEBDD;
}

.surface-wash .match-overline{
  color:rgba(255,255,255,0.78);
}

.match-cover h1,
.match-copy h2,
.match-center h2{
  font-family:'Playfair Display',serif;
  font-weight:600;
  letter-spacing:-0.04em;
  line-height:.98;
}

.match-cover h1{
  margin-top:12px;
  font-size:52px;
  max-width:10ch;
}

.match-copy h2,
.match-center h2{
  margin-top:10px;
  font-size:30px;
  line-height:1.02;
}

.match-lede,
.match-copy p,
.match-quote small,
.match-caption-note{
  font-size:14px;
  line-height:1.56;
}

.match-lede{
  margin-top:14px;
  max-width:31ch;
  color:#615a54;
}

.surface-ink .match-lede,
.surface-wash .match-lede,
.surface-ink .match-copy p,
.surface-wash .match-copy p{
  color:rgba(255,255,255,0.82);
}

.match-artwrap{
  margin-top:auto;
  align-self:center;
  width:min(100%,310px);
}

.match-layout{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:14px;
  align-items:center;
  min-height:100%;
}

.match-layout.reverse{
  grid-template-columns:.96fr 1.04fr;
}

.match-card-grid{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.match-card{
  padding:14px 14px 13px;
  border-radius:20px;
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(61,139,110,0.12);
  box-shadow:var(--panel-shadow);
}

.surface-mist .match-card{
  background:rgba(255,255,255,0.88);
}

.surface-ink .match-card{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.10);
  box-shadow:none;
}

.surface-wash .match-card{
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.12);
  box-shadow:none;
}

.match-card strong{
  display:block;
  font-size:13px;
  line-height:1.35;
}

.match-card span{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.46;
  color:#6A625C;
}

.surface-ink .match-card span,
.surface-wash .match-card span{
  color:rgba(255,255,255,0.70);
}

.match-steps{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.match-step{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:start;
}

.match-step-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(61,139,110,0.11);
  color:var(--teal-dark);
  font-family:'Playfair Display',serif;
  font-size:18px;
}

.surface-ink .match-step-num,
.surface-wash .match-step-num{
  background:rgba(255,255,255,0.12);
  color:#fff;
}

.match-step strong{
  display:block;
  font-size:13px;
  line-height:1.35;
}

.match-step span{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.46;
  color:#6A625C;
}

.surface-ink .match-step span,
.surface-wash .match-step span{
  color:rgba(255,255,255,0.74);
}

.match-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.match-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:600;
  color:var(--teal-dark);
  background:rgba(61,139,110,0.08);
  border:1px solid rgba(61,139,110,0.14);
}

.surface-ink .match-pill,
.surface-wash .match-pill{
  color:#F4FFFA;
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.14);
}

.match-quote{
  margin-top:14px;
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,255,255,0.78);
  border:1px solid rgba(61,139,110,0.12);
  box-shadow:var(--panel-shadow);
}

.surface-ink .match-quote,
.surface-wash .match-quote{
  background:rgba(255,255,255,0.09);
  border-color:rgba(255,255,255,0.14);
  box-shadow:none;
}

.match-quote p{
  font-family:'Playfair Display',serif;
  font-size:24px;
  line-height:1.14;
  letter-spacing:-0.03em;
}

.match-quote small{
  display:block;
  margin-top:8px;
  color:#766E67;
}

.surface-ink .match-quote small,
.surface-wash .match-quote small{
  color:rgba(255,255,255,0.68);
}

.match-center{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.match-center .match-overline{margin-bottom:4px;}

.match-center p{
  margin-top:12px;
  max-width:29ch;
  font-size:14px;
  line-height:1.6;
}

.match-save{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
  padding:12px 18px;
  border-radius:999px;
  background:#fff;
  color:var(--teal-dark);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  box-shadow:0 16px 32px rgba(20,32,26,0.16);
}

.match-center .match-pill-row{
  justify-content:center;
}

.match-brandline{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
}

.match-brandline img{
  height:19px;
  width:auto;
  opacity:.88;
}

.surface-ink .match-brandline img,
.surface-wash .match-brandline img{
  filter:brightness(0) invert(1) opacity(.92);
}

.match-art-shell{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,0.52);
  border:1px solid rgba(61,139,110,0.10);
  box-shadow:var(--panel-shadow);
  backdrop-filter:blur(10px);
}

.surface-ink .match-art-shell,
.surface-wash .match-art-shell{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.12);
  box-shadow:none;
}

.match-art-shell svg,
.match-artwrap svg{
  width:100%;
  height:auto;
  display:block;
}

.progress-shell{
  position:absolute;
  left:22px;
  right:22px;
  bottom:16px;
  display:flex;
  align-items:center;
  gap:12px;
  z-index:4;
}

.progress-track{
  flex:1;
  height:4px;
  border-radius:999px;
  background:rgba(31,41,55,0.12);
  overflow:hidden;
}

.surface-ink .progress-track,
.surface-wash .progress-track{
  background:rgba(255,255,255,0.18);
}

.progress-fill{
  height:100%;
  background:var(--teal);
  border-radius:999px;
}

.surface-wash .progress-fill{background:#DFF6EC;}
.surface-ink .progress-fill{background:#8fd1b8;}

.progress-label{
  font-size:12px;
  line-height:1;
  color:#8b8b8b;
}

.surface-ink .progress-label,
.surface-wash .progress-label{
  color:rgba(255,255,255,0.72);
}

.swipe-arrow{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  z-index:4;
  color:rgba(31,41,55,0.24);
}

.surface-ink .swipe-arrow,
.surface-wash .swipe-arrow{
  color:rgba(255,255,255,0.44);
}

.swipe-arrow svg{
  width:100%;
  height:100%;
  stroke:currentColor;
}

.ig-dots{
  display:flex;
  justify-content:center;
  gap:5px;
  padding:10px 0;
}

.ig-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#DBDBDB;
}

.ig-dot.active{background:#3897F0;}

.ig-actions{
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 14px;
}

.ig-actions .right{margin-left:auto;}

.ig-caption{
  padding:0 14px 14px;
  font-size:13px;
  line-height:1.45;
  color:#262626;
}

.ig-caption strong{font-weight:600;}

.ig-caption .time{
  display:block;
  margin-top:6px;
  font-size:10px;
  color:#8e8e8e;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.site-index{
  width:min(100%,1120px);
  display:grid;
  gap:20px;
}

.index-hero{
  padding:28px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 36px rgba(0,0,0,0.08);
}

.index-hero h1{
  margin-top:10px;
  font-family:'Playfair Display',serif;
  font-size:42px;
  line-height:1.04;
  letter-spacing:-0.04em;
}

.index-hero p{
  margin-top:12px;
  max-width:64ch;
  font-size:16px;
  line-height:1.6;
  color:#645C56;
}

.index-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.index-card{
  display:grid;
  gap:14px;
  align-content:start;
  min-height:240px;
  padding:20px;
  border-radius:24px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 16px 32px rgba(0,0,0,0.07);
  transition:transform .18s ease, box-shadow .18s ease;
}

.index-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 38px rgba(0,0,0,0.11);
}

.index-chip{
  display:inline-flex;
  width:max-content;
  padding:7px 11px;
  border-radius:999px;
  background:var(--teal-mist);
  color:var(--teal-dark);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.index-card h2{
  font-family:'Playfair Display',serif;
  font-size:31px;
  line-height:1.02;
  letter-spacing:-0.035em;
}

.index-card p{
  font-size:14px;
  line-height:1.55;
  color:#655d57;
}

.index-preview{
  width:100%;
  aspect-ratio:4/5;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(61,139,110,0.10);
  background:
    radial-gradient(circle at top right, rgba(61,139,110,0.08), transparent 20%),
    linear-gradient(180deg,#fbfaf7 0%,#f2ede6 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
}

.index-preview svg{
  width:100%;
  height:100%;
  display:block;
}

@media (max-width:560px){
  body{padding:0;background:#fff;}
  .page-wrap{width:100%;}
  .ig-frame{
    max-width:none;
    border-radius:0;
    box-shadow:none;
  }
  .ig-header,
  .ig-actions,
  .ig-caption{padding-left:12px;padding-right:12px;}
  .match-content{padding:22px 20px 78px;}
  .match-layout,
  .match-layout.reverse{grid-template-columns:1fr;}
  .match-cover h1{font-size:42px;}
  .match-copy h2,
  .match-center h2{font-size:27px;}
  .match-artwrap{width:min(100%,280px);}
  .progress-shell{left:20px;right:20px;bottom:14px;}
  .swipe-arrow{right:8px;width:18px;height:18px;}
  .site-index{gap:14px;}
  .index-hero{padding:20px;border-radius:0;box-shadow:none;}
  .index-hero h1{font-size:34px;}
}
