/* PiGallery Download — darkroom / photo album theme.
   Pure CSS: film strips, sprocket holes, polaroid prints and contact sheets
   are all drawn with gradients and borders. No external resources. */

:root {
  --accent-color: #ff6b8a;
  --accent-soft: rgba(255, 107, 138, 0.14);
  --accent-bright: #ff7f97;
  --violet: #b48cff;
  --violet-soft: rgba(180, 140, 255, 0.14);
  --panel-bg: rgba(33, 17, 44, 0.78);
  --panel-border: rgba(247, 191, 204, 0.16);
  --tile-bg: rgba(7, 5, 18, 0.4);
  --icon-ring: rgba(255, 122, 147, 0.28);
  --link-glow: rgba(255, 107, 138, 0.45);
  --tint-color: #150a1d;
  --bg-gradient:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 62, 98, 0.26), transparent 70%),
    radial-gradient(circle at 92% 30%, rgba(122, 56, 170, 0.22), transparent 38%),
    radial-gradient(circle at 6% 78%, rgba(92, 44, 150, 0.2), transparent 40%),
    linear-gradient(180deg, #1d0d27 0%, #150a1d 40%, #0f0716 100%);
  --text-color: #fff6f8;
  --muted-text: #d4bfcc;
  --selection-bg: rgba(255, 107, 138, 0.34);
  --selection-text: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  /* Photographic materials */
  --paper: #f6efe6;           /* print / polaroid border */
  --paper-ink: #2a1630;       /* handwriting on the print */
  --paper-muted: #6b5562;
  --film: #120a14;            /* film base, always dark */
  --film-edge: #1d1220;
  --film-text: #fbe9ee;
  --film-muted: #c9b2bf;
  --film-mark: #ffb36b;       /* edge-print orange */
  --hole: #4a2b52;            /* sprocket holes, lit by the safelight */
  --print-shadow:
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 10px 18px rgba(0, 0, 0, 0.35),
    0 26px 50px rgba(0, 0, 0, 0.45);
  --sheet-bg: #1f1029;
  --sheet-border: rgba(255, 255, 255, 0.08);
  --grain-opacity: 0.09;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display-font: "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS",
                  -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand-font: "Noteworthy", "Bradley Hand", "Segoe Print", "Marker Felt",
               "Comic Sans MS", cursive;
  --mono-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --accent-color: #c92e55;
    --accent-soft: rgba(201, 46, 85, 0.1);
    --accent-bright: #b4264a;
    --violet: #6a3bb5;
    --violet-soft: rgba(106, 59, 181, 0.1);
    --tint-color: #f5ede6;
    --bg-gradient:
      radial-gradient(ellipse 70% 40% at 50% -8%, rgba(255, 107, 138, 0.18), transparent 70%),
      radial-gradient(circle at 92% 34%, rgba(150, 100, 220, 0.12), transparent 40%),
      linear-gradient(180deg, #f8f0ea 0%, #f5ede6 45%, #f0e6e4 100%);
    --text-color: #24112e;
    --muted-text: #5a4763;
    --selection-bg: rgba(255, 107, 138, 0.24);
    --selection-text: #24112e;
    --panel-bg: rgba(255, 252, 249, 0.86);
    --panel-border: rgba(36, 17, 46, 0.13);
    --tile-bg: rgba(251, 243, 248, 0.9);
    --link-glow: rgba(201, 46, 85, 0.25);
    --shadow: 0 15px 40px rgba(36, 17, 46, 0.16);

    --paper: #fffdf9;
    --hole: #f5ede6;
    --print-shadow:
      0 1px 1px rgba(36, 17, 46, 0.12),
      0 8px 16px rgba(36, 17, 46, 0.12),
      0 22px 40px rgba(36, 17, 46, 0.16);
    --sheet-bg: #fffaf6;
    --sheet-border: rgba(36, 17, 46, 0.1);
    --grain-opacity: 0.06;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-gradient);
  background-color: var(--tint-color);
  color: var(--text-color);
}

