/*
Theme Name: Sensord Landing
Theme URI: https://sensord.fi/
Author: Sensord
Description: Minimal one-page WordPress theme for the Sensord landing page.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: sensord
*/

:root {
  --paper: #f6f1e7;
  --ink: #171611;
  --muted: #6f6a5e;
  --border: #d8cfbe;
  --ochre: #b46427;
  --ochre-deep: #9f4f1f;
  --background: var(--paper);
  --foreground: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
}

.site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(159, 79, 31, 0.06), transparent 34rem),
    linear-gradient(rgba(23, 22, 17, 0.018) 1px, transparent 1px),
    var(--background);
  background-size: auto, 100% 9px, auto;
}

.font-display,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.site-header,
.section,
.site-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-letters {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-letters span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  font-variant: small-caps;
}

.logo-letters .is-active {
  background: var(--ink);
  color: var(--paper);
}

.listen-dot {
  position: relative;
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--ochre-deep);
}

.listen-dot::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: inherit;
  border: 1px solid rgba(159, 79, 31, 0.35);
  animation: sensord-pulse 2.2s ease-out infinite;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--foreground);
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button {
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.5rem;
}

.button:hover {
  background: var(--ochre-deep);
}

.button-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ochre-deep);
  text-underline-offset: 4px;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 6rem;
}

.hero-grid,
.split-grid,
.concept-heading {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--ochre-deep);
}

.hero-copy {
  color: rgba(23, 22, 17, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 28rem;
}

.hero-copy p {
  margin: 0;
}

.ochre-mark {
  color: var(--ochre-deep);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.signal {
  margin-top: 6rem;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  height: 8rem;
}

.signal-bars span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--ink) 85%, transparent);
  opacity: 0.85;
}

.signal-bars .hot {
  background: var(--ochre-deep);
  opacity: 1;
}

.signal-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hairline {
  border-top: 1px solid var(--border);
}

.concept-heading {
  margin-bottom: 4rem;
}

.concept-heading h2,
.early h2 {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.how h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.125rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.concept-cards {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 20rem;
  padding: 2rem;
  background: var(--background);
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.number {
  color: var(--ochre-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.875rem;
}

.kicker {
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-align: right;
  text-transform: uppercase;
}

.concept-card h3,
.how-list h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.1;
}

.concept-card p,
.how-list p,
.early p {
  color: rgba(23, 22, 17, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.concept-card p {
  margin: auto 0 0;
}

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

.how-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.how-list li:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.how-list .number {
  width: 2.5rem;
  font-size: 1.5rem;
}

.how-list p {
  max-width: 28rem;
  margin: 0.25rem 0 0;
}

.early p {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: rgba(23, 22, 17, 0.8);
  font-size: 1rem;
}

.horizon-card {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(23, 22, 17, 0.025) 1px, transparent 1px),
    rgba(246, 241, 231, 0.72);
  background-size: 7px 100%;
}

.horizon-head,
.horizon-row-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.horizon-head {
  margin-bottom: 1.5rem;
}

.horizon-head strong {
  color: var(--ochre-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 400;
}

.horizon-row {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.horizon-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.horizon-row-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.horizon-row-label span:first-child {
  color: rgba(23, 22, 17, 0.7);
}

.horizon-row-label strong,
.horizon-row-label span:last-child {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.bar {
  position: relative;
  height: 3px;
  background: var(--border);
}

.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: var(--ink);
}

.bar .hot {
  background: var(--ochre-deep);
}

.contact h2 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-brand,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-brand strong {
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

@keyframes sensord-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (min-width: 768px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 8rem;
  }

  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero-grid,
  .split-grid,
  .concept-heading {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-title {
    grid-column: span 8;
  }

  .hero-copy {
    grid-column: span 4;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
  }

  .signal {
    margin-top: 8rem;
  }

  .signal-bars {
    gap: 4px;
    height: 11rem;
  }

  .concept-heading .eyebrow,
  .split-intro {
    grid-column: span 4;
  }

  .concept-heading h2 {
    grid-column: span 8;
  }

  .concept-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .concept-card {
    padding: 2.5rem;
  }

  .how .split-intro {
    grid-column: span 5;
  }

  .how-list {
    grid-column: span 7;
    padding-left: 3rem;
  }

  .early-copy {
    grid-column: span 7;
  }

  .early-aside {
    grid-column: span 5;
    padding-left: 2rem;
  }

  .horizon-card {
    margin-top: 0;
  }

  .contact {
    padding-top: 8rem;
    padding-bottom: 10rem;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .button-outline {
    display: none;
  }

  .logo-letters span {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.78rem;
  }

  .signal-caption {
    letter-spacing: 0.12em;
  }
}
