@font-face {
  font-family: Archive Serif;
  src: url("assets/display.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a090c;
  --panel: #151218;
  --ink: #f1eff2;
  --muted: #c1bcc6;
  --violet-light: #dda5fc;
  --line: #44354c;
  --display: Archive Serif, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 Inter, system-ui, sans-serif;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #dea4ff; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font: 600 2.5rem/1.04 var(--display); }
p { margin: 0; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; padding: .6rem 1rem; transform: translateY(-140%); background: var(--panel); }
.skip:focus { transform: none; }

.site-header { background: #0d0b10; border-bottom: 1px solid var(--line); }
.menu-toggle { display: none; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5.15rem; }
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 700 1.52rem/1 var(--display); text-decoration: none; white-space: nowrap;
}
.brand img { object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: clamp(.65rem, 2.3vw, 2.2rem); }
.site-header nav a { color: var(--muted); font-size: .91rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--ink); }
.site-header nav [aria-current] { text-decoration: underline; text-decoration-color: var(--violet-light); text-underline-offset: .48em; }
.site-header .nav-booking { padding: .58rem .9rem; border: 1px solid #8954a3; color: var(--violet-light); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #100b15;
}
.hero::before {
  content: "";
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(ellipse at 77% 49%, #63098342, transparent 51%),
    linear-gradient(90deg, #09080c 0%, #0c0910ee 34%, #100a1666 72%, #09080ca0),
    url("assets/stone.webp") center 48% / cover;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
  min-height: min(42rem, 73vh); padding-block: 4.4rem;
}
.eyebrow {
  color: var(--violet-light); font-size: .87rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .19em; margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(4rem, 9.6vw, 9.4rem); line-height: .83; letter-spacing: -.045em; }
.hero h1 span { display: flex; align-items: center; gap: .5em; margin-bottom: .26em; font-size: .48em; font-weight: 400; font-style: italic; }
.hero h1 span::after { content: ""; height: 1px; width: 2em; background: linear-gradient(90deg,#ac83b6,transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 74% 52%, #9b43dc26, transparent 44%); }
.hero p:not(.eyebrow) { color: #d9d4dd; font-size: clamp(1rem, 1.45vw, 1.2rem); max-width: 31rem; margin-top: 1.65rem; }
.hero-crest { width: min(100%, 22rem); justify-self: center; filter: drop-shadow(0 1rem 2rem #060408c9); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.65rem; }
.button {
  display: inline-flex; min-height: 2.85rem; justify-content: center; align-items: center;
  padding: .65rem 1.05rem; border: 1px solid #9257ad;
  background: #1b1123; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .92rem; cursor: pointer;
}
.button:hover { background: #30183f; }
.button.primary { background: #7818b5; color: #ffffff; border-color: #7818b5; }
.button.primary:hover { background: #8b25ca; }

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.45rem; }
.section-heading h2 { font-size: clamp(2.6rem, 5vw, 3.65rem); }
.section-heading a, .text-link { color: var(--violet-light); font-weight: 600; }
.feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--panel); }
.feature-image { display: grid; min-height: 18rem; place-items: center; overflow: hidden; background: #151019 url("assets/stone.webp") center / cover; }
.feature-image img { width: 65%; max-height: 16rem; object-fit: contain; margin: 1rem; }
.feature-image img.feature-photo { width: 100%; max-height: 25rem; height: 100%; object-fit: cover; margin: 0; }
.feature-copy { align-self: center; padding: clamp(1.35rem, 4vw, 3.5rem); }
.feature-copy p:not(.eyebrow) { margin-block: .9rem 1.2rem; color: var(--muted); }
.feature-copy h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.page { padding-block: 3.75rem 5rem; }
.page-header { margin-bottom: 2.25rem; max-width: 45rem; }
.page-header h1 { font-size: clamp(3.45rem, 7vw, 5.8rem); letter-spacing: -.035em; }
.page-header p:not(.eyebrow) { margin-top: .65rem; color: var(--muted); max-width: 39rem; }
.page-action { margin-bottom: 1rem; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--violet-light); }
.grid { display: grid; gap: .95rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: clamp(1.1rem,2.3vw,1.75rem); border: 1px solid var(--line); background: linear-gradient(145deg, #211923, var(--panel) 65%); }
.card h2, .card h3 { overflow-wrap: break-word; }
.page-header { padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.back { font-size: .92rem; }
.story-art { margin: 0 0 2rem; max-width: 57rem; overflow: hidden; }
.story-art img { width: 100%; max-height: 24rem; object-fit: cover; }
.story-copy { font: 400 clamp(1.28rem, 2vw, 1.5rem)/1.5 var(--display); }
.story-copy .chips { font-family: system-ui, sans-serif; }
.journal-grid, .album .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card h2, .card h3 { font-size: 2rem; }
.card p { color: var(--muted); margin-top: .5rem; }
.card .eyebrow { font-size: .8rem; margin: 0 0 .45rem; color: var(--violet-light); }
.card-link { text-decoration: none; }
.card-link:hover { border-color: #ad62cc; background-color: #211629; }
.card-link:hover h2, .card-link:hover h3 { text-decoration: underline; text-underline-offset: .13em; }
.profile-card { display: block; }
.profile-card h2 { font-size: 1.75rem; }
.profile-card p { font-size: .92rem; }
.portrait-gallery { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 29rem), 1fr)); }
.portrait-card {
  display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden;
  background: radial-gradient(ellipse at 45% 55%, #43274e 0, #211525 48%, #130f16 85%);
}
.portrait-stage { display: block; width: 100%; aspect-ratio: 1.08; max-height: 38rem; padding: .75rem .25rem 0; }
.portrait-stage img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.portrait-card .person-caption { padding: 1.25rem 1.5rem; background: #171219; }
.portrait-card h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; }
.portrait-card p { color: var(--violet-light); }
.profile-portrait { display: block; width: min(100%, 38rem); height: auto; margin-bottom: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem 1.15rem; margin-bottom: 1.35rem; align-items: end; }
.filters label { display: grid; gap: .2rem; color: var(--muted); font-size: .92rem; }
.filters input, .filters select { padding: .52rem .7rem; color: var(--ink); background: var(--panel); border: 1px solid #805198; border-radius: 0; }
.filters input { width: min(72vw, 19rem); }
.family-relationships { margin-top: 3rem; }
.family-relationships > h2 { margin-bottom: 1rem; }
.tree-page { width: min(100% - 2rem, 110rem); padding-top: clamp(1.35rem, 3vw, 2.75rem); }
.tree-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.tree-toolbar .page-header, .tree-toolbar .tree-finder { margin: 0; }
.tree-toolbar .page-header { border: 0; padding: 0; }
.tree-toolbar h1 { font-size: clamp(2.65rem, 5vw, 4.6rem); }
.tree-scroll-hint { display: none; margin-bottom: .5rem; color: var(--muted); }
.tree-scroll { overflow-x: auto; scrollbar-color: #956fa6 #1b1520; background: #140d17; box-shadow: 0 1.3rem 3rem #0005; }
.tree-map { position: relative; aspect-ratio: 1672 / 864; min-width: 73rem; isolation: isolate; overflow: hidden; }
.tree-art, .tree-light, .tree-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree-art { display: block; }
.tree-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree-trace polyline { stroke: #ffe8ad; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 4px #ffb958); }
.tree-zoom { display: none; }
.tree-overview .tree-map { min-width: 0; cursor: zoom-in; }
.tree-person h3 { margin: 1.3rem 0 .5rem; }
.tree-kin { display: flex; flex-wrap: wrap; gap: .45rem; }
.tree-kin button, .tree-kin a {
  display: grid; gap: .1rem; min-height: 2.75rem; text-align: left; padding: .45rem .75rem;
  color: var(--ink); border: 1px solid var(--line); background: #211725; text-decoration: none; font: inherit; cursor: pointer;
}
.tree-kin :is(button,a):hover { border-color: var(--violet-light); }
.tree-kin span { color: var(--violet-light); font-size: .85rem; }
.family-memory { scroll-margin-top: 2rem; }
.portrait-card .card-detail { margin-top: .8rem; color: var(--muted); font-size: 1rem; }
.blog-mast .hero-inner { min-height: 0; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding-block: clamp(1.4rem,3vw,2.7rem); }
.blog-mast h1 { font-size: clamp(2.75rem,6vw,6.4rem); }
.blog-mast .hero-crest { grid-area: 1 / 2; margin: 0; width: clamp(4rem,12vw,11rem); }
.blog-mast .actions { margin-top: 1.2rem; }
.news-caption { margin: .8rem 0 1.2rem; }
.news-caption blockquote { margin: 0; max-width: 45ch; font: italic 500 clamp(1.35rem,2.6vw,2rem)/1.25 var(--display); }
.news-caption figcaption { color: var(--violet-light); margin-top: .6rem; }
.section .news-portrait img { height: clamp(14rem,24vw,23rem); }
@media (max-width: 75rem) {
  .tree-zoom { display: inline-flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .tree-trace polyline { stroke-dasharray: 1; animation: trace-kin .8s ease-out both; }
  @keyframes trace-kin { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.tree-light { background: radial-gradient(ellipse at 81% 8%, #ffdfa82b, transparent 14%); opacity: .45; }
.tree-sparks i { position: absolute; width: .65%; aspect-ratio: 1; background: #fff5dd; clip-path: polygon(50% 0,58% 38%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 38%); opacity: 0; }
.tree-plate {
  position: absolute; left: var(--plate-x); top: var(--plate-y); width: var(--plate-width); height: var(--plate-height);
  --gem: #d88eff; appearance: none; border: 1px solid transparent; padding: 0; background: transparent; border-radius: .35rem;
}
.tree-plate[data-branch="Sanchez"] { --gem: #79f4b1; }
.tree-map { container-type: inline-size; }
.tree-plate-copy {
  position: absolute; inset: 8% 7%; display: grid; align-content: center; justify-items: center; gap: .22cqw;
  padding: 1px .12cqw; color: #f3e9d7; background: linear-gradient(#191617,#100e11);
  font: 600 1.13cqw/1.03 var(--display); text-shadow: 0 1px 2px #000;
}
.tree-plate-copy small { font-size: .77cqw; line-height: 1.08; text-transform: uppercase; }
.tree-plate-copy.added-nameplate { inset: 0; border: 3px double #bfae92; border-radius: .55rem; box-shadow: inset 0 0 .45rem #000; }
.tree-plate-copy.added-nameplate::before, .tree-plate-copy.added-nameplate::after {
  content: ""; position: absolute; top: 44%; width: .48cqw; aspect-ratio: .65; background: #9bffbd;
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.tree-plate-copy.added-nameplate::before { left: 4%; }
.tree-plate-copy.added-nameplate::after { right: 4%; }
.tree-plate[data-connected] { outline: 1px solid #ffe8ad; outline-offset: 1px; box-shadow: 0 0 .45rem #ffd58b99; }
.tree-plate:is(:hover,:focus-visible,[data-located]) { border-color: var(--gem); box-shadow: 0 0 .8rem var(--gem), inset 0 0 .6rem color-mix(in srgb, var(--gem) 45%, transparent); z-index: 1; }
.tree-plate:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tree-light { animation: moon-breath 3.5s ease-in-out 2 alternate; }
  .tree-sparks i { animation: tree-glint 2.7s var(--delay) ease-in-out 2; }
  .tree-person:not([hidden]) { animation: enter-page .24s ease-out; }
}
@keyframes moon-breath { from { opacity: .2; } to { opacity: 1; } }
@keyframes tree-glint {
  0%, 38%, 77%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  55% { opacity: .95; transform: translate(-50%, -50%) scale(1); }
}
.news-post { display: grid; grid-template-columns: minmax(8rem, 26%) 1fr; align-items: center; gap: clamp(1.25rem, 4vw, 4rem); border-block: 1px solid var(--line); padding-block: 1.35rem; }
.news-portrait { background: radial-gradient(ellipse at bottom, #4b2b54, transparent 72%); }
.news-portrait img { width: 100%; height: 13rem; object-fit: contain; object-position: center bottom; }
.news-post time, .tree-role { color: var(--violet-light); }
.news-post h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin-block: .3rem .5rem; }
.news-post p, .tree-person p { max-width: 55ch; margin-bottom: .9rem; }
.person-caption blockquote, .family-memory blockquote { font: italic 500 clamp(1.5rem, 3vw, 2.3rem)/1.15 var(--display); margin: 1rem 0; }
.family-memory { border-left: 2px solid var(--violet-light); padding-left: 1.25rem; margin-block: 2rem; }
.tree-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tree-plate { color: var(--ink); cursor: pointer; }
.tree-person { padding: 1.25rem; border: 1px solid var(--line); background: var(--panel); }
.tree-person img { width: 100%; max-height: 12rem; object-fit: contain; background: radial-gradient(ellipse at bottom, #41234e, transparent 75%); }
.tree-person h2 { font-size: 2rem; line-height: 1.05; margin-block: .7rem .4rem; }
@media (min-width: 87rem) {
  .tree-layout:has(.tree-person:not([hidden])) { grid-template-columns: minmax(0, 1fr) 18rem; }
}
@media (max-width: 38rem) {
  .news-post { grid-template-columns: 1fr; }
  .news-portrait img { height: 12rem; }
}
@media (max-width: 75rem) {
  .tree-scroll-hint { display: block; }
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.chips a { font-size: .9rem; color: var(--violet-light); padding: .25rem .5rem; border: 1px solid #6f3885; }
.body-copy { max-width: 42rem; }
.body-copy p { margin-bottom: 1rem; }
.body-copy h2 { margin: 2rem 0 .65rem; }
.body-copy li { margin-block: .45rem; }
.album { margin-block: 0 2.4rem; }
.album > h2 { margin-bottom: 1rem; }
.album figure { margin: 0; background: var(--panel); border: 1px solid var(--line); }
.photo-button { display: block; width: 100%; padding: 0; border: 0; background: #151019; cursor: zoom-in; }
.photo-button img { width: 100%; height: 14rem; object-fit: cover; }
.photo-button img.fit { object-fit: contain; }
.album figcaption { padding: .75rem .9rem; color: var(--muted); }
dialog { max-width: min(91vw, 70rem); max-height: 92vh; padding: .75rem; border: 1px solid #9759b4; background: #18111e; color: var(--ink); }
dialog::backdrop { background: #070508ee; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
dialog img { max-height: 72vh; width: auto; margin-inline: auto; object-fit: contain; }
dialog p { margin: .55rem .25rem .2rem; }
.contact-grid .card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-status { margin-bottom: 1.5rem; color: var(--violet-light); }
.studio-booking { margin-bottom: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(115deg, #302135, var(--panel) 75%); border: 1px solid var(--line); }
.studio-booking h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.studio-booking p { max-width: 58ch; margin-block: .75rem 1rem; }
.contact-grid .card p:not(.availability) { flex: 1; }
.contact-grid .button, .contact-grid .availability { margin-top: 1rem; }
.contact-grid .availability { color: var(--violet-light); font-size: .91rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.3rem; }
.site-footer .brand { color: var(--ink); font-size: 1.25rem; }
.site-footer p, .site-footer a:last-child { font-size: .89rem; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 32rem; }
}
@media (max-width: 56rem) {
  .site-header { position: relative; z-index: 3; }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex; gap: .6rem; align-items: center; justify-content: center;
    flex: 0 0 auto; min-height: 2.75rem; padding: .4rem .85rem; border: 1px solid #695874;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .menu-toggle::after { content: ""; width: .48rem; height: .48rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .site-header #site-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding-bottom: 1rem; }
  .site-header .menu-toggle[aria-expanded="false"] + #site-nav { display: none; }
  .site-header #site-nav a { display: flex; min-height: 2.75rem; padding: .5rem .65rem; align-items: center; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { align-items: center; gap: .45rem 1rem; padding-block: .65rem; min-height: 4rem; }
  .site-header nav { flex-wrap: wrap; gap: .1rem .8rem; }
  .site-header nav a { min-height: 2.1rem; display: inline-flex; align-items: center; }
  .site-header .nav-booking { padding: .15rem .5rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2rem 2.6rem; }
  .hero-crest { grid-row: 1; justify-self: start; width: 8.5rem; margin-bottom: 1.25rem; }
  .hero::before { background-position: center; }
  .hero h1 { font-size: clamp(3.65rem, 13vw, 5.5rem); }
  .feature { grid-template-columns: 1fr; }
  .feature-image { min-height: 11rem; }
  .feature-image img { max-height: 11rem; }
  .page { padding-block: 2.6rem 3.5rem; }
  .footer-inner { flex-wrap: wrap; gap: .55rem 1rem; }
}
@media (max-width: 465px) {
  .grid, .album .grid { grid-template-columns: 1fr; }
  .page-header { margin-bottom: 1.6rem; }
}

@keyframes enter-page {
  from { opacity: .45; transform: translateY(.45rem); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-crest {
  from { opacity: .25; transform: translateY(.7rem) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-haze {
  from { opacity: .15; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .page, .hero-inner > div, dialog[open] { animation: enter-page .32s ease-out both; }
  .hero-crest { animation: reveal-crest .85s cubic-bezier(.2,.65,.3,1) both; }
  .hero::after { animation: reveal-haze 3s ease-out both; }
  .button, .card-link, .tree-plate, .menu-toggle { transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
  .photo-button { overflow: hidden; }
  .photo-button img { transition: transform .32s ease-out; }
  @media (hover: hover) {
    .card-link:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem #0004; }
    .button:hover { transform: translateY(-1px); }
    .photo-button:hover img { transform: scale(1.025); }
  }
}
