/* KEH Holdings — site styles */
:root {
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --paper-3: #ddd6c6;
  --ink: #1b1f1b;
  --ink-soft: #4d564d;
  --sage: #3c5a48;
  --sage-deep: #24362c;
  --stem: #5d7d66;
  --gold: #a9844d;
  --gold-soft: #c4a574;
  --rule: rgba(27, 31, 27, 0.14);
  --rule-strong: rgba(27, 31, 27, 0.28);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 500px at 8% -10%, rgba(93, 125, 102, 0.09), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(169, 132, 77, 0.07), transparent 50%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01" on, "kern" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(60, 90, 72, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  color: var(--sage);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

nav ul {
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Hero */
.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 8.4vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
}

.lede {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
}

.section.alt {
  background: color-mix(in srgb, var(--paper-2) 70%, var(--paper));
}

.grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 38rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

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

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
}

/* App listing */
.app {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem 0 0;
}

.app-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.app-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.app-row h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
}

.app-row p {
  margin: 0;
  color: var(--ink-soft);
}

.status {
  display: inline-block;
  align-self: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: color-mix(in srgb, var(--paper) 80%, white);
}

/* Contact block */
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.contact-list dt,
.contact-list .label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.3rem;
}

.contact-list a {
  font-size: 1.15rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--sage-deep);
  color: #e8e2d4;
  padding: 2.4rem 0 2.1rem;
}

.site-footer a {
  color: #f3efe6;
  text-decoration-color: rgba(243, 239, 230, 0.4);
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: end;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-meta,
.legal {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(232, 226, 212, 0.75);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
}

.page-hero {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
}

.legal-doc {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.legal-doc .prose {
  max-width: 42rem;
}

.legal-doc .updated {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .grid,
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  nav ul {
    gap: 0.9rem;
  }

  .brand-name span {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
