/* Rosie Thorns — public links page. Brand: ink / platinum / blood-rose. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/pinyon.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0B0D;
  --ink-2: #1C1A1C;
  --blood: #B3122E;
  --dried: #5E0B1A;
  --blood-deep: #5E0B1A;
  --platinum: #E8E6E1;
  --platinum-dim: #8A8580;
  --charcoal: #1C1A1C;
  --smoke: #8A8580;
  --line: rgba(232, 230, 225, 0.16);
  --line-strong: rgba(232, 230, 225, 0.32);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-title: "Cinzel", "Times New Roman", serif;
  --font-script: "Pinyon Script", "Palatino Linotype", cursive;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --tap: 3.25rem;
  --radius: 1.1rem;
  --page: 72rem;
  --content: 28rem;
  --glow: 0 8px 28px rgba(94, 11, 26, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--platinum);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100%;
}
body { position: relative; overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--platinum); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
::selection { background: var(--blood); color: var(--platinum); }

.skyline {
  position: fixed;
  inset: -5%;
  background: #0B0B0D url("../images/skyline.jpg") center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.08);
}
.skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.4) 0%, rgba(11,11,13,0.78) 52%, #0B0B0D 100%);
}
.flash-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  background: url("../images/svg/flash-sheet.svg") 0 0 / 360px 360px repeat;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  background: url("../images/grain.png") repeat;
  mix-blend-mode: overlay;
}
.vine {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 88px;
  z-index: 3;
  pointer-events: none;
  background: url("../images/svg/vines.svg") center top / contain no-repeat;
  opacity: 0.45;
}
.vine-left { left: -8px; }
.vine-right { right: -8px; transform: scaleX(-1); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--blood);
  color: var(--platinum);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
  position: relative;
  z-index: 4;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.9rem 0 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--platinum);
  text-decoration: none;
}
.brand img, .brand svg { width: 3rem; height: 3rem; border-radius: 0.35rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.06rem;
  min-width: 0;
}
.brand-slogan {
  font-family: var(--font-script);
  font-size: clamp(0.78rem, 3.55vw, 0.98rem);
  color: var(--platinum);
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
  font-weight: 400;
}

.logo-mark {
  margin: 1.15rem auto 0;
  width: min(100%, 22rem);
  max-width: 22rem;
  border: 0;
}
.logo-mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.48));
  margin-bottom: -15.5%;
}

main { padding-bottom: 2.4rem; position: relative; z-index: 4; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 0.8rem 0 1.5rem;
}
.portrait-frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
}
.portrait {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 72vh;
  width: 100%;
  max-width: min(28rem, calc(72vh * 9 / 16));
  margin-inline: auto;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
}
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 3px;
  pointer-events: none;
  z-index: 2;
}
.portrait::before { background: linear-gradient(90deg, var(--blood), transparent); top: 0; left: 0; }
.portrait::after { background: linear-gradient(270deg, var(--blood), transparent); bottom: 0; right: 0; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.frame-corners {
  position: absolute;
  inset: 0.55rem;
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(232,230,225,0.28);
  border-radius: 1rem;
}
.identity { text-align: center; }
.kicker {
  margin: 0 0 0.3rem;
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blood);
  font-weight: 500;
}
.identity h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  line-height: 0.95;
  color: var(--platinum);
  letter-spacing: 0.01em;
}
.tagline {
  margin: 0.55rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  line-height: 1.15;
  color: var(--blood);
  font-weight: 400;
  letter-spacing: 0;
}
.handle {
  display: inline-block;
  margin: 0.7rem 0 0;
  color: var(--platinum-dim);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.soft-line {
  margin: 0.9rem auto 0;
  max-width: 28rem;
  color: var(--platinum);
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  line-height: 1.3;
}
.closer {
  margin: 1.4rem auto 0;
  max-width: 28rem;
  color: var(--platinum-dim);
  font-family: var(--font-script);
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-copy .links { margin-top: 0.9rem; }
.links {
  width: min(100%, 22rem);
  max-width: 22rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  perspective: 1000px;
}
.flash-link {
  display: block;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--platinum);
  background: transparent;
  border: 0;
  padding: 0;
  perspective: 900px;
  position: relative;
}
.flash-inner {
  display: block;
  position: relative;
  width: 100%;
  min-height: var(--tap);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
  border-radius: 0.95rem;
}
.flash-link:hover .flash-inner,
.flash-link.is-flipped .flash-inner,
.flash-link:focus-visible .flash-inner { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 0.95rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(94, 11, 26, 0.45), 0 8px 22px rgba(0,0,0,0.28);
  background:
    linear-gradient(180deg, rgba(28,26,28,0.92), rgba(11,11,13,0.94)),
    url("../images/svg/flash-sheet.svg") center / 280px;
}
.face.front { background-color: var(--charcoal); }
.face.front::before,
.face.front::after {
  content: "";
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  pointer-events: none;
  opacity: 0.55;
  background: url("../images/svg/flash-ornament.svg") center / contain no-repeat;
}
.face.front::before { top: 0.15rem; left: 0.2rem; }
.face.front::after { right: 0.2rem; bottom: 0.15rem; transform: scale(-1); }
.face.back {
  transform: rotateY(180deg);
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(94,11,26,0.88), rgba(11,11,13,0.96));
  border-color: var(--blood);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.flash-link svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flash-copy { display: flex; flex-direction: column; gap: 0.08rem; flex: 1; min-width: 0; }
.flash-copy strong { font-weight: 650; font-size: 0.98rem; }
.flash-copy span { color: var(--platinum-dim); font-size: 0.78rem; }
.flash-arrow { color: var(--platinum-dim); }

footer.site-footer {
  width: min(100% - 2rem, var(--page));
  margin: 1.6rem auto 0;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--platinum-dim);
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 4;
}
footer.site-footer p { margin: 0.4rem auto; max-width: 36rem; }

@media (min-width: 860px) {
  .vine { width: 120px; opacity: 0.55; }
  .hero {
    grid-template-columns: minmax(18rem, 26rem) minmax(22rem, 1fr);
    align-items: start;
    gap: 3.2rem;
    padding: 1.4rem 0 2.2rem;
  }
  .portrait {
    aspect-ratio: 9 / 16;
    max-height: 78vh;
    max-width: min(24rem, calc(78vh * 9 / 16));
  }
  .portrait-frame { margin: 0; max-width: none; }
  .identity { text-align: left; }
  .identity h1 { font-size: clamp(3.4rem, 6vw, 5.2rem); }
  .logo-mark { margin-left: 0; margin-right: auto; }
  .soft-line, .closer, .links { margin-left: 0; }
  .links { width: min(100%, 22rem); max-width: 22rem; }
  .hero-copy { display: flex; flex-direction: column; }
}
@media (max-width: 700px) {
  .vine { width: 42px; opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flash-inner, .skyline { transition: none; }
  .flash-link:hover .flash-inner,
  .flash-link.is-flipped .flash-inner,
  .flash-link:focus-visible .flash-inner { transform: none; }
}