body {
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Film grain over everything (inline SVG noise, decorative). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Darkroom safelight glow at the top of the home page. */
.safelight {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 760px;
  max-width: 140vw;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 70, 100, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: light) {
  .safelight {
    background: radial-gradient(ellipse at center, rgba(255, 120, 150, 0.16), transparent 65%);
  }
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  box-sizing: border-box;
  animation: fadeInUp 0.55s ease-out;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem 1rem 1.6rem;
  }
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.75rem 0;
}

.header > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-roll {
  margin-left: auto;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border: 1px dashed var(--panel-border);
  border-radius: 4px;
}

@media (max-width: 560px) {
  .header-roll {
    display: none;
  }
}

.app-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px var(--icon-ring),
    0 10px 24px rgba(0, 0, 0, 0.45);
  -webkit-user-drag: none;
}

h1 {
  font-family: var(--display-font);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
  color: var(--text-color);
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: var(--muted-text);
}

/* The accent rule under every header is a strip of 35mm film edge. */
.underline-accent {
  display: block;
  height: 22px;
  margin: 0.25rem 0 0;
  border-radius: 3px;
  background-color: var(--film);
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0 8px,
      var(--hole) 8px 20px,
      transparent 20px 28px);
  background-size: 100% 10px;
  background-position: 0 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- Typography ---------- */

h2 {
  font-family: var(--display-font);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text-color);
  letter-spacing: 0.005em;
}

h3 {
  font-family: var(--display-font);
  font-size: 1.02rem;
  margin: 1rem 0 0.35rem;
  color: var(--text-color);
  letter-spacing: 0.01em;
}

p {
  line-height: 1.65;
  margin: 0.45rem 0;
  font-size: 1rem;
  color: var(--muted-text);
}

ul,
ol {
  padding-left: 1.3rem;
  margin: 0.45rem 0 0.3rem;
}

li {
  line-height: 1.6;
  margin-bottom: 0.2rem;
  color: var(--muted-text);
}

li::marker {
  color: var(--accent-bright);
}

li strong,
p strong {
  color: var(--text-color);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-shadow: 0 0 6px var(--link-glow);
}

.frame-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2.5rem;
  padding: 3.6rem 0 3rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent-bright);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent-color);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-color);
  text-wrap: balance;
}

.hero-lede {
  max-width: 34rem;
  font-size: 1.07rem;
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 0.5rem;
}

.app-store-link img {
  width: 190px;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}

/* Polaroid stack */

.polaroid-stack {
  position: relative;
  height: 660px;
}

.polaroid {
  position: absolute;
  margin: 0;
  width: 50%;
  max-width: 260px;
  padding: 12px 12px 0;
  box-sizing: border-box;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--print-shadow);
  transition: transform 0.35s ease;
}

.polaroid figcaption {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.1rem;
  padding: 0.7rem 0.15rem 0.8rem;
}

.polaroid .panel-name {
  font-family: var(--hand-font);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--paper-ink);
}

.polaroid .panel-meta {
  white-space: nowrap;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: var(--paper-muted);
  letter-spacing: 0.02em;
}

.polaroid .panel-tag {
  position: absolute;
  top: 24px;
  right: 22px;
  background: rgba(255, 253, 249, 0.92);
  padding: 0.22rem 0.5rem;
  border: 1.5px solid #8b7a85;
  border-radius: 3px;
  color: #5d4b57;
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(6deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.p3 .panel-tag {
  right: auto;
  left: 22px;
  transform: rotate(-5deg);
}

.polaroid .panel-tag.accent {
  border-color: #c92e55;
  color: #b4264a;
}

.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 78px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 228, 236, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  border-left: 1px dashed rgba(0, 0, 0, 0.06);
  border-right: 1px dashed rgba(0, 0, 0, 0.06);
}

.print {
  aspect-ratio: 1 / 1;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.25);
}

