/* DOGTAGS's page on the companions site (games/dogtags/server/site.py). On
   top of the site's own app.css (its colours, type and .btn/.badge); every
   class here is dt- so nothing leaks into the rest of the site. The accent
   is the hero shot's warm orange. */

:root { --dt-accent: #f29a3f; --dt-accent-line: rgba(242,154,63,.34); }

/* The hero: the crossroads shot across the page, the name over it. */
.dt-hero { position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 84vh, 860px); display: flex; align-items: flex-end;
  background: var(--ink); }
.dt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%; }
.dt-hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(8,9,11,.66) 0%, rgba(8,9,11,.28) 40%,
      rgba(8,9,11,0) 62%),
    linear-gradient(180deg, rgba(8,9,11,.3) 0%, rgba(8,9,11,0) 16%,
      rgba(8,9,11,0) 48%, rgba(8,9,11,.78) 86%, var(--ink) 100%); }
.dt-hero__inner { position: relative; z-index: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 20px clamp(34px, 7vh, 76px); }
.dt-hero__text { max-width: 620px; }
.dt-logo { margin: 8px 0 0; font-family: var(--font-d); font-weight: 700;
  font-size: clamp(3rem, 11vw, 6.4rem); line-height: .92;
  letter-spacing: .04em; color: #fff;
  text-shadow: 0 6px 26px rgba(0,0,0,.65); }
.dt-tagline { max-width: 46ch; margin-top: 16px; line-height: 1.5;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  text-shadow: 0 1px 14px rgba(0,0,0,.85); }
.dt-hero .dt-small { font-size: .9rem; color: #c9ced8; margin-top: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,.85); }

p.dt-kicker { margin: 0; font-family: var(--font-d); text-transform: uppercase;
  letter-spacing: .16em; font-size: .76rem; color: var(--dt-accent); }
.dt-hero p.dt-kicker--tag { display: inline-block; padding: 6px 12px;
  border: 1px solid var(--dt-accent-line); border-radius: 999px;
  background: rgba(14,16,20,.72); backdrop-filter: blur(6px); }

.dt-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dt-cta .dt-btn-glass { background: rgba(12,14,18,.55);
  border-color: var(--dt-accent-line); backdrop-filter: blur(6px); }
.dt-cta .dt-btn-glass:hover { background: rgba(23,27,35,.82);
  border-color: var(--dt-accent); }

.dt-h2 { font-family: var(--font-d); font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.1; margin: 6px 0 18px; }

/* Four short points under the hero. */
.dt-pillars { list-style: none; margin: 0; padding: clamp(22px, 4vw, 34px) 0 0;
  display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dt-pillars li { padding: 16px 18px; border: 1px solid var(--line);
  border-top: 2px solid var(--dt-accent-line); border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.dt-pillars b { display: block; margin-bottom: 4px; font-family: var(--font-d);
  font-size: 1.02rem; color: var(--dt-accent); }
.dt-pillars span { color: var(--muted); font-size: .9rem; }

/* The six features: a picture over its title and line. */
.dt-features { list-style: none; padding: 0; margin: 0; display: grid;
  gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dt-features li { overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--panel); }
.dt-features img { display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-2); }
.dt-features div { padding: 14px 16px 16px; }
.dt-features h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dt-features p { margin: 0; color: var(--muted); font-size: .93rem; }

/* The screenshots: one large and the rest smaller, each a link to the
   full-size picture. */
.dt-gallery { display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dt-gallery__item { display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel-2); }
.dt-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.dt-gallery__item img { display: block; width: 100%; height: 100%;
  aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.dt-gallery__item:first-child img { aspect-ratio: auto; }
/* With 4, 8 or 12 shots the large one leaves a gap in the last row; the
   last shot takes two cells and closes it. */
.dt-gallery__item:last-child:nth-child(4n) { grid-column: span 2; }
.dt-gallery__item:last-child:nth-child(4n) img { aspect-ratio: 32 / 9; }
.dt-gallery__item:hover img { transform: scale(1.03); }

/* Maps beside the specs. */
.dt-two { display: grid; gap: clamp(18px, 4vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dt-list li { display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--panel); }
.dt-list li.is-coming { border-style: dashed; background: transparent; }
.dt-list b { font-size: .98rem; }
.dt-list b .badge { margin-left: 6px; vertical-align: 1px; }
.dt-list span { color: var(--muted); font-size: .92rem; }
.dt-list--specs li { flex-direction: row; align-items: baseline; gap: 12px; }
.dt-list--specs b { min-width: 6.5em; color: var(--dt-accent); }

.dt-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.dt-steps li { counter-increment: s; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.dt-steps li::before { content: counter(s, decimal-leading-zero);
  font-family: var(--font-d); color: var(--dt-accent); display: block;
  margin-bottom: 6px; }
.dt-steps b { display: block; margin-bottom: 4px; }
.dt-steps span { color: var(--muted); font-size: .93rem; }

.dt-sup { background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--dt-accent-line); border-radius: var(--r);
  padding: clamp(18px, 4vw, 30px); }
.dt-sup p { color: var(--muted); max-width: 64ch; margin: 0; }

.dt-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.dt-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.dt-faq summary { cursor: pointer; font-weight: 600; }
.dt-faq p { color: var(--muted); margin-top: 8px; max-width: 70ch; }

@media (max-width: 960px) {
  .dt-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dt-two { grid-template-columns: 1fr; }
  .dt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dt-features, .dt-pillars { grid-template-columns: 1fr; }
  .dt-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-gallery__item img { transition: none; }
}
