/* Parker Savage — bio link page. Draft for theparkersavage.com */
:root {
  --bg: #090607;
  --bg-card: rgba(28, 14, 16, 0.72);
  --bg-card-hover: rgba(48, 18, 22, 0.88);
  --red: #b41c2c;
  --red-bright: #d5263a;
  --red-deep: #6a1018;
  --red-glow: rgba(180, 28, 44, 0.45);
  --cream: #f4ece6;
  --cream-dim: #c9b8b0;
  --muted: #8f7c76;
  --line: rgba(244, 236, 230, 0.1);
  --line-red: rgba(180, 28, 44, 0.45);
  --gold: #c9a57a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-ui: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-ui);
  color: var(--cream);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.07;
  background: url("images/grain.png") repeat;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,0.45) 100%);
}

/* Default (no JS) and in-app: only the gate. Normal browsers: only the page. */
#app { display: none; }
#gate { display: grid; }
html.is-ext #gate { display: none !important; }
html.is-ext #app { display: block; }
html.is-iab #app { display: none !important; }
html.is-iab #gate { display: grid; }
html.is-iab { overflow: hidden; }
html.is-iab body::after { display: none; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 52svh;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transform: scale(1.08);
  animation: ken 18s var(--ease) both;
}
@keyframes ken {
  from { transform: scale(1.12) translate3d(0, 8px, 0); }
  to   { transform: scale(1.04) translate3d(0, 0, 0); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,6,7,0.12) 0%, rgba(9,6,7,0.04) 34%, rgba(9,6,7,0.4) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(90,10,16,0.18), transparent 40%, transparent 60%, rgba(90,10,16,0.18));
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  z-index: 2;
  text-align: center;
  padding: 0 1.25rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.7rem);
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
.hero-copy p {
  margin: 0;
  color: var(--cream-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ========== PANEL / LINKS ========== */
.panel {
  position: relative;
  z-index: 2;
}
.main {
  width: min(340px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.35rem 0 3.2rem;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
}
.social {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.social:hover,
.social:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--line-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 0 1px var(--red-glow);
  outline: none;
  color: var(--cream);
}

.links {
  display: grid;
  gap: 0.28rem;
}

.link {
  --delay: 0s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transform: translateY(10px);
  opacity: 0;
  animation: rise 0.55s var(--ease) var(--delay) forwards;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}
.link:hover,
.link:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--line-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 0 1px var(--red-glow);
  outline: none;
}
.link:active { transform: translateY(0); }

.icon {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(180,28,44,0.28), rgba(180,28,44,0.08));
  border: 1px solid rgba(180,28,44,0.35);
  color: var(--cream);
}
.icon svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  text-align: left;
}
.meta strong {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.meta small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.chev {
  flex: 0 0 auto;
  color: var(--cream-dim);
  opacity: 0.55;
  transition: transform 0.25s var(--ease), opacity 0.2s, color 0.2s;
}
.link:hover .chev,
.link:focus-visible .chev {
  opacity: 1;
  color: var(--red-bright);
  transform: translateX(3px);
}

/* ========== FEATURED + ACCORDION ========== */
.featured {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.75rem;
}

.acc {
  display: grid;
  gap: 0.28rem;
}
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.acc-item.is-open {
  border-color: var(--line-red);
  box-shadow: 0 0 0 1px rgba(180,28,44,0.18);
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.acc-btn:hover .acc-title,
.acc-btn:focus-visible .acc-title { color: var(--cream); }
.acc-btn:focus-visible { outline: none; }
.acc-item.is-open .acc-btn:focus-visible,
.acc-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--line-red); }
.acc-label {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  min-width: 0;
}
.acc-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}
.acc-note {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.acc-chevron {
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.85;
  transition: transform 0.35s var(--ease);
}
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.acc-panel-inner .links,
.acc-panel-inner .booking-hero {
  margin: 0 0.45rem 0.5rem;
}
.acc-panel-inner .links { display: grid; gap: 0.22rem; }
.acc .link {
  opacity: 1;
  transform: none;
  animation: none;
  min-height: 2.2rem;
  padding: 0.2rem 0.7rem;
  gap: 0.45rem;
}
.acc .icon {
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 7px;
}
.acc .icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.booking-hero {
  position: relative;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.booking-hero img {
  width: 100%;
  height: 8.8rem;
  object-fit: cover;
  object-position: 50% 18%;
}
.booking-hero figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 2.2rem 0.85rem 0.65rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9,6,7,0.55) 45%, rgba(9,6,7,0.92) 100%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}

/* ========== FOOTER ========== */
.foot {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.foot p { margin: 0.25rem 0; }
.rule {
  width: 3rem;
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ========== DESKTOP ========== */
@media (min-width: 960px) {
  body::after { background: none; }
  .page {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(440px, 0.95fr);
    min-height: 100dvh;
  }
  .hero {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100dvh;
  }
  .hero-photo { object-position: 50% 10%; }
  .hero-shade {
    background:
      linear-gradient(90deg, transparent 40%, rgba(9,6,7,0.35) 78%, var(--bg) 100%),
      linear-gradient(180deg, rgba(9,6,7,0.15) 0%, transparent 28%, rgba(9,6,7,0.55) 70%, rgba(9,6,7,0.86) 100%);
  }
  .hero-copy {
    left: 2.4rem;
    right: 3rem;
    bottom: 2.6rem;
    text-align: left;
    padding: 0;
  }
  .hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.4rem);
    letter-spacing: 0.12em;
    line-height: 0.95;
    margin: 0 0 0.7rem;
  }
  .hero-copy p {
    letter-spacing: 0.16em;
    font-size: 0.9rem;
  }
  .panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.2rem 3rem 3.6rem 1.6rem;
  }
  .main {
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: 0;
  }
  .socials {
    justify-content: flex-start;
    margin: 0 0 1.85rem;
  }
}

/* ========== IN-APP GATE ========== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 1.25rem 1.15rem 1.6rem;
  background:
    linear-gradient(180deg, rgba(9,6,7,0.55) 0%, rgba(9,6,7,0.88) 42%, rgba(9,6,7,0.97) 100%);
}
.gate-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  opacity: 0.28;
  filter: saturate(0.8) blur(2px);
  pointer-events: none;
}
.gate-card {
  position: relative;
  width: min(400px, 100%);
  background: rgba(16, 8, 10, 0.88);
  border: 1px solid var(--line-red);
  border-radius: 22px;
  padding: 1.5rem 1.3rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px var(--red-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
}
.gate-card h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.gate-card .lead {
  margin: 0 0 1.1rem;
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}
.steps {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.steps li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.35;
}
.num {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
}
.kbd {
  display: inline-block;
  padding: 0.05rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  font-size: 0.82em;
  letter-spacing: 0.04em;
}
.gate-actions {
  display: grid;
  gap: 0.5rem;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: var(--cream);
  box-shadow: 0 8px 22px var(--red-glow);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cream-dim); color: var(--cream); }
.copied { color: var(--gold) !important; border-color: rgba(201,165,122,0.5) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-photo { transform: none; }
  .link { opacity: 1; transform: none; }
  .acc-panel { transition: none !important; }
  .acc-chevron { transition: none !important; }
}
