/* Limn Software landing page. Values come from design-system/README.md. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/newsreader-normal-400-500.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/figtree-normal-400-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-normal-500.woff2") format("woff2");
}

:root {
  --paper: #FAF8F1;
  --ink: #1E2B22;
  --yellow: #F6EDB3;
  --highlight: #F9EC9B;
  --body: #3C473F;
  --label: #566057;
  --label-on-yellow: #46524A;
  --rule: #B9BFAE;
  --link-hover: #3D6B45;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, monospace;

  --page-max: 1080px;
  --page-gutter: 24px;
  --section-space: 88px;
}

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

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
  color: var(--paper);
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.mark {
  flex: none;
  fill: currentColor;
  stroke: currentColor;
}

.label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.display em,
.hero h1 em {
  font-style: italic;
}

.muted {
  color: var(--body);
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.header-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
}

/* Hero */

.hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 104px;
  padding-bottom: 112px;
}
.hero h1 {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 em {
  box-shadow: inset 0 -0.42em 0 var(--highlight);
}
.hero .lead {
  max-width: 620px;
  font-size: 1.1875rem;
  color: var(--body);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--link-hover);
  color: var(--paper);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
}

/* The kind of work we do */

.work {
  border-top: 1px dashed var(--rule);
}
.work .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.work-intro {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-list {
  flex: 999 1 520px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: work;
  border-bottom: 1px dashed var(--rule);
}
.work-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px dashed var(--rule);
  counter-increment: work;
}
.work-list li::before {
  content: counter(work);
  flex: 0 0 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.3;
}
.work-list h3,
.how-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4375rem;
  line-height: 1.3;
}
.work-list p {
  margin-top: 4px;
  color: var(--body);
}

/* How we work */

.how {
  padding: 0 var(--page-gutter);
}
.how-panel {
  max-width: calc(var(--page-max) - 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 56px clamp(24px, 5vw, 56px);
  border-radius: 10px;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 40px;
}
.how-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-grid .label {
  color: var(--label-on-yellow);
}
.how-grid p {
  color: var(--body);
}

/* About and contact */

.about .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 64px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.about .wrap > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.about-text {
  font-family: var(--font-display);
  font-size: 1.6875rem;
  line-height: 1.3;
}
.phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px dashed var(--rule);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.875rem;
  color: var(--label);
}
.site-footer .mark {
  color: var(--ink);
}

@media (max-width: 600px) {
  .hero .wrap {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .work .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .about .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .how-panel {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .display {
    font-size: 2rem;
  }
}

@media print {
  .skip-link,
  .actions {
    display: none;
  }
}
