/* styles-pip-page-v4.css — PIP'S ROOM in the House (2026-10-27), from v3.
   The site is one house; this page is Pip's room: black finish, gold trim,
   house serif for the headings, one emerald accent. */
:root {
  --ink: #050505;
  --ink-soft: #0b0a08;
  --panel: #12100c;
  --panel-deep: #0a0906;
  --gold: #d9a441;
  --gold-bright: #ffe9a8;
  --bronze: #8a6d2f;
  --bronze-dim: #5c4a1e;
  --cream: #f8f1de;
  --cream-dim: #cfc2a4;
  --white-soft: #fffaf0;
  --line: rgba(217, 164, 65, 0.42);
  --line-soft: rgba(217, 164, 65, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(246, 226, 122, 0.11), transparent 42rem),
    radial-gradient(ellipse at 12% 38%, rgba(138, 109, 47, 0.08), transparent 30rem),
    radial-gradient(ellipse at 88% 68%, rgba(138, 109, 47, 0.07), transparent 32rem),
    linear-gradient(180deg, #060504 0%, var(--ink) 38%, #030202 100%);
  color: var(--cream);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--gold-bright);
}

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.page-frame {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-right: 1px solid rgba(217, 164, 65, 0.13);
  border-left: 1px solid rgba(217, 164, 65, 0.13);
  background: rgba(5, 5, 4, 0.6);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.52);
}

.hero {
  position: relative;
  padding: 34px 32px 68px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(246, 226, 122, 0.045), transparent 55%),
    radial-gradient(circle at 50% 35%, rgba(217, 164, 65, 0.09), transparent 25rem);
}

.circuit {
  position: absolute;
  top: 0;
  width: 265px;
  height: 265px;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d9a441%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0%2024%20H70%20L92%2046%20V200%22%2F%3E%3Cpath%20d%3D%22M0%2062%20H44%20L66%2084%20V200%22%2F%3E%3Cpath%20d%3D%22M24%200%20V70%20L46%2092%20H200%22%2F%3E%3Cpath%20d%3D%22M62%200%20V44%20L84%2066%20H200%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d9a441%22%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%2224%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2244%22%20cy%3D%2262%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2270%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2262%22%20cy%3D%2244%22%20r%3D%223.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.circuit-left {
  left: 0;
}

.circuit-right {
  right: 0;
  transform: scaleX(-1);
}

.top-links {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 50px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-links a {
  color: var(--cream-dim);
  text-decoration: none;
}

.top-links a:hover {
  color: var(--gold-bright);
}

.portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(190px, 31vw, 292px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 28px;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(217, 164, 65, 0.08),
    0 0 0 9px rgba(217, 164, 65, 0.32),
    0 24px 55px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(217, 164, 65, 0.13);
}

.identity {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Cormorant Garamond", "Avenir Next", Georgia, serif;
}

h3 {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  margin: 0;
  color: var(--white-soft);
  font-size: clamp(4.2rem, 11vw, 7.4rem);
  letter-spacing: 0.015em;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.65);
}

.role {
  margin: 10px 0 0;
  color: var(--gold-bright);
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  letter-spacing: 0.13em;
}

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(390px, 72vw);
  margin: 26px auto 20px;
  color: var(--gold);
  font-size: 0.72rem;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.tagline {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: 0.015em;
}

main {
  display: block;
}

.section {
  padding: 64px 42px;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 34px;
  max-width: 880px;
}

.section-heading > span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-dim), transparent);
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: 0.045em;
  text-align: center;
  white-space: nowrap;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.prose p {
  margin: 0 0 1.25em;
  color: var(--cream);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.prose p:last-child {
  margin-bottom: 0;
  color: var(--cream-dim);
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 226, 122, 0.045), transparent 42%),
    linear-gradient(165deg, #14110a, var(--panel-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.06),
    inset 0 0 32px rgba(0, 0, 0, 0.34),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.creation-card {
  overflow: hidden;
}

.creation-card figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.creation-card img,
.creation-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #050505;
  border-bottom: 1px solid var(--line);
}

.creation-card figcaption {
  padding: 22px 22px 24px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--white-soft);
  font-size: 1.42rem;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
  line-height: 1.58;
}

.card cite {
  color: var(--cream);
}

.database-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 34px 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(246, 226, 122, 0.1), transparent 10rem),
    linear-gradient(165deg, #161207, #070604);
}

.database-mark {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
}

.database-card .card-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--gold-bright);
  font-style: italic;
}

.record-so-far {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(217, 164, 65, 0.065), transparent 34rem),
    rgba(246, 226, 122, 0.012);
}

.record-date {
  margin: -14px 0 8px;
  color: var(--bronze);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.handle {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--white-soft);
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  text-decoration-color: rgba(217, 164, 65, 0.55);
  text-underline-offset: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 0 auto 24px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats div {
  padding: 20px 10px 18px;
}

.stats div + div {
  border-left: 1px solid var(--line-soft);
}

.stats strong {
  display: block;
  color: var(--gold-bright);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 7px;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.record-note {
  margin: 0;
  color: var(--cream-dim);
  font-style: italic;
}

.links {
  text-align: center;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button-link {
  display: inline-block;
  min-width: 218px;
  padding: 13px 22px 12px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(246, 226, 122, 0.13), rgba(138, 109, 47, 0.12));
  color: var(--gold-bright);
  font-size: 0.94rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.08), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.button-link:hover {
  border-color: var(--gold-bright);
  color: #fff8e8;
  background: linear-gradient(180deg, rgba(246, 226, 122, 0.19), rgba(138, 109, 47, 0.16));
}

.button-link.secondary {
  border-color: rgba(217, 164, 65, 0.48);
  background: rgba(246, 226, 122, 0.025);
}

footer {
  position: relative;
  padding: 38px 24px 44px;
  overflow: hidden;
  text-align: center;
  background: #030202;
}

footer p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
  letter-spacing: 0.025em;
}



@media (max-width: 900px) {
  .creation-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .creation-card img,
  .creation-card video {
    aspect-ratio: 16 / 9;
  }

  .database-card {
    min-height: 290px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .page-frame {
    border-right: 0;
    border-left: 0;
  }

  .hero {
    padding: 24px 20px 52px;
  }

  .circuit {
    width: 168px;
    height: 168px;
    opacity: 0.26;
  }

  .top-links {
    margin-bottom: 38px;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .portrait {
    width: min(218px, 62vw);
    margin-bottom: 24px;
  }

  .identity {
    font-size: 0.68rem;
    letter-spacing: 0.21em;
  }

  .role {
    letter-spacing: 0.08em;
  }

  .section {
    padding: 48px 20px;
  }

  .section-heading {
    gap: 11px;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
    white-space: normal;
  }

  .creation-card figcaption {
    padding: 20px;
  }

  .stats strong {
    font-size: 1.8rem;
  }

  .stats span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .button-link {
    width: 100%;
    min-width: 0;
  }

  footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- Pip's Room: door plate and house touches (v4) ---- */
.room-plate {
  display: inline-block;
  margin: 0 auto 22px;
  padding: 4px 16px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1c1408;
  background: linear-gradient(180deg, #ffe9a8, #d9a441);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero .room-plate-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.database-mark.emerald {
  color: #35a06f;
}
