/* Lightshift — lightshift.dev */

:root {
  color-scheme: light dark;

  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #16171a;
  --muted: #52555c;
  --border: #e3e0d8;
  --border-strong: #878379;
  --link: #8f4400;
  --mark: #f0a020;
  --glow: rgba(240, 160, 32, 0.18);
  --fresh: #0ea5e9;
  --nocap: #f97316;
  --live-fg: #10623a;
  --live-bg: #e2f2e8;
  --testing-fg: #824300;
  --testing-bg: #fbecd4;
  --button-bg: #16171a;
  --button-fg: #faf9f6;
  --focus: #1d5fd1;

  --radius: 14px;
  --max: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #18191c;
    --text: #ececee;
    --muted: #a6a9b0;
    --border: #2a2c31;
    --border-strong: #70737b;
    --link: #f5b04a;
    --mark: #f5a524;
    --glow: rgba(245, 165, 36, 0.12);
    --live-fg: #86e0ad;
    --live-bg: #14301f;
    --testing-fg: #f7c479;
    --testing-bg: #372812;
    --button-bg: #ececee;
    --button-fg: #111214;
    --focus: #8ab4ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  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: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--button-bg);
  color: var(--button-fg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.mark-disc {
  fill: var(--mark);
}

.mark-ring {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.25;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 26rem) {
  .header-inner {
    column-gap: 1rem;
  }

  .site-nav ul {
    gap: 0.25rem 0.875rem;
  }
}

/* Hero */

.hero {
  background: radial-gradient(ellipse 60% 80% at 90% 0%, var(--glow), transparent 70%);
}

.hero .wrap {
  padding-block: clamp(3.5rem, 11vw, 7rem) clamp(3rem, 8vw, 5.5rem);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.5rem);
  line-height: 1.1;
}

.lead {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.button-primary {
  background: var(--button-bg);
  color: var(--button-fg);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.2;
}

h3 {
  line-height: 1.3;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem 3rem;
}

.prose {
  max-width: 38rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 650;
}

.prose p {
  margin: 0 0 1rem;
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-fresh {
  --product: var(--fresh);
}

.product-nocap {
  --product: var(--nocap);
}

.product-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.product-name::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--product);
}

.product-tagline {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.4;
}

.product p {
  margin-top: 0;
}

.product > p:not(.product-tagline):not(.product-links) {
  color: var(--muted);
}

.availability {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem 1.25rem;
  margin: 0.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.availability dt {
  color: var(--muted);
  font-weight: 500;
}

.availability dd {
  margin: 0;
}

.status {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.status-live {
  background: var(--live-bg);
  color: var(--live-fg);
}

.status-testing {
  background: var(--testing-bg);
  color: var(--testing-fg);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: auto 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Contact */

.email {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.link-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.link-list li + li {
  margin-top: 0.35rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}

.legal p {
  margin: 0;
}

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

.site-footer ul {
  gap: 0.35rem 1.5rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Not found page */

.not-found .wrap {
  padding-block: clamp(4rem, 14vw, 8rem);
}

.not-found p {
  max-width: 34rem;
  color: var(--muted);
}
