/* DelmiSoft site. Plain CSS, no build step. Palette comes from the logo: #22c55e, #86efac, white. */

:root {
  color-scheme: light;

  --paper: #f5f8f5;
  --ink: #123524;
  --ink-soft: #465a4f;
  --rule: #cddbd1;
  --green: #22c55e;       /* logo green: fills and buttons only, too light for text on paper */
  --green-deep: #15803d;  /* same family, 4.8:1 on paper: links and small text */
  --mint: #e3f6ea;
  --mint-bright: #86efac; /* logo facet */

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --measure: 62ch;
  --radius: 0.5rem;
}

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

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

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

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

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

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

/* Type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.prose { max-width: var(--measure); }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.muted { color: var(--ink-soft); }

/* Header */

.site-header { padding-block: 1.25rem; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; display: block; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--mint-bright); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* Hero */

.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 34rem;
  margin-top: 1.5rem;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

.button {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
}
.button:hover { background: #4ade80; }

/* The token: availability in the format buyers work in */

.token { margin: 0; }
.token pre {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-x: auto;
}
.token code { font-family: inherit; }
.token .line { display: block; white-space: pre; }
.token .k { color: var(--mint-bright); }
.token .p { color: #86a897; }
.token figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .token .line {
    animation: line-in 350ms ease-out both;
    animation-delay: calc(var(--i) * 110ms + 200ms);
  }
  @keyframes line-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Sections: heading in the left column, content on the right */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 1.25rem clamp(1.5rem, 5vw, 4rem);
}
.split > .split-head p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Offers */

.offers { margin: 0; padding: 0; list-style: none; }
.offer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.offer:first-child { border-top: 0; padding-top: 0; }
.offer h3 { margin-bottom: 0.6rem; }
.offer p { max-width: 58ch; }
.fits { color: var(--ink-soft); font-size: 0.97rem; }
.fits strong { color: var(--ink); font-weight: 600; }

/* Offer cards on the home page: link to the offer page */

.offer h3 a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.offer h3 a:hover { text-decoration-thickness: 4px; }
.offer .more { font-weight: 600; }

/* Standards list on the architecture page */

.standards { margin: 0; }
.standards div { padding-block: 0.8rem; border-top: 1px solid var(--rule); }
.standards div:first-child { border-top: 0; padding-top: 0; }
.standards dt { font-weight: 600; }
.standards dd { margin: 0.15rem 0 0; max-width: 58ch; color: var(--ink-soft); }

/* Results ledger: figure set in the display face, sentence beside it */

.ledger { margin: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.35rem clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}
.ledger-row:first-child { border-top: 0; padding-top: 0; }
.ledger dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ledger dd { margin: 0; max-width: 46ch; }
.ledger .where { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }

.stack { max-width: 52ch; }

/* Call to action band */

.cta { background: var(--mint); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta h2 { max-width: 32ch; }
.cta .mail {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--ink);
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.cta .mail:hover { text-decoration-thickness: 5px; }
.cta p { margin-top: 1rem; }

/* Work page */

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .lede { margin-top: 1.25rem; }

.case h2 { margin-bottom: 0.4rem; }
.case .sector { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.case h3 { margin: 1.75rem 0 0.6rem; }
.case h3:first-child { margin-top: 0; }
.case .facts { padding-left: 1.2em; margin: 0 0 1em; }
.case .facts li { margin-bottom: 0.4em; }

/* Contact page */

.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-thickness: 5px; }

.facts-list { margin: 0; }
.facts-list div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.facts-list div:first-child { border-top: 0; padding-top: 0; }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; max-width: 52ch; }

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 0.25rem; }

/* Narrow screens */

@media (max-width: 30rem) {
  .site-nav { gap: 0.25rem 1rem; }
  .token pre { font-size: 0.72rem; padding: 1rem; }
}

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .ledger-row, .facts-list div { grid-template-columns: minmax(0, 1fr); }
}

.page-head .contact-line { margin-top: 1.5rem; }
.page-head .contact-line-small { margin-top: 1rem; }
