/* Topography — minimal public site (index.html, sign-in.html). Legacy pages use styles.css. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --serif: "Source Serif 4", Georgia, serif;
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --ink-note: #666666;
  --link: #2b4a8a;
  --link-hover: #555555;
  --field-border: #8a8a8a;
  --bg: #eef9ff;
  /* Above-the-fold gap: 336px at 1920px wide, 96px at 1024px wide. */
  --above-fold: clamp(96px, calc(96px + (100vw - 1024px) * 15 / 56), 336px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--link-hover);
}
a.accent,
a.accent:hover {
  color: var(--link);
}

a:focus-visible,
button:focus-visible,
input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 140px 48px 70px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.statement {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  margin-top: min(42vh, var(--above-fold));
}

.statement h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.005em;
}

.statement .sectors {
  margin: 28px 0 0;
  font-size: 21px;
  font-style: italic;
  color: var(--ink-muted);
}

.statement .contact {
  margin: 72px 0 0;
  font-size: 19px;
  line-height: 1.8;
}

.sign-in {
  width: 340px;
  max-width: 100%;
  /* Same curve as the homepage, scaled to the original 240px cap. */
  margin-top: min(30vh, calc(var(--above-fold) * 240 / 336));
}

.sign-in form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sign-in h1 {
  margin: 0 0 8px;
  font-size: 42px;
  font-weight: 400;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 17px;
}

.field input {
  height: 44px;
  padding: 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 2px;
}

.sign-in button {
  height: 44px;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 18px;
  color: #ffffff;
  background: var(--ink);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.sign-in button:hover {
  background: #333333;
}

.sign-in .note {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--ink-note);
}

@media (max-width: 720px) {
  .page {
    padding: 20px 24px 32px;
  }

  .site-header {
    align-items: center;
    min-height: 44px;
  }

  .wordmark {
    font-size: 20px;
    letter-spacing: 0;
  }

  .statement,
  .sign-in {
    flex-grow: 1;
    justify-content: center;
    margin-top: 0;
  }

  .statement h1 {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .statement .sectors {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.6;
  }

  .statement .contact {
    margin-top: 48px;
    font-size: 18px;
    line-height: 1.7;
  }

  .sign-in {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .sign-in h1 {
    font-size: 36px;
  }
}
