/* whatsthattile.com: one stylesheet for every page. Colours and type follow the
   brand kit: a night sky band (top bar, hero, footer) over cream reading pages,
   gold for the one main action, Outfit for names and buttons, Lato for reading. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/Lato-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #121c3f;
  --sky-mid: #1a1f4a;
  --sky-2: #251d4a;
  --page: #f8f3e8;
  --panel: #fffaf0;
  --ink: #2b2418;
  --muted: #6d604b;
  --line: #e4d8c2;
  --gold: #e9b949;
  --gold-2: #f6d77c;
  --gold-edge: #b88a22;
  --gold-ink: #8a6414;
  --on-gold: #3a2a08;
  --sky-ink: #f3ead6;
  --sky-muted: #b8b2cf;
  --err: #b3261e;
  --display: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #141a33;
    --panel: #1b2242;
    --ink: #f1ead9;
    --muted: #b6ad99;
    --line: #2e3558;
    --gold-ink: #e7c26a;
    --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --page: #141a33;
  --panel: #1b2242;
  --ink: #f1ead9;
  --muted: #b6ad99;
  --line: #2e3558;
  --gold-ink: #e7c26a;
  --err: #ff8a80;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--sky);
}
main {
  flex: 1 0 auto;
}
img {
  max-width: 100%;
}
a {
  color: var(--gold-ink);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--gold);
  color: var(--on-gold);
  font: 600 1rem var(--display);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.read {
  max-width: 700px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* top bar */
.bar {
  background: var(--sky);
  color: var(--sky-ink);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.bar .wrap {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sky-ink);
  text-decoration: none;
  font: 700 1.1rem var(--display);
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}
.brand em,
.wordmark em {
  font-style: normal;
  color: var(--gold-2);
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--sky-muted);
  text-decoration: none;
  font: 500 0.95rem var(--display);
  padding: 8px 10px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--sky-ink);
  background: rgba(255, 255, 255, 0.08);
}
.nav a:focus-visible {
  outline-color: var(--gold-2);
}
.nav a[aria-current='page'] {
  color: var(--gold-2);
}
@media (max-width: 600px) {
  .nav {
    margin-left: -10px;
    width: calc(100% + 20px);
  }
  .nav a {
    padding: 6px 7px;
    font-size: 0.88rem;
  }
}

/* hero */
.hero {
  background: linear-gradient(
    180deg,
    var(--sky) 0%,
    var(--sky-mid) 55%,
    var(--sky-2) 100%
  );
  color: var(--sky-ink);
  padding-block: 40px 0;
  overflow: hidden;
}
.hero a {
  color: var(--sky-ink);
}
.hero :focus-visible {
  outline-color: var(--gold-2);
}
.soon {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 215, 124, 0.5);
  color: var(--gold-2);
  font: 600 0.82rem var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-top {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-top img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  flex: none;
}
.hero-top > div {
  min-width: 0;
}
.wordmark {
  font: 700 clamp(2.2rem, 7vw, 4rem) / 1.02 var(--display);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tagline {
  font: 600 0.9rem var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-muted);
  margin: 8px 0 0;
}
.hook {
  font: 600 clamp(1.3rem, 4.4vw, 1.6rem) / 1.3 var(--display);
  color: var(--sky-ink);
  margin: 18px 0 0;
  text-wrap: balance;
}
.lead {
  max-width: 36em;
  margin: 22px 0;
  color: var(--sky-ink);
  opacity: 0.9;
  font-size: 1.12rem;
}

.cta {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.store {
  justify-self: start;
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-block: 14px;
}
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
}
.badge img {
  height: 54px;
  width: auto;
  display: block;
}
.cta-title {
  margin: 8px 0 0;
  font: 600 1.1rem var(--display);
  color: var(--sky-ink);
}
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
}
.notify input[type='email'] {
  flex: 1 1 160px;
  max-width: 300px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--sky-ink);
}
.notify input::placeholder {
  color: var(--sky-muted);
}
.notify .btn {
  flex: none;
}
.notify .ts {
  flex-basis: 100%;
}
.n-msg {
  flex-basis: 100%;
  margin: 0;
  color: var(--gold-2);
  font: 500 0.95rem var(--display);
}
.n-msg.bad {
  color: #ffb4ab;
}
.n-small {
  margin: 0;
  color: var(--sky-muted);
  font-size: 0.88rem;
}
.n-small a {
  color: var(--sky-ink);
}
.social {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  font: 500 0.95rem var(--display);
  color: var(--sky-muted);
}
.social a {
  color: var(--sky-ink);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.social svg,
.foot svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.facts-row {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
  color: var(--sky-muted);
  font: 500 0.98rem var(--display);
}
.facts-row b {
  color: var(--sky-ink);
  font-weight: 700;
}

/* the hero: text and one phone. On a phone the picture comes right after the
   name and the hook; from 900 px wide the text is on the left, the phone on
   the right. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'text' 'shot' 'rest';
}
.hero-text {
  grid-area: text;
  min-width: 0;
}
.hero-shot {
  grid-area: shot;
  justify-self: center;
  width: 60%;
  max-width: 290px;
  margin: 26px 0 4px;
}
.hero-shot .screen {
  border-radius: 30px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(246, 215, 124, 0.18);
}
.hero-rest {
  grid-area: rest;
  min-width: 0;
}
@media (min-width: 900px) {
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'text shot' 'rest shot';
    column-gap: clamp(36px, 5vw, 72px);
  }
  .hero-text {
    align-self: end;
  }
  .hero-rest {
    align-self: start;
  }
  .hero-shot {
    align-self: center;
    width: clamp(250px, 25vw, 300px);
    max-width: none;
    margin: 0 0 30px;
  }
  .hero-shot .screen {
    border-radius: 34px;
  }
  .wordmark {
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  }
}
.wrap.wide {
  max-width: 1200px;
}

/* the screens, in a row that scrolls sideways on its own */
.gallery {
  position: relative;
}
.phones {
  --fl: 0px;
  --fr: 0px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 36px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  list-style: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fl),
    #000 calc(100% - var(--fr)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fl),
    #000 calc(100% - var(--fr)),
    transparent 100%
  );
}
/* A soft fade on the side that has more to see. Without JavaScript it is
   always on the right; with it, site.js sets more-l and more-r. */
