/*
Theme Name: Clayoz
Theme URI: https://clayoz.com/
Author: Clayoz LLC
Description: Minimal terminal-inspired website for Clayoz.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: clayoz
*/

:root {
  --ink: #151515;
  --muted: #646464;
  --soft: #f3f2ee;
  --line: #d8d7d1;
  --paper: #fff;
  --honey: #f6b900;
  --honey-light: #fff3bd;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--honey);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.prompt,
.feature-index,
.section-label {
  color: #9a7200;
}

.cursor {
  display: inline-block;
  width: 0.65em;
  height: 1.1em;
  background: var(--honey);
  color: transparent;
  animation: blink 1.2s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.nav-cta {
  padding: 7px 12px;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--honey);
}

main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  min-height: 690px;
  padding: 100px 0 84px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.94;
}

h1::after {
  content: "";
  display: block;
  width: 1.25em;
  height: 0.13em;
  margin-top: 0.22em;
  background: var(--honey);
}

.lede {
  max-width: 720px;
  margin: 36px 0 0;
  color: #333;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.hero-actions,
.connect-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  background: var(--honey);
}

.button-secondary {
  background: var(--paper);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 4px var(--honey-light);
}

.terminal-art {
  justify-self: end;
  color: #7b5b00;
  font-size: clamp(11px, 1.25vw, 17px);
  line-height: 1.22;
  transform: rotate(2deg);
}

.terminal-art pre,
.story-mark pre {
  margin: 0;
  font: inherit;
}

.principle {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}

.principle p {
  max-width: 920px;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.4;
}

.line-number {
  color: #9a7200;
  font-weight: 700;
}

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

h2 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-body,
.story > div:last-child {
  max-width: 690px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.section-body p:first-child,
.story h2 + p {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.feature {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--honey);
}

.feature-index {
  margin: 0 0 58px;
  font-size: 12px;
  font-weight: 700;
}

.feature h3 {
  margin: 0 0 13px;
  font-size: 1.35rem;
}

.feature h3::before {
  content: "> ";
  color: #9a7200;
}

.feature p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.workflow-intro,
.progress-copy {
  max-width: 780px;
  margin: 32px 0 0;
  color: #3d3d3d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.workflow-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.workflow-path {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.workflow-path-clayoz {
  border-color: var(--ink);
  background: var(--honey-light);
  box-shadow: 7px 7px 0 var(--honey);
}

.workflow-name,
.status-heading {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.workflow-path ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-path li {
  counter-increment: workflow;
  padding: 13px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.18);
}

.workflow-path li::before {
  content: "[" counter(workflow, decimal-leading-zero) "] ";
  color: #7b5b00;
}

.workflow-path li:not(:last-child)::after {
  content: " ↓";
  float: right;
  color: var(--muted);
}

.progress {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.build-status {
  align-self: start;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.build-status > div {
  padding: 25px;
}

.build-status > div + div {
  border-top: 1px solid var(--ink);
}

.status-heading span {
  color: #7b5b00;
}

.build-status ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 13px;
}

.build-status li {
  padding: 5px 0;
}

.build-status li::before {
  content: "> ";
  color: #7b5b00;
}

.story {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 80px;
  align-items: center;
}

.story-mark {
  justify-self: center;
  padding: 35px;
  color: #745600;
  background: var(--honey-light);
  font-size: clamp(18px, 3.5vw, 38px);
  line-height: 1;
}

.story h2 {
  margin-bottom: 34px;
}

.values ul {
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.values li {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.values li span {
  color: #9a7200;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.connect {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  margin: 80px 0;
  padding: 60px;
  background: var(--honey);
}

.connect p:not(.section-label) {
  max-width: 720px;
  margin-bottom: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.connect .section-label {
  color: #574000;
}

.connect-actions {
  align-content: center;
  justify-content: flex-start;
}

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

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 5px 5px 0 var(--paper);
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 25px 0 45px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.footer-brand span:first-child {
  color: #9a7200;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    padding: 16px 20px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  main,
  footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 80px 0 64px;
  }

  .terminal-art {
    justify-self: start;
    margin-top: 60px;
    font-size: clamp(12px, 3vw, 16px);
  }

  .principle,
  .two-column,
  .story,
  .connect,
  .progress,
  .workflow-compare {
    grid-template-columns: 1fr;
  }

  .principle {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }

  .section {
    padding: 80px 0;
  }

  .two-column,
  .story,
  .connect {
    gap: 45px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .feature-index {
    margin-bottom: 32px;
  }

  .story-mark {
    justify-self: start;
  }

  .connect {
    margin: 50px 0;
    padding: 38px 26px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

  .cursor {
    animation: none;
  }

  .button {
    transition: none;
  }
}
