/* Matches the dillonjonesphoto.com home page: warm paper, ink, rust accent. */
:root {
  --paper: #f6f3ee; --paper-2: #ece7df; --card: #fffdf9; --ink: #1d1b19; --ink-2: #55504a; --line: #d9d2c7;
  --accent: #b4532f; --accent-ink: #fff; --ok: #2f6b3f; --warn: #9a5b00;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1400px; --gut: clamp(16px, 3vw, 40px); --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412; --paper-2: #1f1d1a; --card: #1b1a17; --ink: #f1ece4; --ink-2: #b3aa9e; --line: #36322c;
    --accent: #d06c45; --ok: #6fbf84; --warn: #e3a64a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151412; --paper-2: #1f1d1a; --card: #1b1a17; --ink: #f1ece4; --ink-2: #b3aa9e; --line: #36322c;
  --accent: #d06c45; --ok: #6fbf84; --warn: #e3a64a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--serif); font-size: 24px; text-decoration: none; letter-spacing: .01em; }
.brand small { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .5; cursor: default; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 14px; min-width: 44px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }

input[type=text], input[type=password], input[type=number], input[type=date], select {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 8px 10px; min-height: 40px; width: 100%; }

/* Header that floats over a banner, turning solid on scroll */
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a:not(.btn) { text-decoration: none; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; }
.top.over { position: sticky; top: 0; z-index: 25; transition: background .2s, border-color .2s; }
.has-hero .top.over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.has-hero .top.over.solid { background: var(--paper); border-color: var(--line); color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } .nav .btn { min-height: 36px; padding: 0 12px; font-size: 13px; } }

/* Banner: the newest game's headline photo */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; background: #151412; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.82) 100%); }
.hero-in { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(28px, 6vh, 64px); }
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin: 0 0 8px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { margin: 10px 0 22px; font-size: 16px; opacity: .9; }
.jump { display: grid; gap: 8px; max-width: 520px; }
.jump label { font-weight: 600; font-size: 15px; }
.jump-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jump-row span { font-family: var(--serif); font-size: 44px; line-height: 1; opacity: .9; }
.jump-row input { width: 110px; min-height: 60px; font-size: 32px; font-weight: 600; text-align: center; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px); }
.jump-row input::placeholder { color: rgba(255,255,255,.45); }
.jump-row input:focus { outline: none; border-color: #fff; }
.jump-row .btn { min-height: 60px; font-size: 16px; padding: 0 22px; }
.browse-all { color: #fff; opacity: .85; font-size: 14px; }

.pagehead { padding: 36px 0 16px; }
.pagehead h1 { font-size: clamp(34px, 5vw, 56px); }
.pagehead .kicker { margin-bottom: 6px; }
.thanks { display: grid; gap: 12px; }
.thanks h2 { font-size: 30px; }
.thanks p { margin: 4px 0 0; }
.tile.dl { cursor: pointer; }
.hero.short { min-height: min(46vh, 440px); }
.hero.short h1 { font-size: clamp(36px, 6vw, 68px); max-width: 18ch; }
.hero.short .hero-sub { margin-bottom: 0; }

/* How it works + questions (home page) */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 8px 0 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.how b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.how h3 { font-size: 24px; margin: 10px 0 4px; }
.how p { margin: 0; color: var(--ink-2); }
.faq { max-width: 760px; padding-bottom: 60px; }
.faq h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-2); margin: 8px 0 0; }

