/* Imora prototype — calm operational hospitality.
   No web fonts, no third-party assets. Contrast pairs are measured by checks/run-checks.mjs. */

:root {
  --ivory: #F7F5F0;
  --linen: #EFEBE2;
  --paper: #FFFDF8;
  --ink: #17241E;
  --ink-2: #45534C;
  --green: #244D3B;
  --green-dark: #1A3A2C;
  --green-deep: #1C3529;
  --rule: #D9D2C4;
  --line: #6F7B74;
  --error: #A3261B;
  --on-dark: #F7F5F0;
  --on-dark-2: #CBD8CF;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", "Source Serif Pro", Georgia, "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --radius: 8px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
p + p { margin-top: 0.85em; }

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark); }
.section-dark .form-card :focus-visible { outline-color: var(--green); }

[id] { scroll-margin-top: 1rem; }
main:focus { outline: none; }

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

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--on-dark);
  padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.625rem 1.25rem;
  border: 2px solid transparent; border-radius: 6px;
  font: inherit; font-weight: 650; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper); }
.btn-inverse { background: var(--on-dark); color: var(--ink); }
.btn-inverse:hover { background: #fff; }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ivory); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; min-height: 4.25rem; padding-block: 0.5rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.625rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.wordmark::after {
  content: ""; width: 0.38rem; height: 0.38rem; margin-left: 0.2rem; margin-top: 0.55rem;
  background: var(--green); border-radius: 1px;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.5rem; list-style: none; }
.site-nav ul a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding-inline: 0.375rem;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.site-nav ul a:hover { text-decoration: underline; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 0.875rem;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px;
  font: inherit; font-weight: 650; cursor: pointer;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block; width: 1rem; height: 2px; background: currentColor; position: relative;
}
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -5px; }
.menu-toggle-icon::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 59.99rem) {
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    padding-block: 0.25rem 1rem;
  }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul li + li { border-top: 1px solid var(--rule); }
  .js .site-nav ul a { display: flex; min-height: 3rem; }
  .js .site-nav .btn { margin-top: 0.5rem; }
}
@media (min-width: 60rem) {
  .menu-toggle { display: none !important; }
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.section-dark .eyebrow { color: var(--on-dark-2); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.section-alt { background: var(--linen); }
.section h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem); max-width: 22ch; }

.small-note { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); line-height: 1.06; max-width: 15ch; }
.lede { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); max-width: 40ch; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; margin-top: 1.75rem; }

.terms {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.terms li { display: inline-flex; align-items: center; gap: 0.5rem; }
.terms li::before { content: ""; width: 0.4rem; height: 0.4rem; background: var(--green); border-radius: 1px; }

/* ---------- Hero video ---------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--green-deep); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(23, 36, 30, 0.04), 0 18px 40px -22px rgba(23, 36, 30, 0.55);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  color: var(--on-dark); text-align: center;
  background: radial-gradient(120% 90% at 50% 40%, var(--green) 0%, var(--green-deep) 70%);
}
.video-play {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--on-dark);
}
.video-play::before {
  content: ""; margin-left: 0.3rem;
  border-style: solid; border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--green-deep);
}
.video-label { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.video-soon { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.hero-video figcaption { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-2); }

@media (max-width: 30rem) {
  .cta-row .btn, .cta-primary { width: 100%; }
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

/* ---------- Process ---------- */
.process { list-style: none; display: grid; gap: 1rem; margin-top: 2.25rem; counter-reset: none; }
@media (min-width: 40rem) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li { padding: 1.25rem; border-top: 2px solid var(--ink); }
.process-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums;
}
.process h3 { margin-bottom: 0.5rem; }
.process p { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 48rem) { .founder { grid-template-columns: 9rem minmax(0, 1fr); gap: 3rem; } }
.monogram {
  display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%;
  background: var(--linen); border: 1px solid var(--rule); color: var(--green);
  font-family: var(--serif); font-size: 2.25rem; font-weight: 600; letter-spacing: 0.04em;
}
@media (min-width: 48rem) { .monogram { width: 9rem; height: 9rem; font-size: 2.75rem; } }
.founder-copy h2 { margin-bottom: 1.25rem; }
.founder-copy p { max-width: 64ch; }
.founder-copy .small-note { margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .faq-wrap { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 4rem; } }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.25rem; padding: 0.75rem 0.25rem;
  font-weight: 650; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--line); border-radius: 50%;
  font-size: 1.125rem; font-weight: 500; line-height: 1; color: var(--ink);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--green); }
.faq-body { padding: 0 0.25rem 1.25rem; max-width: 64ch; color: var(--ink-2); }

/* ---------- Fit + form ---------- */
.section-dark { background: var(--green-deep); color: var(--on-dark); border-top: 0; }
.section-dark a:not(.btn) { color: var(--on-dark); }
.fit-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .fit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.fit-copy h2 { margin-bottom: 1rem; }
.fit-copy > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 1.5rem; color: var(--on-dark-2); }

.form-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.section-dark .form-card a { color: var(--green); }
.form-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.form-intro { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-2); }

.fit-form { display: grid; gap: 1.125rem; margin-top: 1.25rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field input {
  display: block; width: 100%; min-height: 3rem; padding: 0.625rem 0.75rem;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 1rem;
}
.field input::placeholder { color: #6A746E; }
.field input:focus-visible {
  outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field-error { margin-top: 0.35rem; font-size: 0.9375rem; font-weight: 600; color: var(--error); }
.field-error::before { content: "Error: "; }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.error-summary {
  margin-top: 1.25rem; padding: 1rem; border: 2px solid var(--error); border-radius: 6px; background: #FBF1EF;
}
.error-summary-title { font-weight: 700; color: var(--error); }
.error-summary ul { margin-top: 0.5rem; padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 600; display: inline-block; padding-block: 0.3rem; }


/* Spam trap: hidden from people, filled in by bots. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send-error { margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--error); }

.sent-status {
  margin-top: 1.25rem; padding: 1rem; border: 1.5px solid var(--green); border-radius: 6px; background: var(--ivory);
}
.sent-status:focus { outline: none; }
.sent-status-title { font-weight: 700; font-size: 1.0625rem; }

.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; margin-top: 0.75rem; }
.copy-feedback { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }

.email-alt { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.email-alt a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; overflow-wrap: anywhere; }
.email-alt .copy-row:has(> [hidden]:first-child) { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-block: 2.5rem; font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark); }
.footer-inner { display: grid; gap: 0.75rem; }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
}
.wordmark-footer { color: var(--on-dark); font-size: 1.375rem; min-height: 0; }
.wordmark-footer::after { background: var(--on-dark-2); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Privacy page ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 1.25rem; }
.doc h2 { font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.doc p, .doc ul { max-width: 66ch; }
.doc ul { padding-left: 1.2rem; margin-top: 0.75rem; }
.doc li + li { margin-top: 0.4rem; }
.doc .small-note { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
