/* PAGE APPEARANCE: font, colors, layout and portrait sizes. */

@font-face {
  font-family:'Lobster Two';
  src:url('fonts/lobster-two.ttf') format('truetype');
  font-style:normal;
  font-weight:400;
  font-display:swap
}


:root {
  --ink:#070b12;
  --cream:#fff0df;
  --red:#ff4559;
  --muted:#decfd0
}

* {
  box-sizing:border-box
}

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

body {
  margin:0;
  font-family:'Lobster Two',serif;
  color:var(--cream);
  min-height:100svh;
  background:linear-gradient(180deg,#04071133,#04071122 45%,#040711ee),url('images/family-background.png') center top/cover fixed no-repeat
}

a,button {
  font:inherit
}

a {
  color:inherit
}

header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:18px clamp(20px,4vw,65px);
  border-bottom:1px solid #ee50652a;
  background:#05091475
}

.brand {
  display:block;
  flex-shrink:0;
  width:135px
}

.brand img {
  width:100%;
  display:block;
  filter:invert(1) grayscale(1) sepia(1) saturate(9) hue-rotate(310deg);
  mix-blend-mode:screen
}

.brand {
  isolation:auto
}

.top-message {
  flex:1;
  margin:0;
  padding-right:165px;
  text-align:center;
  font-size:clamp(27px,3.5vw,46px);
  line-height:1.25;
  color:var(--cream);
  text-shadow:0 2px 16px #000
}

@media(max-width:950px) {
  .top-message {
  padding-right:0;
  margin:12px 0 8px
}


}

nav {
  display:flex;
  align-items:center;
  gap:clamp(20px,3vw,45px);
  flex-wrap:wrap;
  justify-content:flex-end
}

nav a {
  text-decoration:none;
  font-size:clamp(21px,2vw,28px);
  padding:12px 0;
  position:relative;
  text-shadow:0 2px 15px #000;
  white-space:nowrap
}

nav a:after {
  content:'';
  position:absolute;
  bottom:3px;
  left:0;
  width:100%;
  height:1px;
  background:var(--red);
  transform:scaleX(0);
  transition:transform .2s
}

nav a:hover:after,nav a[aria-current=page]:after {
  transform:scaleX(1)
}

nav a[aria-current=page] {
  color:var(--red)
}

.hero {
  max-width:1120px;
  margin:auto;
  padding:clamp(70px,10vh,120px) 24px 80px;
  text-align:center;
  min-height:520px;
  display:flex;
  flex-direction:column;
  justify-content:center
}

.eyebrow {
  font-size:clamp(25px,3vw,36px);
  margin:0 0 10px;
  text-shadow:0 2px 16px black
}

h1 {
  font-weight:400;
  font-size:clamp(48px,7vw,91px);
  line-height:1.1;
  margin:0;
  color:#ff5264;
  text-shadow:0 0 9px #dd102877,0 0 30px #c2164144,0 4px 20px #000
}

.ornament {
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:center;
  margin:30px auto;
  color:var(--red);
  width:min(300px,70%)
}

.ornament:before,.ornament:after {
  content:'';
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,var(--red))
}

.ornament:after {
  transform:rotate(180deg)
}

.greeting {
  font-size:clamp(25px,3vw,36px);
  line-height:1.5;
  margin:0;
  text-shadow:0 3px 16px #000
}

.explore {
  max-width:1250px;
  margin:0 auto;
  padding:0 24px 70px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}