@media (max-width: 1099px) {
  .phones {
    --fr: 56px;
  }
}
.gallery.js .phones {
  --fr: 0px;
}
.gallery.js.more-l .phones {
  --fl: 56px;
}
.gallery.js.more-r .phones {
  --fr: 56px;
}
.g-arrow {
  position: absolute;
  top: 206px;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold-2);
  background: rgba(18, 28, 63, 0.92);
  color: var(--gold-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.g-arrow svg {
  width: 24px;
  height: 24px;
}
.g-arrow:hover {
  background: linear-gradient(var(--gold-2), var(--gold));
  color: var(--on-gold);
}
.g-prev {
  left: 6px;
}
.g-next {
  right: 6px;
}
@media (max-width: 599px) {
  .g-arrow {
    display: none;
  }
}
.phone {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
  margin: 0;
}
.screen {
  width: 100%;
  aspect-ratio: 540 / 1171;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #0d1430;
  overflow: hidden;
}
.screen img,
.screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-fig {
  margin: 0;
}
.phone figcaption {
  font: 500 0.88rem/1.35 var(--display);
  color: var(--sky-muted);
  margin-top: 10px;
  text-align: center;
}
/* From 1100 px wide all six screens fit in one row. */
@media (min-width: 1100px) {
  .phones {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .phone {
    width: auto;
  }
  .phone .screen {
    border-radius: 22px;
  }
  .g-arrow {
    display: none;
  }
}

/* reading sections */
section.block {
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}
section.block:last-of-type {
  border-bottom: 0;
}
h1.page {
  font: 700 clamp(1.7rem, 5vw, 2.1rem) / 1.15 var(--display);
  margin: 0 0 8px;
  text-wrap: balance;
}
h2 {
  font: 700 1.6rem/1.2 var(--display);
  margin: 0 0 8px;
  text-wrap: balance;
}
.doc h2,
.thanks h2 {
  font: 600 1.15rem var(--display);
  margin: 30px 0 6px;
  color: var(--gold-ink);
}
h3 {
  font: 600 1.1rem var(--display);
  margin: 28px 0 6px;
  color: var(--gold-ink);
}
p {
  margin: 0 0 12px;
}
ul {
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.three > div {
  min-width: 0;
}
.three h3 {
  margin-top: 0;
}
.note {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px 18px;
}
.note p:last-child {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.date {
  color: var(--muted);
  font: 500 0.95rem var(--display);
  margin-bottom: 20px;
}

/* forms */
form.fix {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
label {
  font: 600 0.95rem var(--display);
  display: grid;
  gap: 6px;
}
label .opt {
  font-weight: 500;
  color: var(--muted);
}
input,
select,
textarea {
  font: 16px/1.4 var(--body);
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  width: 100%;
  min-height: 48px;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.btn {
  justify-self: start;
  font: 600 1rem var(--display);
  letter-spacing: 0.02em;
  color: var(--on-gold);
  background: linear-gradient(var(--gold-2), var(--gold));
  border: 1px solid var(--gold-edge);
  border-bottom-width: 4px;
  border-radius: 12px;
  padding: 11px 22px;
  cursor: pointer;
  min-height: 48px;
}
.btn:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
/* The spinner shown while a form is being sent (site.js adds .busy). */
.btn.busy::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.6em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.err {
  color: var(--err);
  font: 500 0.95rem var(--display);
  margin: 0;
}
.thanks {
  border: 1px solid var(--gold);
  background: var(--panel);
  border-radius: 14px;
  padding: 18px;
  margin-top: 20px;
}
.thanks h2 {
  margin: 0 0 6px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ts:empty {
  display: none;
}
.nojs {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
}
.hero .nojs {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--sky-muted);
}

/* support questions */
.qa h2 {
  margin-top: 34px;
}
.facts-sec {
  margin-top: 40px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.facts-sec .date {
  margin-bottom: 14px;
}
[id] {
  scroll-margin-top: 130px;
}
.facts-line {
  margin: 26px 0 0;
  color: var(--muted);
}

/* the press page */
.kit {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 1rem;
}
.kit th,
.kit td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.kit th {
  font: 600 0.95rem var(--display);
  color: var(--muted);
  width: 34%;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 18px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.shots li {
  margin: 0;
  min-width: 0;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--sky);
}
.shots .icon-thumb img {
  border-radius: 22%;
}
.shots figcaption {
  font: 600 0.95rem/1.3 var(--display);
  margin-top: 8px;
}
.shots a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.92rem;
}

/* 404 */
.lost {
  text-align: center;
  padding-block: 70px;
}
.lost img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}
.lost .btn {
  display: inline-block;
  text-decoration: none;
}

/* footer */
.foot {
  background: var(--sky);
  color: var(--sky-muted);
  font: 500 0.92rem var(--display);
  flex: none;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  align-items: center;
}
.foot a {
  color: var(--sky-ink);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}
.foot a:focus-visible {
  outline-color: var(--gold-2);
}
.foot .copy {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .btn:active {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn.busy::before {
    animation-duration: 2s;
  }
}
