/* Leplexis — base styles */

:root {
  --ink:          #2c2836;
  --ink-soft:     #625d73;
  --line:         #e0dbe9;
  --line-soft:    #eeeaf4;
  --bg:           #ffffff;
  --bg-tint:      #f6f3fb;
  --accent:       #7a5ea8;
  --accent-dark:  #5f4788;
  --measure:      68rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line-soft); }

.tint {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

section.tint + section { border-top: 0; }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.narrow { max-width: 42rem; }

/* ---------- Intro ---------- */

.intro { padding: 4.5rem 0 4rem; }

.intro h1 { max-width: 22ch; }

.intro .actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.button {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.95rem;
}

.button:hover { background: var(--accent); color: #fff; }

.button-quiet {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.button-quiet:hover {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* ---------- Grids ---------- */

.cols {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 46rem) {
  .split { grid-template-columns: 1.1fr 1fr; }
}

.service h3 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.service p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Gallery ---------- */

.gallery {
  columns: 3 16rem;
  column-gap: 1.5rem;
}

.gallery figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 1.6rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg-tint);
}

.gallery figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.framed {
  border: 1px solid var(--line);
  background: var(--bg-tint);
}

/* ---------- Details list ---------- */

.detail-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .detail-list div { grid-template-columns: 10rem 1fr; }
}

.detail-list dt {
  font-weight: 600;
  font-size: 0.95rem;
}

.detail-list dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 0.85rem;
  line-height: 1.6rem;
  text-align: center;
}

.steps strong { display: block; }
.steps span { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Figures ---------- */

.media { margin: 0; }

.media img {
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 0 auto;
}

.media figcaption {
  margin: 0.6rem auto 0;
  max-width: 24rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 2.2rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-dark); }
