* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #FAF6ED; color: #1D1D1F; -webkit-font-smoothing: antialiased; }
a { color: #B58520; }
.top { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.topbar { display: flex; align-items: center; padding: 18px 0 14px; border-bottom: 1px solid #E7DFCE; }
.brand { font-size: 20px; font-weight: 800; color: #16233F; text-decoration: none; letter-spacing: -.01em; }
.sitenav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.sitenav a { color: #6E6E73; text-decoration: none; }
.sitenav a:hover { color: #16233F; }
.sitenav a.on { color: #16233F; }
.masthead { text-align: center; padding: 52px 0 10px; }
.headline { font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #16233F; margin: 0; }
.lede { color: #6E6E73; font-size: 18px; line-height: 1.5; margin: 14px auto 0; max-width: 640px; }
.tagline { color: #6E6E73; font-size: 18px; line-height: 1.5; margin: 14px auto 0; max-width: 640px; }
.canon { margin: 18px auto 0; max-width: 640px; text-align: center; }
.canon .big { font-size: 17px; font-weight: 700; color: #16233F; }
.canon .sub { color: #6E6E73; font-size: 14.5px; margin-top: 3px; }
.canon .bar { height: 6px; background: #EFE7D2; border-radius: 99px; margin: 10px auto 0; max-width: 420px; overflow: hidden; }
.canon .fill { height: 100%; background: #E8A33D; border-radius: 99px; }
.searchrow { margin: 28px auto 4px; max-width: 820px; }
#search { width: 100%; font-family: inherit; font-size: 19px; padding: 16px 26px; border: 2px solid #16233F; border-radius: 999px; background: #fff; color: #1D1D1F; outline: none; -webkit-appearance: none; appearance: none; box-shadow: 0 12px 32px rgba(14,24,48,.09); }
#search:focus { border-color: #16233F; box-shadow: 0 12px 32px rgba(14,24,48,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 20px 0 4px; }
.chip { font-family: inherit; font-size: 15px; font-weight: 600; padding: 4px 1px; border: 0; border-bottom: 2px solid transparent; background: none; border-radius: 0; cursor: pointer; color: #6E6E73; text-decoration: none; }
.chip:hover { color: #16233F; }
.chip.on { background: none; border: 0; border-bottom: 2px solid #E8A33D; color: #16233F; font-weight: 800; }
main { max-width: 1080px; margin: 0 auto; padding: 18px; }
h2.viewtitle { font-size: 25px; font-weight: 800; letter-spacing: -.01em; color: #16233F; margin: 6px 0 4px; }
.count { color: #6E6E73; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid #E7DFCE; border-radius: 14px; overflow: hidden; position: relative; }
.cardmain { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: #B58520; }
.card .thumbwrap { height: 150px; display: flex; align-items: center; justify-content: center; background: #F6F1E4; padding: 8px; }
.card .thumbwrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .initial { font-size: 54px; font-weight: 700; color: #C9B280; }
.card .meta { padding: 9px 11px 11px; }
.card .t { font-size: 15px; font-weight: 700; line-height: 1.3; color: #16233F; }
.card .lic { font-size: 12.5px; color: #6E6E73; margin-top: 3px; display: block; }
.rankbadge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #FF6B57; color: #fff; }
.selbtn { position: absolute; top: 8px; right: 8px; z-index: 2; font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1.5px solid #E7DFCE; background: #fff; color: #16233F; cursor: pointer; }
.selbtn.on { background: #16233F; border-color: #16233F; color: #fff; }
.selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid #E7DFCE; }
.selbar .btn { padding: 8px 14px; font-size: 14.5px; }
.selbar .btn.go { background: #16233F; color: #fff; border-color: #16233F; }
.selcount { color: #6E6E73; font-size: 15px; min-width: 92px; }
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.preview { background: #fff; border: 1px solid #E7DFCE; border-radius: 16px; padding: 14px; text-align: center; }
.preview img { max-width: 100%; max-height: 420px; }
.preview .cap { font-size: 12.5px; color: #6E6E73; margin-top: 8px; }
.story h3 { font-size: 18px; color: #16233F; margin: 18px 0 5px; }
.story h3:first-child { margin-top: 0; }
.story p { line-height: 1.6; margin: 0 0 8px; }
.story ul { margin: 4px 0 8px; padding-left: 20px; line-height: 1.6; }
.btn { display: inline-block; background: #16233F; color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 12px; font-size: 15.5px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; }
.btn.alt { background: #fff; color: #16233F; border: 1.5px solid #16233F; }
.creditbox { background: #FAF7F0; border: 1px solid #E7DFCE; border-left: 3px solid #1A8917; border-radius: 12px; padding: 12px 15px; font-size: 14.5px; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; }
.tag { font-size: 13.5px; font-weight: 600; background: none; border-radius: 0; padding: 2px 0; text-decoration: none; color: #B58520; }
.tag:hover { background: none; color: #16233F; text-decoration: underline; }
.back { display: inline-block; margin-bottom: 12px; }
.foot { max-width: 1080px; margin: 10px auto 0; padding: 18px; color: #6E6E73; font-size: 14px; border-top: 1px solid #E7DFCE; }
.foot a { color: #B58520; }
.empty { text-align: center; color: #6E6E73; padding: 42px 0; font-size: 17px; }

.videowrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.videowrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.initial.videotile { background: #0E1830; color: #fff; }

.famgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fam { margin: 0; background: #fff; border: 1px solid #E7DFCE; border-radius: 14px; overflow: hidden; }
.famwrap { display: flex; align-items: center; justify-content: center; background: #F6F1E4; height: 190px; overflow: hidden; }
.famwrap img { width: 100%; height: 100%; object-fit: contain; }
.fam figcaption { padding: 9px 12px 11px; font-size: 13.5px; line-height: 1.45; }
.famcredit { color: #6E6E73; font-size: 12px; }

@media (max-width: 640px) {
  .headline { font-size: 38px; }
  .sitenav { gap: 16px; }
  .masthead { padding-top: 38px; }
}
