/* media.css: the Media page (/media/) and the press kit (/press/). */

/* ------------------------------------------------------------ media hero */

.media-hero { min-height: 420px; }
.media-hero .page-hero__bg img { opacity: .55; object-position: 50% 40%; }
.media-hero .page-hero__lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump .btn { background: rgba(16, 16, 14, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ------------------------------------------------------------ screenshot groups */

.shot-group + .shot-group { margin-top: clamp(40px, 5vw, 64px); }
.shot-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.shot-group__title { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.shot-group__text { margin: 0; color: var(--muted); font-size: .98rem; }

.shots { display: grid; gap: 14px; grid-template-columns: 1fr; }
.shots__item { box-shadow: var(--shadow); }
.shots__item a { position: relative; }
.shots__item a:focus-visible { outline: none; }
.shots__item:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.shots__item figcaption { font-family: var(--round); font-size: .95rem; padding: 34px 14px 11px; }
.shots__zoom {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgba(12, 12, 10, .72); color: var(--ink); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease); pointer-events: none;
}
.shots__item:hover .shots__zoom, .shots__item:focus-within .shots__zoom { opacity: 1; transform: none; }

@media (min-width: 600px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots__item--big { grid-column: span 2; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* an odd one out at the end of a group without a big picture takes the whole row */
  .shots__item:first-child:not(.shots__item--big) ~ .shots__item:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 900px) {
  .shots { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; }
  .shots__item { grid-column: span 2; }
  .shots__item--half { grid-column: span 3; }
  .shots__item--big { grid-column: span 4; grid-row: span 2; }
  .shots--flip .shots__item--big { grid-column: 3 / span 4; grid-row: 1 / span 2; }
  .shots__item--big a { height: 100%; }
  .shots__item--big img { height: 100%; aspect-ratio: auto; }
  .shots__item--big figcaption { font-size: 1.1rem; padding: 48px 20px 16px; }
}

.shots-note { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; color: var(--muted); }
.shots-note .icon { color: var(--sky); }

/* ------------------------------------------------------------ wallpapers */

.walls { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .walls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .walls { grid-template-columns: repeat(3, 1fr); } }
.wall { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.wall:hover { transform: translateY(-2px); border-color: #4A525E; }
.wall__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.wall__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.wall:hover .wall__media img { transform: scale(1.04); }
.wall__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.wall__title { margin: 0; font-size: 1.15rem; }
.wall__btn { flex: none; }

/* ------------------------------------------------------------ logos, colours, art */

.brand-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .brand-grid { grid-template-columns: 1fr 1fr; } .brand-card--wide { grid-column: 1 / -1; } }
.brand-card--wide .brand-tile { aspect-ratio: 16 / 10; }
.brand-card--wide .brand-tile__logo { max-width: 380px; }
.brand-card, .art-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.brand-card__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.brand-tile { display: grid; place-items: center; min-width: 0; aspect-ratio: 4 / 3; padding: clamp(14px, 3.4vw, 36px); }
.brand-tile--dark { background: radial-gradient(circle at 50% 40%, #1E2419, var(--bg) 70%); }
.brand-tile--light { background: #F3F7FC; }
.brand-tile__logo { width: 100%; max-width: 220px; height: auto; }
.brand-tile__ball { width: 70%; max-width: 150px; height: auto; }
.brand-tile--dark .brand-tile__logo, .brand-tile--dark .brand-tile__ball { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); }
.brand-card__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 18px; margin-top: auto; }
.brand-card__title { margin: 0; font-size: 1.2rem; }
.brand-card__meta { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.brand-card__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.logos-sub { margin: clamp(36px, 5vw, 56px) 0 16px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.swatch { display: flex; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.swatch__chip { flex: 0 0 34%; min-height: 120px; border-right: 1px solid var(--line); }
.swatch__chip--sky { background: #40B5E3; }
.swatch__chip--deep { background: #0B1630; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch__chip--night { background: #12170F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.swatch__name { font: 400 1.15rem/1.2 var(--display); color: var(--ink); }
.swatch__use { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.swatch__hex { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.swatch__hex code { font-size: .95rem; color: var(--ink); }

.art-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: minmax(0, 1fr); }
/* columns in proportion to the two images' shapes, so both come out the same height */
@media (min-width: 700px) { .art-grid { grid-template-columns: minmax(0, 1260fr) minmax(0, 1905fr); } .art-card--wide { grid-column: 1 / -1; } }
.art-card__media { overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.art-card__media img { width: 100%; height: 100%; object-fit: cover; }
.art-card__media--cover { aspect-ratio: 1260 / 1000; }
.art-card__media--banner { aspect-ratio: 1920 / 600; }
.art-card__media--social { aspect-ratio: 1200 / 630; }
.art-card .brand-card__title { font-family: var(--display); font-weight: 400; }

/* the closing press-kit band on /media/ */
.press-band { display: grid; gap: 20px 28px; align-items: center; padding: clamp(22px, 3.4vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(80% 140% at 0% 0%, rgba(64, 181, 227, .12), transparent 60%), var(--surface); box-shadow: var(--shadow); }
@media (min-width: 900px) { .press-band { grid-template-columns: auto 1fr auto; } }
.press-band__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(64, 181, 227, .12); border: 1px solid rgba(64, 181, 227, .3); color: var(--sky); }
.press-band__icon .icon { width: 30px; height: 30px; }
.press-band__text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.press-band__text p { margin: 0; color: var(--ink-soft); }
.press-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ press kit */

.press-hero__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .press-hero__inner { grid-template-columns: 1fr auto; } }
.press-hero__logo { width: clamp(200px, 24vw, 300px); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); }
@media (max-width: 899px) { .press-hero__logo { display: none; } }
.press-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.press-hero__chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.press-layout { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .press-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1000px) and (min-height: 800px) {
  .press-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.press-aside h2 { font-size: 1.5rem; margin-bottom: .7em; }
.press-aside .facts { grid-template-columns: minmax(0, auto) minmax(0, 1fr); font-size: .95rem; }
.press-aside .facts dt { font-size: .7rem; padding: 9px 12px; white-space: nowrap; }
.press-aside .facts dd { padding: 7px 12px; line-height: 1.45; }
.facts .fact-note { display: block; color: var(--muted); font-size: .85rem; }
.press-aside__dl { margin-top: 16px; }

.press-main > section + section { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-soft); }
.press-main h2 { margin-bottom: .6em; }
.press-main h2 + .lead, .press-main .press-intro { margin-top: -.2em; }
.press-intro { color: var(--ink-soft); }

.blurb { position: relative; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.blurb + .blurb { margin-top: 16px; }
.blurb__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.blurb__label { margin: 0; font: 700 .78rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.blurb p { color: var(--ink-soft); }
.blurb p:last-child { margin-bottom: 0; }
.blurb--short p { font-family: var(--round); font-size: 1.15rem; color: var(--ink); line-height: 1.5; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), var(--sky-deep)); border-radius: 2px; }
.timeline > li { position: relative; padding: 0 0 22px 34px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sky); }
.timeline__when { display: block; font: 700 .8rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.timeline__what { display: block; margin-top: 3px; font: 400 1.18rem/1.3 var(--display); color: var(--ink); }
.timeline p { margin: 4px 0 0; color: var(--ink-soft); }
.timeline__era { padding-top: 6px; }
.timeline__era > .timeline__when { color: var(--gold); }
.timeline > li.timeline__era::before { border-color: var(--gold); }
.timeline > li.is-now::before { background: var(--sky); box-shadow: 0 0 0 5px rgba(64, 181, 227, .2); }
.timeline .tag-version { margin-left: 2px; white-space: nowrap; }

.press-features { display: grid; gap: .8em 28px; margin-top: 0; }
@media (min-width: 760px) { .press-features { grid-template-columns: 1fr 1fr; } }

.press-thumbs { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .press-thumbs { grid-template-columns: repeat(3, 1fr); } }
.press-thumbs .gallery__item a:focus-visible { outline: none; }
.press-thumbs .gallery__item:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

.kit-dl { display: grid; gap: 18px 24px; align-items: center; margin-top: 22px; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(64, 181, 227, .3); background: radial-gradient(90% 160% at 0% 0%, rgba(64, 181, 227, .12), transparent 60%), var(--surface); }
@media (min-width: 760px) { .kit-dl { grid-template-columns: 1fr auto; } }
.kit-dl h3 { margin: 0 0 .3em; font-size: 1.3rem; }
.kit-dl ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.kit-dl li::marker { color: var(--sky); }
.kit-dl .dl-btn { justify-content: flex-start; }
@media (max-width: 759px) { .kit-dl .dl-btn { width: 100%; } }

.press-logos { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.press-logos .brand-tile { aspect-ratio: auto; height: 200px; padding: 22px; border-bottom: 1px solid var(--line); }
.press-logos .brand-tile img { min-height: 0; }
.press-logos .brand-tile__logo { width: auto; max-width: 100%; max-height: 150px; }
.press-logos .brand-tile__ball { width: auto; max-width: 100%; max-height: 116px; }
.press-logos .brand-tile__icon { width: auto; max-width: 100%; max-height: 132px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 26px -10px rgba(0, 0, 0, .7); }
.press-logos .brand-card__body { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.press-logos .brand-card__title { font-size: 1.1rem; }

.contact-card { display: grid; gap: 18px 24px; align-items: center; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 760px) { .contact-card { grid-template-columns: 1fr auto; } }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card p + p { margin-top: .6em; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.press-links__title { margin: 28px 0 12px; font-size: 1.15rem; }
.press-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .press-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.press-links a { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); text-decoration: none; transition: border-color .2s, background .2s; }
.press-links a:hover { border-color: var(--sky); background: var(--surface-2); }
.press-links .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sky); }
.press-links b { display: block; font: 400 1.05rem/1.25 var(--display); color: var(--ink); margin-bottom: 2px; }
.press-links span { font-size: .92rem; line-height: 1.4; }
