/* Category links on the home page and the shared photo-gallery layout. */
:root {
  --cream: #fffaf5;
  --brown: #76564d;
  --rose: #b87978;
  --ink: #55413b;
}

* { box-sizing: border-box; }
a:focus-visible { outline: 3px solid var(--brown); outline-offset: 5px; }
.category-card { display: block; color: inherit; text-decoration: none; transition: transform .2s ease; }
.category-card:hover { transform: translateY(-5px); }
.category-card .card-art { overflow: hidden; }
.category-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-card:hover img { transform: scale(1.035); }
.card-link { display: inline-block; margin: 0 18px 24px; padding-bottom: 5px; border-bottom: 1px solid #d7b7ad; color: var(--brown); font-size: 15px; }
.card-link span { margin-left: 8px; }
.sample-note { color: #806d65; font-size: 14px; line-height: 1.6; }
.home-sample-note { text-align: center; margin: 22px 0 0; }

.gallery-page { margin: 0; background: var(--cream); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--cream); color: var(--brown); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding: 18px 6%; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid #ead8d2; }
.brand { color: var(--brown); font-size: 27px; font-weight: bold; letter-spacing: .5px; text-decoration: none; }
.brand small { display: block; margin-top: 3px; color: var(--rose); font-size: 10px; font-weight: normal; letter-spacing: 1.3px; text-align: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-nav a { color: var(--brown); font-size: 15px; text-decoration: none; }
.site-nav a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.gallery-main { max-width: 1240px; margin: 0 auto; padding: 38px 6% 76px; }
.back-link { display: inline-flex; gap: 10px; align-items: center; color: var(--brown); font-size: 15px; text-decoration: none; }
.gallery-heading { padding: 46px 0 30px; max-width: 650px; }
.gallery-eyebrow { margin: 0 0 15px; color: var(--rose); font-size: 12px; letter-spacing: 2px; }
.gallery-heading h1 { margin: 0; color: var(--brown); font-size: clamp(44px, 7vw, 76px); font-weight: normal; line-height: 1.12; }
.gallery-description { margin: 22px 0 0; color: #765f57; font-size: 19px; line-height: 1.7; }
.category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.category-nav a { padding: 11px 19px; border: 1px solid #dfc8c0; border-radius: 30px; color: var(--brown); text-decoration: none; font-size: 15px; }
.category-nav a:hover { background: #faefec; }
.category-nav a[aria-current="page"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.photo-gallery { display: grid; grid-template-columns: 1.08fr 1fr; gap: 26px; margin: 26px 0 46px; align-items: start; }
.gallery-photo { margin: 0; min-width: 0; }
.gallery-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #f3dcd9; }
.gallery-photo figcaption { display: flex; align-items: baseline; gap: 13px; padding: 17px 2px 0; color: var(--brown); font-size: 20px; line-height: 1.4; }
.photo-number { color: var(--rose); font-size: 13px; font-style: italic; }
.photo-gallery--three .gallery-photo:first-child { grid-row: span 2; }
.photo-gallery--three .gallery-photo:first-child img { aspect-ratio: 4 / 6.7; }
.photo-gallery--three .gallery-photo:not(:first-child) img { aspect-ratio: 3 / 2; }
.gallery-contact { padding: 30px 32px; border-top: 1px solid #ead8d2; border-bottom: 1px solid #ead8d2; display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #faefec; }
.gallery-contact h2 { margin: 0 0 10px; color: var(--brown); font-size: 27px; font-weight: normal; }
.gallery-contact p { margin: 0; color: #765f57; font-size: 16px; line-height: 1.7; }
.contact-link { flex-shrink: 0; display: inline-block; padding: 13px 23px; border-radius: 28px; color: white; background: var(--brown); text-decoration: none; font-size: 15px; }
.contact-link:hover { background: #60433b; }
.site-footer { padding: 25px; text-align: center; background: var(--brown); color: #fff4ed; font-size: 13px; line-height: 1.7; }

@media (max-width: 700px) {
  .site-header { padding: 18px 5%; flex-direction: column; gap: 18px; }
  .site-nav { justify-content: center; gap: 18px; }
  .site-nav a { font-size: 13px; }
  .gallery-main { padding: 28px 6% 50px; }
  .gallery-heading { padding-top: 36px; }
  .gallery-description { font-size: 17px; }
  .category-nav { gap: 8px; }
  .category-nav a { padding: 10px 13px; font-size: 14px; }
  .photo-gallery { grid-template-columns: 1fr; gap: 30px; }
  .photo-gallery--three .gallery-photo:first-child { grid-row: auto; }
  .photo-gallery--three .gallery-photo:first-child img,
  .photo-gallery--three .gallery-photo:not(:first-child) img { aspect-ratio: 4 / 5; }
  .gallery-contact { padding: 25px 22px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .category-card, .category-card img { transition: none; }
  .category-card:hover, .category-card:hover img { transform: none; }
}
