/* Cloud Steward — Open Editorial Practice Stylesheet */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-wdth-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-wdth-wght-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --wash: #f6f8f6;
  --sage-panel: #f4f7f4;
  --sage-border: #e1e8e2;
  --ink: #131a15;
  --ink-2: #2c3630;
  --body: #37413b;
  --muted: #5a665e;
  --rule: #eaede9;
  --input-border: #cfd6d1;
  --brand: #263b2d;
  --brand-hover: #1b2c21;
  --brand-tint: #eef2ef;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--wash) 0%, var(--bg) 340px);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--body);
  font: 400 17px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(38, 59, 45, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}

a:hover {
  color: var(--brand-hover);
  text-decoration-color: var(--brand-hover);
}

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

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--brand);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.skip-link:focus {
  left: 12px;
  color: #ffffff;
}

/* Header */
.site-header {
  padding: 26px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 27px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.nav-contact {
  padding: 8px 15px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand) !important;
  transition: background 0.14s ease, color 0.14s ease;
}

.nav-contact:hover,
.nav-contact[aria-current="page"] {
  background: var(--brand);
  color: #ffffff !important;
}

/* Hero */
.hero {
  padding: clamp(44px, 7vw, 76px) 0 clamp(56px, 7vw, 76px);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 46px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 19.5px);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid #1e3024;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: 500 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.direct-link {
  font-size: 15px;
  color: var(--ink-2);
}

/* Section 1: What we build (Open horizontal rows, one per line) */
.work-section {
  padding: 56px 0 64px;
  border-top: 1px solid var(--rule);
}

.section-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.work-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.work-row {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 12px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.work-row h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.work-row p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  max-width: 52ch;
}

/* Section 2: How projects run (Single calm sage callout sheet) */
.process-sheet {
  background: var(--sage-panel);
  border: 1px solid var(--sage-border);
  border-radius: 10px;
  padding: clamp(28px, 4.5vw, 42px) clamp(24px, 4.5vw, 44px);
}

.process-sheet h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process-list li {
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  max-width: 60ch;
}

.process-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Section 3: About / Founder */
.about-section {
  padding: 68px 0 80px;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.about-photo {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(19, 26, 21, 0.08);
  flex-shrink: 0;
}

.about-content h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about-role {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--muted);
}

.about-content p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  max-width: 54ch;
}

.about-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 15px;
}

/* Contact Page */
.contact-page {
  padding: clamp(36px, 6vw, 64px) 0 clamp(64px, 8vw, 92px);
}

.contact-inner {
  max-width: 560px;
}

.contact-inner h1 {
  font-size: clamp(32px, 4vw, 38px);
}

.contact-intro {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.66;
  color: var(--body);
}

.contact-form {
  margin-top: 32px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(38, 59, 45, 0.12);
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.quiz-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wpcf7-quiz-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.quiz-wrap input {
  max-width: 120px;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: #b42318;
}

.wpcf7-response-output {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 14.5px;
  display: none;
}

form.sent .wpcf7-response-output {
  display: block;
  background: #eef6f1;
  border: 1px solid #b8d6c2;
  color: #1f4d31;
}

form.invalid .wpcf7-response-output,
form.failed .wpcf7-response-output {
  display: block;
  background: #fdf2f2;
  border: 1px solid #efc5c5;
  color: #8f1d1d;
}

form.submitting .wpcf7-response-output {
  display: block;
  background: var(--sage-panel);
  border: 1px solid var(--sage-border);
  color: var(--body);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner img {
  height: 21px;
  width: auto;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 680px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a.hide-sm {
    display: none;
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  .about-layout {
    flex-direction: column;
    gap: 18px;
  }
}
