/* The coming soon page on scahli.com: ADR-058's palette and ADR-038's Inter, self-hosted so the page asks no third
   party for anything. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --font-sans: "Inter", system-ui, sans-serif;

  --color-page: #faf9f7;
  --color-surface: #ffffff;
  --color-line: #e7e4df;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-heading: #33203a;
  --color-heading-second: #a64b32;
  --color-rule: #d47752;
  --color-marker: #faefea;
  --color-marker-text: #a64b32;
  --color-main: #d47752;
  --color-main-hover: #de8c6b;
  --color-main-text: #33203a;
  --color-main-edge: #33203a;
  --color-outline-edge: #8d8b88;
  --color-outline-hover: #f3f1ee;
  --color-focus: #33203a;

  --gutter: 16px;
  --measure: 40rem;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-page: #151318;
    --color-surface: #1d1a21;
    --color-line: #2e2a34;
    --color-text: #ece9e4;
    --color-text-secondary: #b8b1a9;
    --color-heading: #f7eef2;
    --color-heading-second: #ffb38a;
    --color-rule: #ffb38a;
    --color-marker: #4a3936;
    --color-marker-text: #ffb38a;
    --color-main: #ffb38a;
    --color-main-hover: #ffc4a3;
    --color-main-text: #24142a;
    --color-main-edge: #ffb38a;
    --color-outline-edge: #736c62;
    --color-outline-hover: #24202a;
    --color-focus: #ffb38a;
  }
}

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

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

p,
h1 {
  margin: 0;
}

.page {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 0 0;
}

/* The lockup carries its own clear space (14 of 100), so it sits a little left of the text's edge. */
.logo {
  display: block;
  height: 44px;
  width: auto;
  margin-left: -6px;
}

.marker {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-marker);
  color: var(--color-marker-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.story {
  padding: 72px 0 0;
}

h1 {
  color: var(--color-heading);
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.heading-second {
  color: var(--color-heading-second);
}

.story p {
  margin-top: 1.25em;
  color: var(--color-text-secondary);
}

.story .lead {
  margin-top: 40px;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.6;
}

.story .closing {
  margin-top: 56px;
  color: var(--color-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* A short apricot rule above the closing line, as the scale bar under the wordmark. */
.story .closing::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--color-rule);
}

.contact {
  margin-top: 80px;
  padding: 32px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.button-main {
  background: var(--color-main);
  border-color: var(--color-main-edge);
  color: var(--color-main-text);
}

.button-main:hover {
  background: var(--color-main-hover);
}

.button-outline {
  border-color: var(--color-outline-edge);
  color: var(--color-text);
}

.button-outline:hover {
  background: var(--color-outline-hover);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .masthead {
    padding-top: 24px;
  }

  .logo {
    height: 36px;
  }

  .story {
    padding-top: 48px;
  }

  .story .lead {
    font-size: 1.125rem;
  }

  .contact {
    margin-top: 56px;
    padding: 24px 20px;
  }

  .actions .button {
    flex: 1 1 100%;
  }
}

@media (forced-colors: active) {
  .button,
  .marker {
    border: 1px solid ButtonText;
  }
}
