/* Clockr landing page. Same tokens as the iPhone app: black ground, ivory type, brass only inside the wordmark's sparkle. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #141416;
  --line: #2a2a2e;
  --ink: #f3efe6;
  --muted: #9b978e;
  --faint: #5f5c56;
  --serif: "Newsreader", ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  --margin: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) var(--margin)
    calc(24px + env(safe-area-inset-bottom));
}

/* Hero */
.hero {
  padding: 24px 0 8px;
}

.wordmark {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 40px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.3px;
  max-width: 14em;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
  max-width: 30em;
}

/* Sections are rows, not cards: a rule above each. */
.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section p + p {
  margin-top: 12px;
}

.steps {
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps .n {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  width: 22px;
  flex: none;
  color: var(--ink);
}

.steps p {
  font-size: 16px;
  color: var(--muted);
}

.steps b {
  color: var(--ink);
  font-weight: 600;
}

/* One primary action on the page. */
.actions {
  margin-top: 24px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  background: var(--ink);
  color: #000;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
}

.button:hover {
  opacity: 0.9;
}

.button:focus-visible,
.close:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Footer */
.footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .links {
  margin-top: 10px;
  display: flex;
  gap: 18px;
}

.footer .small {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

/* Application dialog: full screen on phones, a panel on larger screens. */
.apply {
  border: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  display: none;
  flex-direction: column;
}

.apply[open] {
  display: flex;
}

.apply::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.apply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--margin) 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
}

.close {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
}

.apply-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

#apply-frame {
  display: block;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: transparent;
}

.apply-note {
  padding: 12px var(--margin) calc(16px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .page {
    padding-top: 64px;
  }

  .wordmark {
    width: 200px;
  }

  h1 {
    font-size: 48px;
  }

  .button {
    width: auto;
    padding: 0 28px;
    display: inline-flex;
  }

  .apply {
    width: min(560px, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    border: 1px solid var(--line);
    border-radius: 18px;
    margin: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
