/* 1214 Ventures — 1214ventures.co.ke */

:root {
  --ink:    #ece9e4;   /* warm off-white */
  --ground: #0b0b0c;   /* near black */
  --muted:  #7a7873;   /* attributions, footer */
  --accent: #c8a24a;   /* quote marks, links */
  --rule:   #1e1e20;

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
           Roboto, Helvetica, Arial, sans-serif;

  --measure: 34rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

/* screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- layout ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 16vh, 9rem) 1.5rem 0;
}

/* ---------- wordmark ---------- */

.mark {
  margin-bottom: clamp(4rem, 14vh, 8rem);
}

.mark__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 13vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.mark__word {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- quotes ---------- */

.quote {
  margin: 0 0 clamp(3.5rem, 11vh, 6rem);
}

.quote:last-of-type {
  margin-bottom: clamp(3rem, 9vh, 5rem);
}

.quote blockquote {
  margin: 0;
  position: relative;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.6vw + 0.44rem, 1.45rem);
  line-height: 1.62;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* hanging opening quote mark */
.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.08em;
  left: -0.5em;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}

.quote blockquote p:last-of-type::after {
  content: "\201D";
  font-size: 1.55em;
  line-height: 0;
  vertical-align: -0.28em;
  color: var(--accent);
  opacity: 0.55;
  margin-left: 0.02em;
}

.quote .inner {
  font-style: italic;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.8rem;
  row-gap: 0.35rem;
  margin-top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote figcaption a {
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.quote figcaption a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- contact ---------- */

.contact {
  padding-top: clamp(0.75rem, 3vh, 1.6rem);
}

.email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
  word-break: break-word;
}

.email:hover { color: var(--accent); }

.place {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 8rem) 1.5rem clamp(2.5rem, 8vh, 4rem);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot p { margin: 0; }

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------- prose (privacy page) ---------- */

.prose h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  color: #cfccc6;
  text-wrap: pretty;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

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

.back {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.back:hover { color: var(--accent); }

.lost {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  color: var(--ink);
  margin-bottom: 1.6rem;
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .mark, .quote, .contact, .foot {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .quote:nth-of-type(1) { animation-delay: 0.12s; }
  .quote:nth-of-type(2) { animation-delay: 0.24s; }
  .contact              { animation-delay: 0.36s; }
  .foot                 { animation-delay: 0.46s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- wide screens ---------- */

@media (min-width: 46rem) {
  :root { --measure: 38rem; }
}
