* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #101e2d;
  background: #f6f5f0;
  --ink: #101e2d;
  --muted: #50606b;
  --line: #dadeda;
  --accent: #1e6054;
  --gold: #fce6b8;
}
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #158678; outline-offset: 3px; }
.wrap { width: min(1294px, 100% - 72px); margin-inline: auto; }
.top { background: #14252f; color: #f7f5ed; border-bottom: 1px solid #33434c; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #a6bfb6; color: inherit; font: bold 20px Georgia, serif;
}
.sign-out { color: #dfebe5; background: transparent; border: 1px solid #667970; border-radius: 5px; padding: 7px 12px; }
.intro { color: #f7f5ed; background: #14252f; }
.intro-inner { padding-block: 48px 55px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { color: #a3ccb9; text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 10px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -.055em; }
.intro-inner > p { max-width: 33ch; margin: 0 0 2px; color: #d6e4dd; line-height: 1.55; }
.tabs { display: flex; justify-content: start; gap: 9px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.tabs button {
  border: 1px solid transparent; background: transparent; color: #374751;
  border-radius: 5px; padding: 10px 13px; text-align: start; font-size: .91rem; font-weight: 650;
}
.tabs button[aria-selected="true"] { background: #e2ebe5; color: #11483c; border-color: #b0c8b9; }
.tabs button span:not(:empty) { display: inline-block; margin-left: 6px; color: inherit; opacity: .85; font-size: .79rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-block: 32px 22px; }
.section-head h2 { font-size: clamp(1.68rem, 3.5vw, 2.65rem); letter-spacing: -.04em; }
#summary { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
#filter:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .91rem; }
#featured { accent-color: #155546; width: 16px; height: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  display: block; position: relative; width: 100%; overflow: hidden; padding: 0;
  border: 1px solid #d8ddd8; border-radius: 9px; background: #fffefa; color: var(--ink); text-align: left;
}
.card:hover { border-color: #799789; }
.frame { display: block; width: 100%; overflow: hidden; aspect-ratio: 4/3; background: #e6eae2; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.portrait img { object-fit: contain; background: #e1e5df; }
.badge {
  position: absolute; inset: 11px auto auto 11px; color: #282015; background: var(--gold);
  border-radius: 3px; padding: 4px 8px; font-size: .76rem; font-weight: 700;
}
.caption { display: block; padding: 12px 14px 15px; min-height: 86px; }
.caption strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.caption span { color: var(--muted); font-size: .84rem; line-height: 1.36; }
footer { border-top: 1px solid var(--line); margin: 32px 0 0; padding: 17px 0 34px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
dialog {
  border: 1px solid #74887e; padding: 0; border-radius: 10px; color: #fff;
  background: #14252f; width: min(900px, 100% - 30px); max-height: 94dvh;
}
dialog::backdrop { background: rgb(9 20 25 / 86%); }
.viewer-top, .viewer-bottom { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 10px 16px; }
.viewer-top { align-items: center; }
.viewer-top p { margin: 0; color: #d6e4dd; font-size: .87rem; }
.viewer-bottom h2 { font-size: 1.25rem; }
.viewer-bottom p { color: #d5e2db; margin: 5px 0; font-size: .9rem; }
.viewer-bottom #photo-source { color: #afccc0; }
dialog figure { display: grid; place-items: center; margin: 0; background: #0d181c; }
dialog img { display: block; max-width: 100%; max-height: min(64dvh, 750px); object-fit: contain; }
dialog button { min-width: 36px; min-height: 36px; border: 1px solid #768d81; border-radius: 4px; background: transparent; color: white; }
dialog button:disabled { opacity: .3; cursor: default; }
.viewer-nav { display: flex; gap: 6px; }
.sign-in { width: min(440px, 100% - 32px); margin: 10vh auto; padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; }
.sign-in h1 { margin-top: 24px; font-size: 3rem; }
.sign-in p { color: var(--muted); line-height: 1.5; }
.sign-in form { display: grid; gap: 10px; margin-top: 22px; }
.sign-in input { border: 1px solid #a1aaa2; border-radius: 5px; padding: 10px; }
.primary { border: 0; background: #155546; color: #fff; padding: 12px; border-radius: 5px; font-weight: 700; }
.sign-in .feedback { color: #952625; margin: 0; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .intro-inner { display: block; padding-block: 33px; }
  .intro-inner > p { margin-top: 12px; max-width: 43ch; }
  .tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .tabs button { font-size: .87rem; padding: 9px 8px; }
  .section-head { margin-block: 21px 15px; }
  .grid { gap: 10px; }
  .caption { min-height: 0; padding: 9px; }
  .caption strong { font-size: .9rem; }
  .caption span { font-size: .75rem; }
}
@media (max-width: 350px) { .grid { grid-template-columns: minmax(0, 1fr); } }