/* Gallery list */
.games-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 40px 0 20px; }
.games-head h2 { font-size: clamp(32px, 4.5vw, 48px); }
.games-head p { margin: 6px 0 0; }
.games-head input { max-width: 260px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 60px; }
.card { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.card-img { aspect-ratio: 3/2; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card > div:last-child { padding: 12px 14px; }
.card h3 { font-size: 22px; }

/* Gallery page */
.ghead { padding: 28px 0 12px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.ghead h1 { font-size: clamp(30px, 4.5vw, 48px); }
.finder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.finder h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.search { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.search span { font-family: var(--serif); font-size: 40px; color: var(--ink-2); }
.search input { width: 120px; font-size: 32px; font-weight: 600; text-align: center; min-height: 60px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.search input:focus { outline: none; border-color: var(--accent); }
#lookFor .search { margin-bottom: 6px; }
#lookFor .search input { flex: 1 1 220px; width: auto; min-width: 0; font-size: 18px; font-weight: 400; text-align: left; min-height: 48px; padding: 0 12px; color: var(--ink); }
#allNumbers { margin-top: 10px; }
#allNumbers summary { cursor: pointer; color: var(--ink-2); margin-bottom: 8px; }
.teams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.package { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Packages: chosen before picking photos */
.packages { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; scroll-margin-top: 90px; }
.packages h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 8px; padding-top: 10px; }
.pkg { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: center; }
.pkg:hover { border-color: var(--ink-2); }
.pkg.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }
.pkg-n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.pkg-s { font-size: 13px; color: var(--ink-2); }
.pkg-p { font-size: 18px; font-weight: 600; margin-top: 4px; }
.pkg-e { font-size: 12px; color: var(--ink-2); }
.pkg.on .pkg-p { color: var(--accent); }
/* The recommended package: a small label riding on the card's top edge. */
.pkg.recommended { position: relative; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); padding-top: 18px; }
.pkg-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.packages.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--accent); } }
.season { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 14px; }
.season a { color: var(--accent); font-weight: 600; text-decoration: none; }
.prices { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.prices summary { cursor: pointer; }
@media (max-width: 520px) { .brand small { display: none; } .brand { font-size: 22px; } }
.banner { background: var(--paper-2); border: 1px dashed var(--line); padding: 10px 14px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }

.browse { display: grid; gap: 8px; margin: 0 0 12px; }
.browse .line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.browse .line > b { font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 70px; }
.browse select { width: auto; min-height: 34px; padding: 4px 8px; }
.divider { grid-column: 1 / -1; padding: 14px 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.divider b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.divider span { display: block; font-size: 13px; color: var(--ink-2); }
/* Justified rows: tiles grow in proportion to their width/height (--r), so every photo
   keeps its shape and each row fills the width. The ::after filler stops the last row stretching. */
.grid { --row: 190px; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 120px; }
.grid::after { content: ""; flex-grow: 999; }
/* Phones: short enough rows that two wide photos sit side by side (each ≈ 3:2). */
@media (max-width: 520px) { .grid { --row: calc((100vw - 2 * var(--gut) - 4px) / 3.05); gap: 4px; } }
@media (max-width: 520px) {
  .cartbar .wrap { flex-wrap: nowrap; gap: 6px; min-height: 58px; }
  .cartbar .sum { font-size: 14px; }
  .cartbar .sum b { font-size: 18px; }
  .cartbar .note { display: none; }
  .cartbar .btn { padding: 0 10px; min-height: 38px; }
  #clearCart { display: none; }
}
.tile { position: relative; background: var(--paper-2); overflow: hidden; border-radius: 3px; cursor: zoom-in;
  flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--row)); height: var(--row); }
.grid > .divider { flex-basis: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .pick { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 18px; line-height: 1; }
.tile .heart { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tile .heart.on { background: #fff; color: #c62f4b; }
.unlock { max-width: 520px; margin: 40px auto; }
.unlock h2 { margin-bottom: 4px; }
.tile .why { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 12px; line-height: 1.3; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.tile.in-cart { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.in-cart .pick { background: var(--accent); border-color: var(--accent); }
.more { text-align: center; padding: 20px; }

/* Cart bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--paper); z-index: 20; }
.cartbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.cartbar .sum { font-size: 16px; }
.cartbar .sum b { font-size: 20px; }
.cartbar .note { font-size: 13px; opacity: .8; }
.cartbar .btn { border-color: transparent; }
.cartbar .btn.ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,9,8,.94); z-index: 30; display: grid; grid-template-rows: auto 1fr auto; color: #f1ece4; }
.lb header, .lb footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); }
.lb .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 56px; }
.lb .stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; border-radius: 4px; }
.lb .nav.prev { left: 6px; } .lb .nav.next { right: 6px; }
.lb .btn { background: transparent; color: #f1ece4; border-color: rgba(255,255,255,.3); }
.lb .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb .who { display: flex; flex-wrap: wrap; gap: 6px; }
.who-chip { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #f1ece4; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.who-chip:hover { background: rgba(255,255,255,.16); }
.finder, #games { scroll-margin-top: 80px; }
.has-hero .top.over.solid { box-shadow: 0 1px 0 var(--line); }
@media (max-width: 520px) { .lb .stage { padding: 0 4px; } .lb .nav { width: 36px; } }

.sitefoot { border-top: 1px solid var(--line); padding: 20px 0 100px; font-size: 14px; color: var(--ink-2); text-align: center; }
.sitefoot a { color: var(--ink-2); }

/* Admin */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 26px; margin-bottom: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row > label { flex: 1 1 180px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.steps { display: grid; gap: 10px; margin: 12px 0; }
.step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.step b { display: block; }
.bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin-top: 6px; min-width: 200px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.stats div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.stats span { font-size: 12px; color: var(--ink-2); }
/* Prints */
.printpick { position: absolute; right: var(--gut); bottom: 70px; z-index: 2; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; min-width: 240px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.printpick h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.printpick button { display: flex; justify-content: space-between; width: 100%; margin: 4px 0; }
.printpick .small { margin-top: 6px; }
#printList h2 { font-size: 24px; margin-bottom: 8px; }
.printline { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.printline img { width: 64px; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; }
.printline span { flex: 1; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.modal .panel { width: min(460px, 100%); margin: 0; }
.deliver-options { display: grid; gap: 8px; margin: 12px 0; }
.deliver-options button { display: flex; justify-content: space-between; text-align: left; min-height: 52px; }
.readers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reader { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.reader i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.reader.on i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.reader.off { opacity: .6; }
.covers { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.cover { padding: 0; border: 3px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
.cover img { width: 120px; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; }
.cover.on { border-color: var(--accent); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tiers td input { max-width: 110px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; }
