/* In God We — public site. Mobile-first. No build step. */

:root {
  --paper: #f3ebdd;
  --paper-raised: #faf6ee;
  --ink: #241e18;
  --ink-soft: #5a5248;
  --line: #d8ccb8;
  --brass: #6b4423;
  --brass-hover: #523318;
  --clay: #8f4e39;
  --clay-hover: #743c2c;
  --on-clay: #faf6ee;
  --sage: #4f5d4a;
  --focus: #6b4423;
  --shadow: 0 1px 0 rgba(36, 30, 24, 0.04);

  --font-display: Georgia, "Palatino Linotype", Palatino, "Iowan Old Style",
    "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;

  --measure: 38rem;
  --page: 68rem;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 90% 45% at 50% -8%,
      rgba(166, 124, 82, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 35% at 100% 100%,
      rgba(79, 93, 74, 0.07),
      transparent 60%
    );
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--brass);
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: 0.35rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus {
  transform: none;
  color: var(--paper);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #f7f1e6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.brand img {
  width: 2rem;
  height: 2rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brass);
  text-decoration: underline;
}

/* Layout */

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 36rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.kicker-on-dark {
  color: #c4a574;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--clay);
  color: var(--on-clay);
}

.btn-primary:hover {
  background: var(--clay-hover);
  color: var(--on-clay);
}

.btn-ghost {
  background: transparent;
  color: var(--brass);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-hover);
  background: var(--paper-raised);
}

.hero-art {
  justify-self: start;
  width: min(16rem, 70vw);
  color: var(--brass);
  opacity: 0.85;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .hero-art {
    justify-self: end;
    width: min(20rem, 100%);
  }
}

/* Sections */

.section {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink);
}

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

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

blockquote {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--brass);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}

blockquote footer {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* What we do */

.work-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.work-list li {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}

.work-list h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.work-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.work-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--brass);
}

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

  .work-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .work-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .work-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Platform band */

.band {
  background: #2a241c;
  color: #f3ebdd;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
}

.band h2 {
  color: #f3ebdd;
}

.band p {
  color: #e4d8c6;
}

.band a {
  color: #e8c9a0;
}

.band a:hover {
  color: #f3ebdd;
}

.band .btn-primary {
  background: #c4a574;
  color: #241e18;
}

.band .btn-primary:hover {
  background: #d4b88a;
  color: #241e18;
}

.band-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .band-inner {
    grid-template-columns: 1.4fr auto;
    align-items: end;
    gap: 3rem;
  }
}

/* Contact */

.email {
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-word;
}

/* Footer */

.site-footer {
  padding: 1.5rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
  max-width: 42rem;
}

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

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print */

@media print {
  .site-header,
  .skip,
  .actions,
  .hero-art {
    display: none;
  }

  body,
  .band {
    background: white;
    color: black;
  }

  a {
    color: inherit;
  }

  .email::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: 0.9em;
  }
}
