/* Page layout from the Family Album design, on top of the Classical styles.css. */
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-size: 19px; line-height: 1.6; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }
.loading, .fatal { max-width: 40em; margin: 20vh auto; padding: 0 20px; text-align: center; color: var(--color-neutral-700); }

/* Real photos keep their own tones: the plate's sepia grade would tint the
   restored and colorized versions. The mat and hairline stay. */
img.plate { filter: none; background: var(--color-neutral-100); }

.kicker { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); font-variant-numeric: tabular-nums; }
.muted { color: var(--color-neutral-700); }
.q { color: var(--color-accent-700); font-weight: 600; }
.back-link { font-size: 18px; display: inline-block; padding: 8px 0; }
.big-btn { min-height: 52px; font-size: 20px; padding: 10px 22px; }
.btn-primary.big-btn, .lock .btn-primary { color: var(--color-accent-700); border-color: var(--color-accent-700); }
.btn-secondary.big-btn { border-color: var(--color-neutral-500); }
.input { border-color: var(--color-neutral-500); }
.error { font-size: 18px; color: var(--color-accent-800); }

/* lock page */
.lock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.lock form { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 28px; text-align: center; }
.lock h1 { font-size: 52px; font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
.lock .rule { height: 1px; background: var(--color-divider); }
.lock .field-col { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.lock label { font-size: 19px; font-weight: 600; }
.lock .row { display: flex; gap: 8px; }
.lock .input { min-height: 56px; font-size: 20px; padding: 10px 14px; flex: 1; min-width: 0; }
.lock .row .btn { min-height: 56px; min-width: 76px; font-size: 18px; border-color: var(--color-neutral-500); }
.lock button[type=submit] { min-height: 58px; font-size: 22px; width: 100%; }
.lock p { font-size: 16px; margin: 0; }

/* header */
.top { border-bottom: 1px solid var(--color-divider); }
.top nav { max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--color-text); text-decoration: none; margin-right: auto; }
.top .links { display: flex; flex-wrap: wrap; gap: 4px; }
.top .links a { padding: 10px 12px; font-size: 18px; color: var(--color-text); text-decoration: none; border-bottom: 2px solid transparent; }
.top .links a.on { border-bottom-color: var(--color-accent); }

main { margin: 0 auto; padding: 44px 20px 80px; }
.w1000 { max-width: 1000px; }
.w1100 { max-width: 1100px; }
.page-title { font-size: clamp(40px, 7vw, 56px); font-weight: 400; margin: 0; }

/* home */
.hero { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 12px 0 44px; border-bottom: 1px solid var(--color-divider); }
.hero h1 { font-size: clamp(44px, 8vw, 72px); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; }
.hero .dates { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 20px; font-variant-numeric: tabular-nums; }
.hero .dates .dot { color: var(--color-accent); }
.hero .btn { margin-top: 14px; }
.sec { padding: 44px 0; border-bottom: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 16px; }
.sec h2 { margin: 0; font-size: 40px; font-weight: 400; line-height: 1.1; }
.sec h2 a { color: var(--color-text); text-decoration: none; }
.sec .excerpt { margin: 0; max-width: 40em; text-align: justify; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sec .strip { display: flex; flex-wrap: wrap; gap: 12px; text-decoration: none; margin-top: 6px; }
.sec .strip img { border-width: 5px; height: auto; min-width: 0; }
.sec .open { font-size: 19px; display: inline-block; padding: 8px 0; }

/* section page */
.sec-head { max-width: 40em; margin: 28px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.sec-head h1 { font-size: clamp(40px, 7vw, 60px); font-weight: 400; line-height: 1.05; margin: 0 0 8px; }
.sec-head p { margin: 0; text-align: justify; hyphens: auto; font-size: 20px; line-height: 1.65; }
.divider { height: 1px; background: var(--color-divider); margin-bottom: 28px; }
.count { font-size: 28px; margin: 0 0 20px; }

/* photo grid */
.grid { display: flex; flex-wrap: wrap; gap: 24px 18px; }
.grid .fill { flex: 999 1 0px; }
.thumb { display: flex; flex-direction: column; gap: 8px; color: var(--color-text); text-decoration: none; min-width: 0; }
.thumb img { width: 100%; height: auto; }
.thumb .t { font-size: 18px; line-height: 1.3; }
.thumb .d { font-size: 16px; color: var(--color-neutral-700); font-variant-numeric: tabular-nums; }
.empty { font-style: italic; color: var(--color-neutral-700); }

/* all photos */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sort { display: flex; flex-direction: column; gap: 6px; }
.sort > span { font-size: 16px; color: var(--color-neutral-700); }
.seg { border-color: var(--color-neutral-500); flex-wrap: wrap; }
.seg-opt { font-size: 18px; padding: 12px 18px; min-height: 48px; }

/* tags */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tag-card { padding: 18px 20px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--color-text); text-decoration: none; border-color: var(--color-neutral-400); }
.tag-card:hover { border-color: var(--color-accent); background: var(--color-accent-100); color: var(--color-text); }
.tag-card .n { font-family: var(--font-heading); font-size: 26px; font-weight: 600; overflow-wrap: anywhere; }
.tag-card .c { font-size: 17px; color: var(--color-neutral-700); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* photo page */
.photo-main { padding-top: 28px; }
.photo-head { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 2px; }
.photo-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 400; margin: 0; line-height: 1.1; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { min-height: 50px; padding: 10px 18px; font-family: var(--font-heading); font-weight: 600; font-size: 20px; border-radius: var(--radius-md); cursor: pointer; color: var(--color-text); background: transparent; border: 2px solid var(--color-neutral-400); }
.tabs button:hover { background: var(--color-neutral-200); }
.tabs button[aria-selected=true] { color: var(--color-accent-800); background: var(--color-accent-100); border-color: var(--color-accent-700); }
.stage { display: flex; justify-content: center; background: var(--color-neutral-200); padding: clamp(12px, 3vw, 32px); border-radius: var(--radius-md); touch-action: pan-y; }
.stage img { height: auto; max-width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.actions .grow { flex: 1 1 0px; }
.hint { margin-top: 10px; font-size: 16px; color: var(--color-neutral-700); }
.cols { display: flex; flex-wrap: wrap; gap: 48px 56px; margin-top: 48px; }
.cols > section { min-width: 0; }
.cols h2 { font-size: 32px; margin: 0 0 6px; }
.details { flex: 1 1 340px; }
.details .note { font-size: 17px; color: var(--color-neutral-700); margin: 0 0 14px; }
.rows { border-top: 1px solid var(--color-divider); }
.drow { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.drow .l { flex: 0 0 110px; font-size: 17px; color: var(--color-neutral-700); }
.drow .v { flex: 1 1 200px; min-width: 0; }
.drow .items { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.drow .none { font-style: italic; color: var(--color-neutral-700); }
.drow .quote { font-family: var(--font-heading); font-style: italic; font-size: 22px; line-height: 1.4; white-space: pre-line; }
.drow .tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.drow .tag { font-size: 17px; padding: 8px 14px; min-height: 40px; text-decoration: none; color: var(--color-accent-700); border-color: var(--color-accent-700); }
.drow .tag:hover { background: var(--color-accent-100); }
.comments { flex: 1 1 400px; }
.comments h2 { margin-bottom: 14px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 6px; }
.comment .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.comment .who b { font-weight: 600; }
.comment .who span { font-size: 16px; color: var(--color-neutral-700); }
.comment p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.no-comments { margin: 0; padding: 20px 0; font-style: italic; color: var(--color-neutral-700); border-bottom: 1px solid var(--color-divider); }
.cform { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.cform h3 { font-size: 24px; margin: 0; }
.cform .f { display: flex; flex-direction: column; gap: 6px; }
.cform label { font-size: 18px; }
.cform .input { min-height: 52px; font-size: 19px; padding: 10px 14px; }
.cform textarea.input { min-height: 130px; line-height: 1.5; padding: 12px 14px; }
.cform small { font-size: 15px; color: var(--color-neutral-700); }

footer { border-top: 1px solid var(--color-divider); padding: 28px 20px; text-align: center; font-size: 16px; color: var(--color-neutral-700); }