.card {
  display:flex;
  flex-direction:column;
  min-height:190px;
  text-decoration:none;
  padding:27px 24px;
  border:1px solid #bf405c66;
  border-radius:8px;
  background:linear-gradient(135deg,#100e19e8,#100914d9);
  box-shadow:0 15px 40px #0003;
  transition:transform .2s,border-color .2s,box-shadow .2s
}

.card:hover {
  transform:translateY(-5px);
  border-color:var(--red);
  box-shadow:0 10px 35px #a0173933
}

.card h2 {
  font-weight:400;
  color:#ff7080;
  font-size:31px;
  margin:0 0 12px
}

.card p {
  font-size:22px;
  line-height:1.4;
  margin:0;
  color:var(--muted)
}

.arrow {
  margin-top:auto;
  padding-top:20px;
  color:#ff8793;
  font-size:26px
}

footer {
  text-align:center;
  font-size:19px;
  color:#c8b8bf;
  padding:25px 20px;
  border-top:1px solid #bf405c33;
  background:#04070bbb
}

.skip {
  position:absolute;
  top:-100px;
  left:20px;
  background:#111;
  padding:10px;
  z-index:5
}

.skip:focus {
  top:10px
}

a:focus-visible {
  outline:2px solid var(--cream);
  outline-offset:6px
}

@media(max-width:950px) {
  header {
  flex-direction:column;
  gap:8px
}

.brand {
  width:110px
}

nav {
  justify-content:center;
  gap:12px 25px
}

.explore {
  grid-template-columns:repeat(2,1fr)
}

.hero {
  padding-top:65px;
  min-height:420px
}


}

@media(max-width:520px) {
  body {
  background-attachment:scroll
}

header {
  padding:14px 16px
}

nav a {
  font-size:21px
}

nav {
  gap:5px 20px
}

.hero {
  padding:60px 20px
}

.explore {
  grid-template-columns:1fr
}

.card {
  min-height:155px
}

.brand {
  width:96px
}


}

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

* {
  transition:none!important
}


}


header {
  flex-direction:column;
  gap:14px
}

nav {
  justify-content:center;
  width:100%;
  gap:18px 28px
}

.family-preview {
  margin:35px auto 0;
  width:100%;
  max-width:1050px
}

.family-preview img {
  display:block;
  width:100%;
  height:auto;
  border:1px solid #ff455966;
  border-radius:8px;
  box-shadow:0 18px 45px #0009
}

.family-preview figcaption {
  font-size:20px;
  margin-top:14px;
  color:var(--muted)
}


.hero {
  max-width:1250px;
  padding:55px 24px 65px;
  min-height:0
}

.greeting {
  font-size:clamp(24px,3vw,31px)
}


.family-gallery {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:42px 30px;
  margin-top:42px;
  text-align:center
}

.family-member {
  margin:0;
  min-width:0
}

.portrait-button {
  width:100%;
  display:block;
  border:0;
  background:transparent;
  padding:0;
  cursor:zoom-in;
  color:inherit
}

.portrait-button img {
  width:100%;
  height:360px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 12px 15px #000a);
  transition:transform .2s
}

.portrait-button:hover img {
  transform:translateY(-5px)
}

.family-member h2 {
  font-weight:400;
  font-size:30px;
  color:#f5d593;
  margin:16px 0 0;
  text-shadow:0 2px 9px #000
}

.gallery-note {
  margin-top:42px;
  font-size:23px;
  color:var(--muted)
}


.portrait-viewer {
  border:1px solid #bda171;
  border-radius:12px;
  padding:24px;
  background:#080b13;
  color:#fff0df;
  width:min(900px,94vw);
  max-height:94vh
}

.portrait-viewer::backdrop {
  background:#000d
}

.viewer-close {
  display:block;
  margin:0 0 10px auto;
  background:#201c21;
  border:1px solid #bda171;
  border-radius:5px;
  padding:7px 18px;
  color:#fff0df;
  cursor:pointer;
  font-size:21px
}

.portrait-viewer img {
  display:block;
  width:100%;
  height:70vh;
  object-fit:contain
}

.portrait-viewer h2 {
  text-align:center;
  font-weight:400;
  font-size:30px;
  color:#f5d593;
  margin:12px 0 0
}

.portrait-button:focus-visible,.viewer-close:focus-visible {
  outline:2px solid #fff0df;
  outline-offset:6px
}


@media(max-width:850px) {
  .family-gallery {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:32px 20px
}

.portrait-button img {
  height:320px
}


}

@media(max-width:520px) {
  .family-gallery {
  grid-template-columns:1fr;
  gap:36px
}

.portrait-button img {
  height:390px;
  max-height:65vh
}

.hero {
  padding-top:42px
}

.family-member h2 {
  font-size:29px
}


}


