/*
 * The holding page at andyphan.me until the launch (ENG-90; Architecture C.13),
 * in the site's dark look (docs/redesign/DESIGN_EXPLORATION.md §18). The
 * colours are the dark set of src/app/tokens.css: e2e/holding.spec.ts checks
 * the ground, the inks, the link and the focus ring against it. The sizes are
 * the token scale's steps, except the name and the role, which grow with the
 * screen (the owner's choice). The fonts are the files the site builds, under
 * their licences beside them. All of holding/ is deleted at the launch.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

/* Arial shaped to each face's metrics, as the site's build does, so the swap moves nothing. */
@font-face {
  font-family: "Bricolage Grotesque Fallback";
  src: local("Arial");
  ascent-override: 88.21%;
  descent-override: 25.61%;
  line-gap-override: 0%;
  size-adjust: 105.43%;
}

@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial");
  ascent-override: 99.07%;
  descent-override: 30.02%;
  line-gap-override: 0%;
  size-adjust: 100.94%;
}

:root {
  color-scheme: dark;

  --color-ground: #0b0c0f;
  --color-ink: #f2f0ea;
  --color-ink-second: #b6b8bf;
  --color-link: #f2f0ea;
  --color-gold: #e2bd6b;
  --color-focus: #f3d58e;

  /* The whole page grows on a wide screen, as a page in the new look does; the visitor's own size is the floor. */
  font-size: clamp(100%, 0.5vw + 60%, 137.5%);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  background-color: var(--color-ground);
  color: var(--color-ink);
  font-family: "Hanken Grotesk", "Hanken Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

/* The name sized by the screen, as the homepage's name over the scene will be (the owner's choice, 2026-11-29). */
h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Bricolage Grotesque Fallback", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.5rem, min(9vw, 15vh), 9rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* The 404 page's sentence, at a page title's step. */
h1.not-found {
  font-size: clamp(2.125rem, 1.35rem + 2vw, 2.625rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.role {
  margin: 1rem 0 0;
  color: var(--color-ink-second);
  font-size: clamp(1.1875rem, 0.95rem + 0.8vw, 1.625rem);
  line-height: 1.45;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.back {
  margin: 1.5rem 0 0;
}

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Each link is a target of at least 44 by 44 px. */
.links a,
.back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max(2.75rem, 44px);
  min-height: max(2.75rem, 44px);
}

.links svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

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

::selection {
  background-color: var(--color-gold);
  color: var(--color-ground);
}
