/* Fonts and colours are copied from site/styles.css so the portal matches the website. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1F2A44;
  --ink-soft: #46506A;
  --meadow: #2F7D5B;
  --meadow-deep: #22604A;
  --sun: #F2B33D;
  --sky: #E3EEF5;
  --bay: #2F5D8A;
  --blossom: #E86F8E;
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
}
h1 { font-family: var(--display); font-size: clamp(1.75rem, 5vw + 0.75rem, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; }
p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }
a { color: var(--meadow-deep); text-underline-offset: 3px; }
/* Bay blue, not blossom pink: it stands out against white and sky alike. */
:focus-visible { outline: 3px solid var(--bay); outline-offset: 3px; border-radius: 4px; }

.card { width: min(34rem, 100%); background: var(--white); border-radius: 28px; padding: clamp(1.75rem, 6vw, 3rem); text-align: center; }
.mark { display: block; margin: 0 auto 1.25rem; }
.lead { font-size: 1.25rem; color: var(--ink-soft); }

/* Sign-in and the signed-in pages */
[hidden] { display: none !important; }
/* Read by a screen reader, not shown: a label the icons and the layout already say. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
form { margin-top: 1.5rem; text-align: left; }
label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink-soft);
  border-radius: 12px;
}
input:focus-visible { border-color: var(--bay); border-radius: 12px; }
.code { font-size: 1.5rem; letter-spacing: 0.2em; text-align: center; }
.hint { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
button, .button {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--meadow-deep);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--meadow); }
button:disabled { opacity: 0.6; cursor: default; }
button.quiet {
  min-height: 2.75rem;
  margin-top: 0.5rem;
  font-weight: 400;
  color: var(--meadow-deep);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.quiet:hover { background: var(--sky); }
.notice { padding: 0.85rem 1rem; background: var(--sky); border-radius: 12px; }
/* The album page: a child's first name in the heading, and one button per child to choose from. */
.card h1 { overflow-wrap: anywhere; }
.choices button { margin-top: 0.75rem; overflow-wrap: anywhere; }
.message { margin-top: 1.25rem; padding: 0.85rem 1rem; text-align: left; border-left: 4px solid var(--blossom); background: var(--sky); border-radius: 4px 12px 12px 4px; }
