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

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

body {
  margin: 0;
}

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

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

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  --bg: #f7f5f0;
  --ink: #16150f;
  --ink-soft: #55534a;
  --ink-faint: #8a877c;
  --rule: #ddd9cd;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --edge: clamp(1.5rem, 5vw, 4rem);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem var(--edge);
}

.nav__mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__link,
.nav__contact {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after,
.nav__contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}

.nav__link:hover,
.nav__contact:hover {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__contact:hover::after {
  right: 0;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  padding: clamp(4rem, 14vh, 9rem) var(--edge) clamp(3rem, 10vh, 6rem);
  max-width: 1180px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.75rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.1vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
}

.writing__lede {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  max-width: 62ch;
  margin: 1.75rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Statement                                                           */
/* ------------------------------------------------------------------ */
.statement {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--edge) clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--rule);
}

.statement__text {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 62ch;
}

.statement__text:last-child {
  margin-bottom: 0;
}

.statement__text--lead {
  color: var(--ink);
}

.statement__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  max-width: 62ch;
}

.statement__list li {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.statement__list li:last-child {
  margin-bottom: 0;
}

.statement__list strong {
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Process                                                             */
/* ------------------------------------------------------------------ */
.process {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge) clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--rule);
}

.process__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.process__row:last-child {
  border-bottom: none;
}

.process__index {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-faint);
}

.process__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.process__body p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.process__list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  max-width: 52ch;
}

.process__list li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.process__list li:last-child {
  margin-bottom: 0;
}

.process__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/* Writing                                                             */
/* ------------------------------------------------------------------ */
.writing {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--edge) clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6rem;
}

.writing__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing__item {
  border-bottom: 1px solid var(--rule);
}

.writing__link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.75rem 0 0.5rem;
}

.writing__link-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  transition: opacity 0.25s ease;
}

.writing__meta {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.writing__arrow {
  flex: 0 0 auto;
  font-size: 1.1rem;
  color: var(--ink-faint);
  transform: translate(0, 0);
  transition: transform 0.25s ease, color 0.25s ease;
}

.writing__byline {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}

.writing__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

.writing__link:hover .writing__link-title {
  opacity: 0.55;
}

.writing__link:hover .writing__arrow {
  transform: translate(3px, -3px);
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* CTA                                                                 */
/* ------------------------------------------------------------------ */
.cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--edge) clamp(5rem, 14vh, 8rem);
  border-top: 1px solid var(--rule);
  text-align: left;
}

.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 1.75rem;
  max-width: 24ch;
}

.cta__link {
  display: inline-block;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}

.cta__link:hover {
  opacity: 0.55;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--edge) 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer a {
  color: var(--ink-faint);
  transition: color 0.25s ease;
}

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

/* ------------------------------------------------------------------ */
/* Reveal-on-scroll                                                    */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 560px) {
  .nav {
    padding: 1.75rem var(--edge);
  }

  .process__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nav__links {
    gap: 1.25rem;
  }

  .writing__link {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .writing__link-title {
    flex: 1 1 100%;
  }

  .writing__meta {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
