/* Cleaning Out My Closet
   One stylesheet. Warm, plain, unhurried. Nothing here is decorative for its
   own sake: the people who land on this page are usually in the middle of
   something hard, and the page should feel like a kind room, not a shopfront. */

:root {
  --paper: #fbf6ef;
  --paper-warm: #f5ece0;
  --paper-deep: #efe3d3;
  --card: #fffdfa;

  --ink: #2f2620;
  --ink-soft: #60524a;
  --ink-faint: #8a7a70;

  --clay: #b4613d;
  --clay-deep: #8d4826;
  --clay-wash: #f6e7dd;

  --sage: #6f8168;
  --sage-wash: #e8ede4;

  --line: #e6d9c7;
  --line-soft: #f0e6d8;

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

  --shell: 1120px;
  --gutter: 24px;
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow {
  max-width: 720px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font: 600 20px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.mark em {
  font-style: italic;
  color: var(--clay);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15.5px;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}

.nav__links a:hover {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

.nav__links a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 16px/1 var(--sans);
  padding: 17px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(141, 72, 38, 0.8);
}

.btn--primary:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.underlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--clay-wash);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}

.underlink:hover {
  border-bottom-color: var(--clay);
}

.underlink::after {
  content: '\2192';
  transition: transform 0.18s ease;
}

.underlink:hover::after {
  transform: translateX(3px);
}

/* ---------- type ---------- */

.kicker {
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
}

p {
  margin: 0 0 20px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(168deg, var(--paper-warm) 0%, var(--paper) 58%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -190px;
  background: radial-gradient(circle at 35% 35%, rgba(180, 97, 61, 0.16), transparent 68%);
}

.hero::after {
  width: 440px;
  height: 440px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle at 60% 40%, rgba(111, 129, 104, 0.16), transparent 68%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero p {
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__reassure {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--ink-faint);
}

/* the card beside the hero: a plain note rather than a form, so the first
   thing a visitor sees is a human sentence and not a field to fill in */
.hero__note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
  box-shadow: 0 30px 60px -44px rgba(47, 38, 32, 0.5);
}

.hero__note h2 {
  font-size: 25px;
  margin-bottom: 16px;
}

.hero__note p {
  color: var(--ink-soft);
  font-size: 16.5px;
}

.hero__note p:last-of-type {
  margin-bottom: 0;
}

.notecheck {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 13px;
}

.notecheck li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.notecheck li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage-wash);
  box-shadow: inset 0 0 0 1.5px var(--sage);
}

/* ---------- sections ---------- */

.band {
  padding: clamp(64px, 8vw, 104px) 0;
}

.band--warm {
  background: var(--paper-warm);
}

.band--deep {
  background: var(--paper-deep);
}

.band__head {
  max-width: 680px;
  margin-bottom: 48px;
}

.band__head p {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 0;
}

.card__glyph {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--clay-wash);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--clay-deep);
}

.card__glyph svg {
  width: 22px;
  height: 22px;
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -19px;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font: 600 15px/34px var(--sans);
  text-align: center;
}

.step h3 {
  margin: 14px 0 10px;
}

.step p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 0;
}

/* ---------- prose ---------- */

.prose {
  max-width: 660px;
}

.prose p {
  color: var(--ink-soft);
  font-size: 18px;
}

.prose h2 {
  margin: 52px 0 18px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 34px 0 12px;
  color: var(--ink);
}

.prose > p:first-of-type {
  font-size: 20px;
  color: var(--ink);
}

.pull {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.32;
  color: var(--ink);
  border-left: 3px solid var(--clay);
  padding: 4px 0 4px 26px;
  margin: 44px 0;
}

/* ---------- honest note ---------- */

.plainly {
  background: var(--sage-wash);
  border: 1px solid #d7dfd1;
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
}

.plainly h3 {
  margin-bottom: 14px;
}

.plainly p {
  color: #4b5646;
  font-size: 16px;
}

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

/* ---------- looking for ---------- */

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.taglist li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.reach {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: 0 30px 60px -48px rgba(47, 38, 32, 0.5);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 7px;
  color: var(--ink);
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 3px;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
  width: 100%;
  font: 400 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--clay);
  background: #fff;
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form__note {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ink-faint);
}

.form__status {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--clay-deep);
  font-weight: 600;
}

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

.reach__direct {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.reach__direct a {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--clay-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--clay-wash);
}

.reach__direct a:hover {
  border-bottom-color: var(--clay);
}

/* ---------- closing call ---------- */

.closing {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}

.closing h2 {
  color: var(--paper);
  max-width: 16em;
  margin: 0 auto 20px;
}

.closing p {
  color: #cbbdb1;
  max-width: 44em;
  margin: 0 auto 32px;
  font-size: 18px;
}

.closing .btn--ghost {
  border-color: rgba(251, 246, 239, 0.32);
  color: var(--paper);
}

.closing .btn--ghost:hover {
  border-color: var(--paper);
  color: var(--paper);
}

/* ---------- page head ---------- */

.pagehead {
  padding: clamp(56px, 7vw, 92px) 0 clamp(36px, 4vw, 52px);
  background: linear-gradient(170deg, var(--paper-warm), var(--paper));
}

.pagehead h1 {
  max-width: 14em;
  margin-bottom: 22px;
}

.pagehead .lede {
  max-width: 34em;
  margin: 0;
}

/* ---------- footer ---------- */

.footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  font-size: 15.5px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

/* the only link back to the parent business, kept quiet on purpose */
.footer__blurb a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.footer__blurb a:hover {
  color: var(--clay-deep);
  text-decoration-color: var(--clay);
}

.footer__blurb p {
  color: var(--ink-soft);
  max-width: 32em;
  margin: 14px 0 0;
  font-size: 15.5px;
}

.footer__label {
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--clay-deep);
}

.footer__base {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 14.5px;
}

.footer__base a {
  color: var(--ink-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__inner,
  .reach {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16.5px;
  }

  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav__links {
    gap: 18px;
    font-size: 15px;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .steps {
    gap: 34px;
  }
}
