/* jaminsage.com: white ground, Geist, one blue accent. */

:root {
  --ground: #ffffff;
  --ink: #111513;
  --text: #3b433e;
  --text-2: #4a524d;
  --muted: #6b736e;
  --line: #e6e8e5;
  --panel: #f4f6f3;
  --accent: #1d4ed8;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-2);
  padding: 12px 0;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero-home {
  padding-bottom: 96px;
}

.hero-sub {
  padding-top: 72px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  max-width: 760px;
}

.hero-home h1 {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
}

.lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text);
  max-width: 660px;
}

.lede-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.crumb {
  font-size: 15px;
  color: var(--muted);
}

.crumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  padding: 12px 0;
}

/* Sections */

.block {
  padding-top: 88px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* Home page link rows */

.rows {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.row-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.row-note {
  font-size: 16px;
  color: var(--muted);
}

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

/* Two columns of ruled lists */

.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
}

.col {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.col-end {
  justify-content: flex-end;
}

.ruled {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.ruled li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.ruled-lg li {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.steps li {
  display: flex;
  gap: 20px;
}

.steps .num {
  flex: none;
  width: 16px;
  color: var(--muted);
}

/* Grid of short items */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 80px;
  border-bottom: 1px solid var(--line);
}

.item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
}

.item h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.item p,
.panel-grid p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Grey panel */

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border-radius: 16px;
  background: var(--panel);
}

.panel-gap {
  gap: 28px;
}

.panel h2,
.panel-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.panel-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  max-width: 660px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 48px;
}

.panel-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-grid h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.panel-link {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.panel-link:hover {
  color: inherit;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.panel-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.panel-more {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

.panel-link:hover .panel-more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contact */

.contact {
  padding-top: 96px;
}

.contact-tight {
  padding-top: 72px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-email {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.verse {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  max-width: 420px;
}

.verse span {
  color: var(--muted);
}

.fineprint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    gap: 0 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 0 18px;
  }

  .hero,
  .hero-home {
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-sub {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -0.035em;
  }

  .hero-home h1 {
    font-size: 46px;
  }

  .lede {
    font-size: 18px;
    line-height: 1.5;
  }

  .block {
    padding-top: 56px;
  }

  .cols {
    gap: 48px;
  }

  .col {
    flex-basis: 100%;
    gap: 14px;
  }

  .stack {
    gap: 14px;
  }

  .row {
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
  }

  .row-title {
    font-size: 21px;
  }

  .row-note {
    font-size: 15px;
  }

  .ruled li {
    padding: 15px 0;
    font-size: 16px;
  }

  .ruled-lg li {
    font-size: 17px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .item {
    gap: 6px;
    padding: 18px 0 20px;
  }

  .item h3 {
    font-size: 18px;
  }

  .panel {
    padding: 26px 22px;
    border-radius: 14px;
  }

  .panel-gap {
    gap: 22px;
  }

  .panel h2,
  .panel-title {
    font-size: 24px;
  }

  .panel-body,
  .panel-text {
    font-size: 16px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact,
  .contact-tight {
    padding-top: 64px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .contact h2 {
    font-size: 28px;
  }

  .contact-email {
    font-size: 23px;
    text-underline-offset: 5px;
  }

  .site-footer {
    margin-top: 64px;
  }

  .footer-row {
    padding-top: 28px;
    padding-bottom: 40px;
  }
}

@media (max-width: 360px) {
  .site-nav {
    gap: 0 14px;
    font-size: 14px;
  }

  .hero-home h1 {
    font-size: 40px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .contact-email {
    font-size: 20px;
  }
}

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