/* Orax Code marketing site. */

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-sans/Geist-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-sans/Geist-Italic[wght].woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/geist-mono/GeistMono-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/geist-mono/GeistMono-Italic[wght].woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f6f6f5;
  --text: #26282b;
  --muted: #5c6064;
  --line: #d4d4cf;
  --button-bg: #26282b;
  --button-text: #f6f6f5;
  --button-disabled-bg: #e8e8e6;
  --button-disabled-text: #5c6064;
  --button-disabled-border: #c9c9c3;
  --gold: #7b5d22;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #26282b;
    --text: #e8e8e6;
    --muted: #a3a5a8;
    --line: #45484c;
    --button-bg: #e8e8e6;
    --button-text: #4f5256;
    --button-disabled-bg: #303236;
    --button-disabled-text: #a3a5a8;
    --button-disabled-border: #45484c;
    --gold: #d9b25a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: 0;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: var(--text);
  color: var(--page);
}

.wrap {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 20px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.button {
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-small {
  padding: 8px 16px;
  font-size: 15px;
}

.button:disabled {
  border-color: var(--button-disabled-border);
  background: var(--button-disabled-bg);
  color: var(--button-disabled-text);
  cursor: not-allowed;
}

.button:not(:disabled):hover {
  color: var(--button-text);
}

.hero {
  padding-block: clamp(4rem, 9vw, 7rem) 0;
}

.hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-action {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.platform-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.screenshot {
  width: 100%;
  margin-top: clamp(56px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #303236;
}

.plain-list {
  max-width: 720px;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li + li {
  margin-top: 32px;
}

.plain-list h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.plain-list p {
  margin: 0;
  color: var(--muted);
}

.questions {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.questions h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.qa-list {
  margin: 0;
}

.qa-list > div + div {
  margin-top: 32px;
}

.qa-list dt {
  margin: 0 0 4px;
  font-weight: 500;
}

.qa-list dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: clamp(72px, 9vw, 120px);
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
}

.footer-line {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-line a {
  margin-left: 4px;
}

.draft-main {
  max-width: 760px;
  padding-block: clamp(3.5rem, 8vw, 6rem) 0;
}

.draft-main h1 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

.draft-main h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.draft-main p,
.draft-main li {
  color: var(--muted);
}

.draft-note {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.draft-note strong {
  color: var(--text);
}

.draft-main ul {
  padding-left: 20px;
}

.draft-main li + li {
  margin-top: 8px;
}

.back-link {
  margin-top: 40px;
}

.draft-main .button {
  color: var(--button-text);
}

@media (max-width: 640px) {
  .questions {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 64px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero-action {
    align-items: flex-start;
    flex-direction: column;
  }
}
