/* The marketing page's layout. Colors, fonts, focus rings, button and field looks come from the
   design system in styles.css, loaded first. This file holds the page's own measures: its
   widths, grids, spacing and type sizes are the live site's, and the design system's sizes
   (made for the one-column upload page) are set back to them here. Change a look in
   styles.css. Change a measure here. */

/* The page's spacing scale. index.html uses it for section padding. */
:root {
  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;
}

html { scroll-behavior: smooth; }
body { display: block; font-size: 15px; }
section[id] { scroll-margin-top: 72px; }

/* Type sizes and margins of the page. */
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
p { margin: 0 0 var(--space-3); }
a { text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.ob-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
/* Quieter text: the design system's .muted color, without its size. */
.ob-faint { color: color-mix(in srgb, var(--color-text) 68%, transparent); }

/* Buttons and fields keep the page's sizes. Their colors and borders are the design system's. */
.btn {
  gap: 6px; text-decoration: none; font-size: 14px;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.field > label { font-size: 12px; }
.input { min-height: 36px; padding: 6px 10px; font-size: 14px; letter-spacing: normal; }
textarea.input { min-height: 90px; resize: vertical; }

/* A hairline box, as the design system's .panel is, with the padding given where it is used. */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }

/* Navigation. */
.nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); }
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin-right: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }
.ob-navlinks { display: flex; gap: 26px; align-items: center; }
.ob-nav .ob-brand { font-size: 26px; line-height: 1; }
.ob-brand-mark { width: 0.68em; height: 0.68em; }

/* Grids. */
.ob-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ob-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.ob-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ob-rule-col { border-left: 1px solid var(--color-divider); padding-left: 24px; }
.ob-plate-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .ob-plate-3 { grid-template-columns: minmax(0, 1fr); }
  .ob-plate-3 > div + div { border-left: 0 !important; border-top: 1px solid var(--color-divider); }
}
@media (max-width: 760px) {
  .ob-navlinks a:not(.btn) { display: none; }
  .ob-nav { gap: 12px; padding: 12px 20px; }
  .ob-nav .ob-brand { font-size: 22px; }
}
@media (max-width: 900px) {
  .ob-grid-3, .ob-split, .ob-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ob-rule-col { border-left: 0; border-top: 1px solid var(--color-divider); padding-left: 0; padding-top: 20px; }
  .ob-two { gap: 0; }
  .ob-two > div + div { border-top: 1px solid var(--color-divider); margin-top: 48px; padding-top: 48px; }
}

/* The hero figure. Beside the heading it is a 4 by 5 plate. Stacked under the button, that
   shape made it taller than the screen, so there it is a band of whole 32 pixel grid cells:
   9 on a tablet, 8 on a phone. The squares and the line under them keep their places in its
   top left corner. The upright line is measured from the bottom, and in a band this short it
   would run into the blue square, so it is left out. !important because the shape is set
   inline in index.html. */
@media (max-width: 900px) {
  #top figure { aspect-ratio: auto !important; height: 288px; }
  #top figure > div:nth-of-type(4) { display: none; }
}
@media (max-width: 760px) {
  #top figure { height: 256px; }
}

/* Contact form: honeypot, Turnstile slot and inline status. The status has the looks of the
   design system's .notice, .notice-ok and .notice-error. */
.ob-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ob-turnstile:empty { display: none; }
.ob-status { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.5; border-left: 3px solid var(--color-accent); background: var(--color-surface); }
.ob-status[data-state="success"] { border-left-color: var(--color-ok); color: var(--color-ok); font-weight: 600; }
.ob-status[data-state="error"] { border-left-color: var(--color-danger); color: var(--color-danger); }
.ob-status a { font-weight: 600; color: inherit; }