/* Abstract CSS "photos" — shapes and gradients only. */
.print-sunset {
  background:
    radial-gradient(circle at 62% 58%, #ffe3a3 0 9%, rgba(255, 210, 140, 0.6) 10%, transparent 26%),
    linear-gradient(180deg, transparent 0 62%, #3a1b4d 62% 66%, #261238 66% 100%),
    linear-gradient(180deg, #6a3bb5 0%, #c74f8f 34%, #ff8a7a 56%, #ffc48a 64%);
}

.print-sunset::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: repeating-linear-gradient(180deg, rgba(255, 196, 138, 0.25) 0 2px, transparent 2px 7px);
}

.print-family {
  background:
    radial-gradient(circle at 30% 46%, #3a1d3f 0 9%, transparent 9.5%),
    radial-gradient(ellipse 15% 22% at 30% 72%, #3a1d3f 0 99%, transparent 100%),
    radial-gradient(circle at 54% 40%, #2c1533 0 10%, transparent 10.5%),
    radial-gradient(ellipse 17% 26% at 54% 70%, #2c1533 0 99%, transparent 100%),
    radial-gradient(circle at 75% 52%, #47224a 0 7%, transparent 7.5%),
    radial-gradient(ellipse 12% 18% at 75% 74%, #47224a 0 99%, transparent 100%),
    linear-gradient(180deg, #ffb7a8 0%, #ff8fa8 45%, #b964b8 100%);
}

.print-garden {
  background:
    radial-gradient(circle at 24% 40%, #ff7f97 0 6%, transparent 6.5%),
    radial-gradient(circle at 64% 30%, #ffd1dc 0 5%, transparent 5.5%),
    radial-gradient(circle at 80% 54%, #ff9fc0 0 7%, transparent 7.5%),
    radial-gradient(circle at 42% 62%, #f6e08a 0 5%, transparent 5.5%),
    radial-gradient(ellipse 60% 40% at 30% 100%, #2f6a4d 0 99%, transparent 100%),
    radial-gradient(ellipse 70% 45% at 85% 100%, #24533d 0 99%, transparent 100%),
    linear-gradient(180deg, #a9d6c4 0%, #7cb7a5 55%, #3f7f63 100%);
}

.p1 { top: 14px;  left: 2%;   transform: rotate(-6deg); z-index: 3; }
.p2 { top: 120px; right: 2%;  transform: rotate(5deg);  z-index: 2; }
.p3 { top: 336px; left: 4%;   transform: rotate(-2deg); z-index: 1; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 5; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.4rem;
    gap: 2rem;
  }
  .polaroid-stack {
    height: 600px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .polaroid-stack {
    height: 490px;
  }
  .polaroid {
    width: 54%;
    padding: 9px 9px 0;
  }
  .polaroid figcaption {
    padding: 0.55rem 0.1rem 0.65rem;
  }
  .polaroid .panel-name { font-size: 1.05rem; }
  .polaroid .panel-meta { font-size: 0.6rem; white-space: nowrap; }
  .polaroid .panel-tag  {
    top: 18px;
    right: 16px;
    font-size: 0.55rem;
    padding: 0.16rem 0.35rem;
  }
  .p3 .panel-tag { left: 16px; right: auto; }
  .p1 { top: 10px;  left: 1%; }
  .p2 { top: 96px;  right: 1%; }
  .p3 { top: 262px; left: 4%; }
}

/* ---------- Film strip of features ---------- */

.film-strip {
  --sprocket: repeating-linear-gradient(90deg,
    transparent 0 9px,
    var(--hole) 9px 21px,
    transparent 21px 30px);
  position: relative;
  margin: 1.1rem -1rem 0.5rem;
  padding: 34px 1rem;
  background-color: var(--film);
  background-image:
    var(--sprocket),
    var(--sprocket),
    linear-gradient(180deg, var(--film-edge), var(--film) 18%, var(--film) 82%, var(--film-edge));
  background-size: 100% 12px, 100% 12px, 100% 100%;
  background-position: 0 11px, 0 calc(100% - 11px), 0 0;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.film-strip::before,
.film-strip::after {
  position: absolute;
  left: 1rem;
  font-family: var(--mono-font);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--film-mark);
  opacity: 0.85;
  white-space: nowrap;
}

.film-strip::before {
  content: "PGD 400   ▸ 1   ▸ 1A   ▸ 2   ▸ 2A";
  top: 0;
  line-height: 11px;
}

.film-strip::after {
  content: "▸ 3   ▸ 3A   ▸ 4   ▸ 4A   SAFETY FILM";
  bottom: 0;
  line-height: 11px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

.feature-card {
  position: relative;
  min-height: 150px;
  padding: 1rem 1rem 1.1rem;
  border-radius: 6px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 107, 138, 0.16), transparent 55%),
    linear-gradient(160deg, #2a1533 0%, #1b0e22 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.feature-card:nth-child(2) {
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 140, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #251639 0%, #170d22 100%);
}

.feature-card:nth-child(3) {
  background:
    radial-gradient(circle at 90% 100%, rgba(255, 179, 107, 0.14), transparent 55%),
    linear-gradient(160deg, #2c1430 0%, #1b0d1f 100%);
}

.feature-card:nth-child(4) {
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 107, 138, 0.14), transparent 55%),
    linear-gradient(160deg, #23122f 0%, #160b1f 100%);
}

.frame-no {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--film-mark);
  letter-spacing: 0.12em;
}

.frame-no::before {
  content: "Frame 0";
}

.feature-card h3 {
  margin: 0 0 0.3rem;
  color: var(--film-text);
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--film-muted);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* On phones the strip runs vertically, sprockets down both sides. */
@media (max-width: 560px) {
  .film-strip {
    --sprocket: repeating-linear-gradient(180deg,
      transparent 0 9px,
      var(--hole) 9px 21px,
      transparent 21px 30px);
    margin: 1rem 0 0.5rem;
    padding: 1.2rem 34px;
    background-image:
      var(--sprocket),
      var(--sprocket),
      linear-gradient(90deg, var(--film-edge), var(--film) 12%, var(--film) 88%, var(--film-edge));
    background-size: 12px 100%, 12px 100%, 100% 100%;
    background-position: 11px 0, calc(100% - 11px) 0, 0 0;
    transform: none;
  }
  .film-strip::before,
  .film-strip::after {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
  }
}

/* ---------- Contact sheet ---------- */

.contact-section {
  margin-top: 3rem;
}

.contact-sheet {
  list-style: none;
  counter-reset: frame 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 1.1rem;
  background: var(--sheet-bg);
  border: 1px solid var(--sheet-border);
  border-radius: 4px;
  box-shadow: var(--print-shadow);
}

.contact-sheet li {
  counter-increment: frame;
  position: relative;
  margin: 0;
  padding: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-text);
}

/* thumbnail */
.contact-sheet li::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.55rem;
  border: 5px solid var(--film);
  border-radius: 2px;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35)),
    linear-gradient(135deg, #6a3bb5, #ff6b8a);
}

.contact-sheet li:nth-child(2)::before {
  background:
    radial-gradient(circle at 70% 35%, #ffe3a3 0 8%, transparent 9%),
    linear-gradient(180deg, transparent 0 64%, #2a1238 64%),
    linear-gradient(180deg, #4b2a8a, #ff8a7a 64%);
}

.contact-sheet li:nth-child(3)::before {
  background:
    radial-gradient(circle at 30% 60%, #ffd1dc 0 10%, transparent 11%),
    radial-gradient(circle at 68% 42%, #ff7f97 0 14%, transparent 15%),
    linear-gradient(160deg, #3f7f63, #a9d6c4);
}

.contact-sheet li:nth-child(4)::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 52%, transparent 52%),
    linear-gradient(200deg, #ffb7a8, #b964b8 70%, #5a2a6e);
}

.contact-sheet li:nth-child(5)::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #7ab8e0, #6a3bb5 75%);
}

.contact-sheet li:nth-child(6)::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, #ffc48a, transparent 70%),
    linear-gradient(180deg, #1d0d27, #c74f8f);
}

/* frame number in edge-print orange */
.contact-sheet li::after {
  content: "▸ " counter(frame) "A";
  position: absolute;
  top: 6px;
  right: 10px;
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--film-mark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* grease-pencil circle on the "pin the folders you use most" frame */
.contact-sheet li:nth-child(3)::before {
  background:
    radial-gradient(ellipse 40% 40% at 50% 52%, transparent 0 88%, #ff3d6e 90% 96%, transparent 98%),
    radial-gradient(circle at 30% 60%, #ffd1dc 0 10%, transparent 11%),
    radial-gradient(circle at 68% 42%, #ff7f97 0 14%, transparent 15%),
    linear-gradient(160deg, #3f7f63, #a9d6c4);
}

@media (max-width: 860px) {
  .contact-sheet {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .contact-sheet {
    gap: 0.85rem;
    padding: 0.8rem;
  }
  .contact-sheet li {
    font-size: 0.86rem;
  }
}

/* ---------- Duo + Private pair ---------- */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pair h2 {
  margin-top: 0;
}

.duo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-content: start;
}

.duo-print {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 10px 1.25fr;
  aspect-ratio: 16 / 8;
  padding: 12px 12px 38px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--print-shadow);
  transform: rotate(-1.4deg);
  max-width: 520px;
}

.duo-half {
  border-radius: 3px;
  overflow: hidden;
}

.duo-left {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: #1f1029;
}

.duo-left i {
  display: block;
  height: 22%;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #ff6b8a 0 18%, transparent 18% 24%, rgba(255, 255, 255, 0.16) 24% 80%, transparent 80%);
}

.duo-left i:nth-child(2) {
  background:
    linear-gradient(90deg, #b48cff 0 18%, transparent 18% 24%, rgba(255, 255, 255, 0.16) 24% 66%, transparent 66%);
}

.duo-left i:nth-child(3) {
  background:
    linear-gradient(90deg, #ffb36b 0 18%, transparent 18% 24%, rgba(255, 255, 255, 0.16) 24% 72%, transparent 72%);
}

.duo-hinge {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.18));
}

.duo-right b {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 66% 44%, #ffe3a3 0 8%, transparent 20%),
    linear-gradient(180deg, transparent 0 66%, #3a1b4d 66%),
    linear-gradient(180deg, #6a3bb5, #ff8a7a 60%, #ffc48a 66%);
}

.duo-caption {
  position: absolute;
  left: 16px;
  bottom: 8px;
  font-family: var(--hand-font);
  font-size: 1.05rem;
  color: var(--paper-ink);
}

/* Glassine negative sleeve */
.private-section {
  position: relative;
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: 4px;
  background:
    linear-gradient(180deg, var(--violet-soft), transparent 70%),
    var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.private-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--accent-color), var(--violet));
}

.private-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.private-section li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px dashed var(--panel-border);
  margin: 0;
}

.private-section li:first-child {
  border-top: 0;
}

.private-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 10px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 860px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- Fine print + footer ---------- */

.fine-print {
  margin-top: 3rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent-color);
  background: var(--accent-soft);
  border-radius: 0 4px 4px 0;
}

.fine-print p {
  margin: 0;
  font-size: 0.9rem;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.film-edge {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  background: var(--film);
  font-family: var(--mono-font);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--film-mark);
  overflow: hidden;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ---------- Subpages (privacy / support / terms) ---------- */

.subpage .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
}

.subpage section,
.subpage .header,
.subpage .underline-accent,
.subpage .container > p,
.subpage .container > ul,
.subpage .container > ol,
.subpage .container > h2,
.subpage footer {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.subpage .header h1 {
  font-size: clamp(1.25rem, 4.6vw, 1.7rem);
}

.subpage .container > p:first-of-type {
  margin-top: 2rem;
}

.subpage section {
  padding: 1.2rem 0;
  border-top: 1px dashed var(--panel-border);
}

.subpage section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.subpage .container > h2,
.subpage section > h2 {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--panel-border);
  font-size: 1.25rem;
}

.subpage section > h2 {
  border-top: 0;
  padding-top: 0.6rem;
}

.subpage .container > h2::before,
.subpage section > h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 6px;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--violet));
}

.subpage h3 {
  color: var(--text-color);
}

.subpage footer {
  border-top: 1px dashed var(--panel-border);
}

/* ---------- Motion ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .container {
    animation: none;
  }
  .polaroid {
    transition: none;
  }
}
