@font-face {
  font-family: "Saira";
  src: url("/static/fonts/saira.woff2") format("woff2");
  font-weight: 400 650;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --paper: #F3F6F4;
  --panel: #FFFFFF;
  --ink: #12241C;
  --muted: #4A5D54;
  --green: #1F6E50;
  --on-green: #FFFFFF;
  --error: #A3262A;
  --rule: #B9C7BF;
  --survey: #CFDAD4;
  --field-border: #74877E;
  --focus: #1F6E50;
  --band: #1F6E50;
  --on-band: #FFFFFF;
  --on-band-muted: #D3E6DC;

  --wide: 125%;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1813;
    --panel: #14231C;
    --ink: #E2EBE6;
    --muted: #9EB2A8;
    --green: #4FB287;
    --on-green: #0E1813;
    --error: #F2998F;
    --rule: #3A5046;
    --survey: #22342B;
    --field-border: #6E857A;
    --focus: #7CCBA6;
    --band: #173B2D;
    --on-band: #E2EBE6;
    --on-band-muted: #B4CCBF;
    color-scheme: dark;
  }
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Saira", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-stretch: 100%;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .5rem .75rem;
  background: var(--panel);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-green);
  font: inherit;
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: color-mix(in srgb, var(--green) 86%, var(--ink)); }
.button:disabled { cursor: progress; opacity: .7; }

.button--quiet {
  min-height: 2.5rem;
  padding: .5rem 1rem;
  background: transparent;
  color: var(--green);
  font-size: 1rem;
}
.button--quiet:hover {
  background: var(--green);
  color: var(--on-green);
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.logo {
  display: block;
  color: var(--green);
  line-height: 0;
}
.logo svg { height: 2rem; width: auto; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -.012em;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.status {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
}

/* The plat. Its lines are drawn once, as the page loads; nothing else on
   the page moves on its own. */

.plat { margin: 0; }

.plat svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.plat text {
  font-family: inherit;
  font-feature-settings: "tnum";
  fill: var(--muted);
}

.plat__lines path {
  fill: none;
  stroke: var(--survey);
  stroke-width: 1.5;
}
.plat__lines .plat__minor { stroke-dasharray: 2 6; }

.plat__surveys text {
  font-size: 11px;
  font-style: italic;
}

.plat__north path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plat__north text {
  font-size: 11px;
  font-weight: 600;
}

.leg {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.leg--close {
  stroke-width: 2.5;
  stroke-dasharray: 9 7;
  stroke-linecap: butt;
}

.mon {
  fill: var(--paper);
  stroke: var(--green);
  stroke-width: 3;
}

.call {
  font-size: 11.5px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
  white-space: pre;
}
.call--pob { font-weight: 600; fill: var(--ink); text-anchor: end; }

.plat__acres {
  font-size: 15px;
  font-stretch: var(--wide);
  font-weight: 600;
  fill: var(--ink);
}

.bore {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
}

.well--oil { fill: var(--ink); }

.well--gas {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .leg {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw .5s cubic-bezier(.45, 0, .25, 1) forwards;
  }
  .leg--close {
    stroke-dasharray: 9 7;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: appear .5s ease-out forwards;
  }
  .mon, .call, .plat__acres, .plat__wells {
    opacity: 0;
    animation: appear .35s ease-out forwards;
  }

  .mon--1, .call--pob { animation-delay: .2s; }
  .leg--1 { animation-delay: .3s; }
  .mon--2, .call--1 { animation-delay: .75s; }
  .leg--2 { animation-delay: .8s; }
  .mon--3, .call--2 { animation-delay: 1.25s; }
  .leg--3 { animation-delay: 1.3s; }
  .mon--4, .call--3 { animation-delay: 1.75s; }
  .leg--4 { animation-delay: 1.8s; }
  .mon--5, .call--4 { animation-delay: 2.25s; }
  .leg--close, .call--close { animation-delay: 2.4s; }
  .plat__acres { animation-delay: 2.8s; }
  .plat__wells { animation-delay: 3.1s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* What it does */

.calls { padding-block: clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }

.traverse {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 6rem);
}

.traverse li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
  align-content: start;
}

.feature__icon {
  grid-row: span 2;
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__icon .accent { stroke: var(--green); }
.feature__icon .solid { fill: currentColor; stroke: none; }
.feature__icon .accent.solid { fill: var(--green); }
.feature__icon .solid:not(.accent) { fill: var(--ink); }
.feature__icon .bar { stroke-width: 5; }
.feature__icon .dashed { stroke-dasharray: 3.5 4; }

.traverse h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}

.traverse p {
  color: var(--muted);
  max-width: 32rem;
}

/* Where the data lives */

.private {
  margin-top: clamp(1rem, 3vw, 2rem);
  background: var(--band);
  color: var(--on-band);
}

.private__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.private h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.12;
}

.private__body {
  display: grid;
  gap: 1rem;
  font-size: 1.15rem;
}
.private__body p + p { color: var(--on-band-muted); }

/* The early-access form */

.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 1rem;
}
.access:focus { outline: none; }

.access__intro {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-top: 2.5rem;
  border-top: 2.5px dashed var(--green);
}

.access h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

.access__intro p {
  max-width: 30rem;
  color: var(--muted);
}

.access__panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.form {
  display: grid;
  gap: 1.25rem;
  justify-items: stretch;
}

.form .button { justify-self: start; }

.form__message {
  padding: .75rem 1rem;
  border-left: 4px solid var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--panel));
  color: var(--ink);
}

.form__note {
  color: var(--muted);
  font-size: .9rem;
}

.field {
  display: grid;
  gap: .375rem;
}

.field label {
  font-weight: 600;
  font-size: 1rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .625rem .875rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.5;
}

.field__hint {
  color: var(--muted);
  font-size: .95rem;
  margin-top: -.125rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--error); }

.field__error {
  color: var(--error);
  font-size: .95rem;
}
.field__error:empty { display: none; }

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; }

.done {
  display: grid;
  gap: .5rem;
}
.done:focus { outline: none; }
.done h3 {
  font-size: 1.4rem;
  color: var(--green);
}

/* Colophon */

.colophon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding-block: 2.5rem 3rem;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  color: var(--muted);
  font-size: .95rem;
}

.colophon__logo {
  width: auto;
  height: 1.5rem;
  color: var(--green);
}

.colophon__home { line-height: 0; }

.colophon__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}

.colophon a:not(.colophon__home) {
  color: var(--muted);
  text-decoration: none;
}
.colophon a:not(.colophon__home):hover {
  color: var(--green);
  text-decoration: underline;
}

.colophon__legal {
  justify-self: end;
  text-align: right;
}

/* The privacy page */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.legal h2 {
  font-size: 1.3rem;
  font-stretch: 112%;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.legal p + p { margin-top: 1rem; }

.legal__updated {
  margin-top: .5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .95rem;
}

/* Narrow screens */

@media (max-width: 56rem) {
  .hero,
  .private__inner,
  .access { grid-template-columns: minmax(0, 1fr); }

  .plat { max-width: 34rem; }

  .traverse { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 36rem) {
  .masthead .button--quiet { display: none; }

  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon__legal { justify-self: start; text-align: left; }

  .traverse li { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; }
  .feature__icon { width: 2.75rem; height: 2.75rem; }

}
