/*
 * The temporary landing page of allforthe.art (feature allforthe-holding-page). Every colour and
 * face is a landing token from landing.css, which the build copies from packages/ui/src/landing.css:
 * cotton by day, lamp-light when the device prefers dark. Phone first; wider screens adapt.
 */

/* The two faces, cut by scripts/build.mjs to the letters these pages use. */
@font-face {
  font-family: "Anek Latin Display";
  font-style: normal;
  font-display: optional;
  font-weight: 700;
  src: url("./fonts/anek-latin-display.woff2") format("woff2");
}
@font-face {
  font-family: "Anek Latin Landing";
  font-style: normal;
  font-display: optional;
  font-weight: 300 600;
  src: url("./fonts/anek-latin-text.woff2") format("woff2-variations");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--landing-bg);
  color: var(--landing-ink);
  font-family: var(--font-landing-text);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.125rem;
  line-height: 1.55;
}

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

p {
  margin: 0;
  max-width: 34em;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--landing-accent);
}

a:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Small capitals above each heading, in brass. */
.label {
  margin-bottom: 0.75rem;
  color: var(--landing-brass);
  font-size: 0.8125rem;
  font-weight: var(--weight-landing-strong);
  letter-spacing: var(--tracking-landing-label);
  text-transform: uppercase;
}

/* The one red round of the landing pages, before "Coming in 2027". */
.label-mark::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--landing-seal);
  vertical-align: 0.05em;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.name {
  margin: 0 0 1.5rem;
  font-family: var(--font-landing-display);
  font-weight: var(--weight-landing-display);
  font-size: var(--text-landing-hero);
  line-height: var(--leading-landing-display);
  letter-spacing: var(--tracking-landing-display);
}

.name span {
  display: block;
}

.name-second {
  color: var(--landing-brass);
}

.lead {
  font-size: 1.3125rem;
  line-height: 1.45;
  font-weight: var(--weight-landing-light);
}

.home {
  display: inline-block;
  margin-top: 2rem;
  font-weight: var(--weight-landing-strong);
}

.network,
.mudra {
  padding: 3rem 0;
  border-top: 1px solid var(--landing-line);
}

.heading {
  margin: 0 0 1rem;
  font-family: var(--font-landing-display);
  font-weight: var(--weight-landing-display);
  font-size: var(--text-landing-heading-beside);
  line-height: var(--leading-landing-heading);
  letter-spacing: var(--tracking-landing-display);
  max-width: 14em;
}

.address {
  font-weight: var(--weight-landing-strong);
  white-space: nowrap;
}

/* One card per sub-project. Only the open one is a link, and its whole card is the target. */
.doors {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  border: 1px solid var(--landing-line);
  border-radius: var(--radius-landing-card);
}

.door-open {
  background: var(--landing-surface);
  border-color: var(--landing-surface);
}

.door-name {
  margin: 0;
  font-family: var(--font-landing-display);
  font-weight: var(--weight-landing-display);
  font-size: var(--text-landing-door-wide);
  line-height: 1;
}

.door-name a {
  text-decoration: none;
}

/* The link covers the card, so a thumb anywhere on it opens the preview. */
.door-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-landing-card);
}

.door-name a:focus-visible {
  outline: none;
}

.door-name a:focus-visible::after {
  outline: 2px solid var(--landing-accent);
  outline-offset: 3px;
}

.door-open:hover .door-name a {
  color: var(--landing-accent);
}

.door-open .door-name a::before {
  content: "→ ";
  content: "→ " / "";
  float: right;
  color: var(--landing-accent);
}

.door-summary {
  color: var(--landing-muted);
  font-size: 1rem;
}

.door-status {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--landing-muted);
  font-size: 0.8125rem;
  font-weight: var(--weight-landing-strong);
  letter-spacing: var(--tracking-landing-label);
  text-transform: uppercase;
}

.door-open .door-status {
  color: var(--landing-accent);
}

.footer {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--landing-muted);
  font-size: 0.875rem;
}

.footer p {
  padding-top: 1.5rem;
  border-top: 1px solid var(--landing-line);
  max-width: none;
}

@media (min-width: 40rem) {
  main,
  .footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .door-open {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding: 8rem 0 6rem;
  }

  .network,
  .mudra {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
    padding: 4.5rem 0;
  }

  .network > .label,
  .mudra > .label {
    grid-column: 1 / -1;
  }

  .network > .heading,
  .mudra > .heading {
    grid-row: 2 / span 2;
  }

  .doors {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
