/* Consecrated Tech. Tokens from design/tokens.md. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101317;
  --bg-band: #14181D;
  --surface: #181C22;
  --border: #2A3038;
  /* Darker than the tokens' #3A424C so input edges reach 3:1 (WCAG 1.4.11). */
  --border-input: #5C6570;
  --text: #ECEDEE;
  --text-muted: #C4C9CF;
  --text-subtle: #A3A9B1;
  --placeholder: #868D96;
  --accent: #F08A30;
  --accent-hover: #F49E55;
  --on-accent: #101317;
  --ok: #7FD1AE;
  --bad: #FF7B7B;

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a:hover {
  color: #FFFFFF;
}

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

h1,
h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.btn-lg {
  min-height: 56px;
  padding: 0 26px;
}

.btn-nav {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-wordmark {
  display: block;
  width: 169px;
  height: 29px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-subtle);
  text-decoration: none;
}

/* Hero */

.hero {
  padding-top: 80px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.eyebrow-sm {
  margin: 0;
}

h1 {
  max-width: 16em;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 36em;
  margin: 24px 0 0;
  font-size: 20px;
  color: var(--text-muted);
}

.check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 36px;
}

.check-form {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.check-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-input-row .input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-subtle);
}

.hero-link:hover {
  color: var(--text);
}

.tool {
  margin-top: 56px;
}

.tool + .tool {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.tool h3 {
  font-size: 26px;
  line-height: 1.25;
}

.tool-intro {
  max-width: 40em;
  margin: 12px 0 0;
  color: var(--text-muted);
}

.section-intro {
  max-width: 40em;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--text-muted);
}

.headers-input {
  min-height: 220px;
  font-size: 13px;
  line-height: 1.5;
}

.field-help {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
}

/* Form fields */

.field-label {
  font-size: 14px;
  color: var(--text-subtle);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
}

.input-mono {
  font-family: var(--mono);
}

.input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.input[aria-invalid="true"] {
  border-color: var(--bad);
}

.textarea {
  padding: 12px 14px;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-subtle) 50%), linear-gradient(135deg, var(--text-subtle) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field-error {
  margin: 0;
  font-size: 14px;
  color: var(--bad);
}

/* Result panel */

.panel {
  flex: 1 1 440px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
}

.panel-label {
  margin: 0;
  color: var(--text-subtle);
  overflow-wrap: anywhere;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.row-name {
  flex: none;
  width: 72px;
}

.row-status {
  flex: none;
  width: 96px;
}

.row-line {
  flex: 1 1 12em;
  min-width: 0;
  color: var(--text-subtle);
  line-height: 1.6;
  padding: 0.15em 0;
}

.tone-ok {
  color: var(--ok);
}

.tone-bad {
  color: var(--bad);
}

.tone-muted {
  color: var(--text-subtle);
}

.panel-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary {
  margin: 0;
  color: var(--text);
}

.fixes {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fix {
  line-height: 1.6;
}

.fix-text {
  margin: 0;
  color: var(--text-muted);
}

.record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.record-meta {
  flex: 1 1 100%;
  color: var(--text-subtle);
}

.record-value {
  flex: 1 1 14em;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--text-subtle);
}

.send-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--accent);
}

.send-link:hover {
  color: var(--accent-hover);
}

/* Bands and sections */

.band {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-tail {
  padding-bottom: 88px;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.about-photo {
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text {
  flex: 1 1 520px;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

/* Services */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.card {
  flex: 1 1 440px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.card-title {
  margin: 12px 0 20px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: normal;
}

.ruled-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.ruled-list li {
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

/* Process */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  flex: 1 1 220px;
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.step-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-subtle);
}

.step h3 {
  margin: 8px 0;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.note {
  margin: 48px 0 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
}

.note strong {
  color: var(--text);
}

/* Selected work */

.work-list {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.work-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.work-label {
  flex: 0 0 160px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.work-body {
  flex: 1 1 520px;
  min-width: 0;
}

.work-body h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.work-body p {
  margin: 0;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}

.work-link {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.work-link:hover {
  color: var(--accent-hover);
}

/* Testimonials */

.quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.quote {
  flex: 1 1 440px;
  min-width: 0;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.quote blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

.quote figcaption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-subtle);
}

/* Contact */

.band-contact {
  border-bottom: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact-intro {
  flex: 1 1 360px;
  min-width: 0;
}

.h2-contact {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.contact-text {
  margin: 16px 0 28px;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 15px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links .accent-link {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field-row .field {
  flex: 1 1 200px;
}

.btn-send {
  align-self: flex-start;
}

.form-status {
  margin: 0;
  color: var(--text-muted);
}

.form-status:empty {
  display: none;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--text-subtle);
}

/* Some of the tools I use */

.uses {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 56px;
}

.uses h2 {
  font-size: 28px;
}

.uses-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.uses-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.uses-item h3 {
  font-size: 21px;
}

.uses-item p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

/* Sync page */

.page {
  padding-top: 80px;
  padding-bottom: 88px;
}

.reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.reason {
  flex: 1 1 320px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.reason-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.reason h2 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: normal;
}

.reason p {
  margin: 0;
  color: var(--text-muted);
}

.page-cta {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.page-cta p {
  max-width: 40em;
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--text-muted);
}

.page-cta .disclosure {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-subtle);
}

/* 404 */

.not-found {
  padding-top: 120px;
  padding-bottom: 120px;
}

.not-found p {
  max-width: 36em;
  margin: 24px 0 32px;
  font-size: 20px;
  color: var(--text-muted);
}
