@import url("fonts.css");

:root {
  color-scheme: dark;
  --forest: #101b16;
  --deep: #0b1511;
  --cream: #f2e8d4;
  --muted: #c8c1af;
  --gold: #d9b77b;
  --line: #a9895655;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Manrope, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--cream); font: 400 15px/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1248px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: absolute; top: -120px; left: 16px; z-index: 3; background: var(--cream); color: var(--deep); padding: 8px 16px; }
.skip:focus { top: 12px; }

.site-header { background: #0c1712; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; gap: 13px; align-items: center; flex-shrink: 0; }
.brand-crest { width: 54px; height: 54px; border-radius: 100%; object-fit: cover; }
.brand-name { color: var(--cream); font: 600 24px/.95 var(--display); white-space: nowrap; }
.brand small { display: block; margin-top: 7px; color: var(--gold); font: 600 9px/1 var(--body); letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 55px); }
.site-nav a { white-space: nowrap; color: var(--muted); font-size: 13px; }
.site-nav a:hover, .footer-inner a:hover { color: var(--gold); }
.langs { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.langs [aria-current] { color: var(--gold); }
.langs span + span, .langs a + span, .langs span + a { border-left: 1px solid var(--line); padding-left: 10px; }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 70% 40%, #22352a, transparent 65%), linear-gradient(110deg, #10221a 5%, #102018 53%, #0b1712 100%); }
.hero-inner { min-height: min(680px, 62vw); padding-block: 49px 65px; display: grid; grid-template-columns: .96fr 1fr; align-items: center; gap: clamp(35px, 6vw, 94px); }
.hero-copy { padding-block: 25px 14px; }
.ornament { display: flex; width: fit-content; align-items: center; gap: 9px; color: var(--gold); margin-bottom: 23px; }
.ornament::before, .ornament::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.ornament span { line-height: 1; font-size: 21px; }
.eyebrow { font-size: 11px; color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.hero h1 { margin: 18px 0 24px; font: 500 clamp(4.5rem, 8.3vw, 8rem)/.79 var(--display); letter-spacing: -.045em; }
.hero h1 span { display: block; margin-top: .11em; color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 390px; color: var(--muted); }
.actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 33px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 20px; font-size: 13px; font-weight: 700; }
.button-main { background: var(--gold); color: #152019; border: 1px solid var(--gold); }
.button-main:hover { background: #e9cc96; }
.button-line { border: 1px solid #c6a97473; color: var(--cream); }
.button-line:hover { border-color: var(--gold); }
.hero-portrait { position: relative; isolation: isolate; padding: 9px; border: 1px solid #b7955f9e; border-radius: 49% 49% 2px 2px / 42% 42% 2px 2px; }
.hero-portrait img { width: 100%; height: clamp(420px, 43vw, 548px); object-fit: cover; object-position: 52% 50%; border-radius: inherit; }
.hero-portrait::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; box-shadow: inset 0 -30px 85px #261b1a6b; pointer-events: none; }

.gallery { padding-block: 75px 92px; background: radial-gradient(ellipse at 20% 0%, #17251e, transparent 70%), var(--deep); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-title { font: 500 clamp(3.1rem, 5.7vw, 5.1rem)/.91 var(--display); letter-spacing: -.041em; }
.gallery-heading p { color: var(--muted); margin-top: 12px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 4px; }
.filter { color: var(--muted); padding: 7px 13px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #152019; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.photo-tile { position: relative; display: block; width: 100%; padding: 6px; border: 1px solid var(--line); background: #192720; text-align: left; }
.photo-tile img { width: 100%; height: auto; aspect-ratio: 1.27; object-fit: cover; object-position: var(--crop, 50% 52%); }
.photo-tile:hover { border-color: var(--gold); }
.view-glyph { color: #fff7e4; position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 32px; height: 32px; background: #10201bde; border: 1px solid #e6cb887c; font-size: 17px; }

.breed { background: #eae0ca; color: #263129; padding-block: 89px; }
.breed-inner { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(37px, 7vw, 112px); }
.breed-image { border: 1px solid #96805e88; padding: 8px; min-width: 0; }
.breed-image img { width: 100%; height: auto; aspect-ratio: 1.1; object-fit: cover; object-position: 54% 50%; }
.breed .eyebrow { color: #6d532e; margin-bottom: 13px; }
.breed .intro { margin-top: 16px; max-width: 520px; }
.breed-notes { display: grid; gap: 0; margin: 24px 0 0; }
.breed-notes div { border-top: 1px solid #88735255; padding: 10px 0; }
.breed-notes dt { font-weight: 700; }
.breed-notes dd { margin: 2px 0 0; color: #3c463e; font-size: 14px; }
.breed-source { display: inline-block; margin-top: 9px; color: #4e503c; text-decoration: underline; text-underline-offset: .2em; font-size: 12px; }

.contact { padding-block: 66px; background: radial-gradient(ellipse at 70% 30%, #213329, #101b16 70%); }
.contact-inner { display: grid; grid-template-columns: minmax(160px, 254px) 1fr; gap: 54px; align-items: center; max-width: 850px; }
.large-crest { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.contact p { color: var(--muted); margin: 14px 0 20px; max-width: 450px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { min-height: 66px; }
.footer-name { font: 500 22px var(--display); color: var(--cream); }

.photo-dialog { position: fixed; width: min(92vw, 1160px); padding: 0; border: 1px solid var(--line); background: #0c1712; color: var(--cream); }
.photo-dialog::backdrop { background: #050a07e9; }
.dialog-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.dialog-count { color: var(--muted); font-size: 12px; }
.dialog-buttons { display: flex; gap: 8px; }
.dialog-buttons button { min-width: 40px; min-height: 38px; background: transparent; border: 1px solid var(--line); color: var(--cream); font-size: 18px; }
.dialog-buttons button:hover { border-color: var(--gold); }
.photo-dialog img { height: min(73vh, 760px); height: min(73dvh, 760px); width: 100%; object-fit: contain; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { gap: 34px; }
  .hero h1 { font-size: clamp(3.9rem, 9.2vw, 6.3rem); }
  .hero-portrait img { height: 465px; }
  .breed-inner { gap: 34px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 10px; padding-top: 11px; }
  .brand-crest { width: 46px; height: 46px; }
  .brand-name { font-size: 22px; }
  .brand small { font-size: 8px; }
  .site-nav { grid-column: 1/-1; grid-row: 2; gap: clamp(15px, 5vw, 35px); min-height: 46px; }
  .site-nav a { font-size: 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 27px; padding-block: 31px 38px; }
  .hero-copy { padding: 0; }
  .ornament { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(4.25rem, 13vw, 6.1rem); margin: 14px 0 18px; }
  .actions { margin-top: 22px; }
  .hero-portrait { padding: 6px; max-width: 540px; }
  .hero-portrait img { height: auto; aspect-ratio: 1.09; }
  .hero-portrait::after { inset: 6px; }
  .gallery, .breed { padding-block: 53px; }
  .gallery-heading { display: grid; gap: 17px; margin-bottom: 13px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .photo-tile { padding: 4px; }
  .view-glyph { right: 9px; bottom: 9px; width: 25px; height: 25px; }
  .breed-inner { grid-template-columns: 1fr; gap: 24px; }
  .breed-image { order: 2; }
  .breed-image img { aspect-ratio: 1.3; }
  .contact { padding-block: 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 16px; }
  .large-crest { max-width: 145px; }
  .footer-inner { gap: 9px 20px; flex-wrap: wrap; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-tile:nth-child(1) { --crop: 49% 55%; }
.photo-tile:nth-child(2) { --crop: 55% 63%; }
.photo-tile:nth-child(3) { --crop: 50% 35%; }
.photo-tile:nth-child(4) { --crop: 56% 59%; }
.photo-tile:nth-child(5) { --crop: 51% 55%; }
.photo-tile:nth-child(6) { --crop: 55% 61%; }

.analytics-settings { color: var(--muted); border: 0; background: transparent; padding: 6px 0; }
.analytics-settings:hover { color: var(--gold); }
.analytics-panel {
  position: fixed;
  z-index: 2;
  right: max(16px, 3vw);
  bottom: 16px;
  width: min(410px, calc(100% - 32px));
  padding: 17px;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 30px #0006;
}
.analytics-panel h2 { font: 600 26px/1.15 var(--display); }
.analytics-panel p { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.analytics-panel .button { min-height: 38px; }
