/* camajuya.com holding page.
   Restyle here first: every colour, font and size choice is a token in :root.
   The colour and type values come from the Camajuya brand tokens v1 draft.
   They are copied in, not linked, so the live site never changes on its own:
   re-copy them when the brand is accepted. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours (draft) */
  --cj-night: #0d0b0a;        /* Night */
  --cj-white: #ffffff;        /* True White */
  --cj-pearls-red: #9a3a24;   /* Pearls Red: white on it 7.0:1 */
  --cj-high-sun: #efa31c;     /* High Sun: accent only, 3.3:1 on Pearls Red */

  /* What the page uses: one colour field, type in white, a High Sun accent */
  --ground: var(--cj-pearls-red);
  --ink: var(--cj-white);
  --link-line: var(--cj-high-sun);
  --link-line-hover: var(--cj-white);
  --focus: var(--cj-white);

  /* Type: Inter Tight 800 capitals for the name, a quiet weight for the
     two sentences (400 on colour, per the draft) */
  --display-font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text-font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --text-weight: 400;
}

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

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

body { margin: 0; }

::selection {
  background: var(--cj-white);
  color: var(--cj-pearls-red);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.25rem, 6vw, 6rem);
}

/* The name: the one loud thing on the page */
.name {
  margin: 0 0 clamp(1.75rem, 4vw, 3.25rem) -0.04em;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: clamp(3rem, 15.2vw, 15.5rem);
  line-height: 0.92;
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  font-kerning: normal;
  overflow-wrap: anywhere;  /* under user text spacing it wraps rather than overflows */
  color: var(--ink);
}

/* The two sentences */
.intro {
  max-width: 33ch;
  margin: 0;
  font-size: clamp(1.25rem, 0.95rem + 1.2vw, 1.85rem);
  line-height: 1.38;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* The email link */
.contact {
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4rem);
}

.contact + .contact { margin-top: 0.5rem; }

.contact a {
  display: inline-block;
  padding-block: 0.75rem;
  color: var(--ink);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: max(2px, 0.14em);
  text-underline-offset: 0.24em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 160ms ease;
}

.contact a:hover { text-decoration-color: var(--link-line-hover); }

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

/* Small home link, used on the 404 page */
.home {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
}

.home a {
  color: var(--ink);
  text-decoration: none;
}

.lost {
  max-width: 22ch;
  margin: 0;
  font-family: var(--display-font);
  font-weight: 760;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

@media print {
  html { background: #ffffff; color: var(--cj-night); }
  .name, .home a, .contact a { color: var(--cj-pearls-red); }
}
