/* opitik — consulting practice draft
   Visual: precise studio. Not neon. Not photo-feed. Not wood-mark brands. */
:root {
  --ink: #14171c;
  --ink-soft: #3a404a;
  --muted: #6b7280;
  --line: #d8dbe0;
  --paper: #f3f2ee;
  --paper-raised: #faf9f6;
  --accent: #1f4f5b;       /* deep teal — optics / clarity */
  --accent-hover: #163a43;
  --focus: #1f4f5b;
  --max: 68rem;
  --measure: 38rem;
  --space: clamp(1.25rem, 3vw, 2rem);
  --radius: 2px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--space);
  top: var(--space);
  z-index: 100;
  background: var(--paper-raised);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
}

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

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

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-main {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  min-height: 60vh;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.draft-note {
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ——— Wordmark ——— */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-mark {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.wordmark-text {
  font-size: 1.125rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  line-height: 1;
}

/* ——— Type ——— */
h1,
h2,
h3 {
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.hero-aside p {
  margin: 0 0 0.85rem;
}

.hero-aside p:last-child {
  margin-bottom: 0;
}

/* ——— Cards / services ——— */
.section {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-link {
  font-size: 0.9375rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.975rem;
  flex: 1;
}

.card-index {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.card a {
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

/* ——— CTA ——— */
.cta-band {
  background: var(--ink);
  color: #e8e9eb;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.cta-band h2 {
  color: #faf9f6;
  margin: 0 0 0.5rem;
  max-width: none;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}

.cta-band p {
  margin: 0;
  color: #b8bdc6;
  max-width: 36rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  background: var(--paper-raised);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: var(--paper-raised);
}

.btn-on-dark {
  background: var(--paper-raised);
  color: var(--ink);
}

/* ——— Service detail pages ——— */
.service-list {
  display: grid;
  gap: 2rem;
}

.service-block {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 780px) {
  .service-block {
    grid-template-columns: 12rem 1fr;
    gap: 2rem;
  }
}

.service-meta .num {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.service-meta h2 {
  margin: 0;
  font-size: 1.35rem;
}

.bullet-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.bullet-list li {
  margin-bottom: 0.45rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

/* ——— About ——— */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.panel p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.panel p:last-child {
  margin-bottom: 0;
}

/* ——— Contact ——— */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.placeholder-email {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.form legend {
  font-weight: 560;
  margin-bottom: 0.35rem;
  padding: 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-disabled-note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 22rem;
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
