/* Auberrie and Co. — shared styles */

:root {
  --ink: #241c2b;
  --plum: #5b2545;
  --plum-deep: #3a1830;
  --amber: #a55a17;
  --indigo: #2e3a6e;
  --paper: #f5f2f6;
  --paper-2: #ebe5ee;
  --muted: #6f6274;
  --rule: #d8cfdd;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: min(68rem, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { width: min(38rem, 100% - 2.5rem); margin-inline: auto; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }

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

.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* ---------- header ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.75rem 0 0;
}

.wordmark {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}

.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; }

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

.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero h1 { margin-bottom: 0.5em; }

/* ---------- ventures (shade card) ---------- */

.ventures { border-top: 1px solid var(--rule); }

.venture {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.75rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.swatch {
  height: 4.5rem;
  border-radius: 2px;
  transform-origin: left center;
}

.swatch-salon { background: var(--plum); }
.swatch-food  { background: var(--amber); }
.swatch-game  { background: var(--indigo); }

.venture h3 { margin-bottom: 0.25rem; }
.venture p { margin-bottom: 0.5rem; }

.shade-code {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}

@media (prefers-reduced-motion: no-preference) {
  .swatch { animation: paint 0.5s cubic-bezier(.2,.7,.3,1) backwards; }
  .venture:nth-child(1) .swatch { animation-delay: 0.15s; }
  .venture:nth-child(2) .swatch { animation-delay: 0.28s; }
  .venture:nth-child(3) .swatch { animation-delay: 0.41s; }
  @keyframes paint {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

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

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

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

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}

.detail { margin: 0 0 1.5rem; }
.detail dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
.detail dd { margin: 0; }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem 2.5rem; }
.services h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.services ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.97rem; }
.services li { margin-bottom: 0.2rem; }

/* ---------- notice ---------- */

.notice {
  background: var(--plum);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 3px;
}
.notice p { margin: 0; max-width: 55ch; }
.notice a { color: #fff; }

/* ---------- blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.post-list li:first-child { border-top: 1px solid var(--rule); }
.post-list h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }

.post-date { font-size: 0.85rem; color: var(--muted); }

.post-body { font-size: 1.1rem; line-height: 1.7; }
.post-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.post-body ul { max-width: 62ch; }
.post-body li { margin-bottom: 0.4rem; }

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

.foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot p { max-width: 55ch; }
.foot a { color: var(--muted); }

@media (max-width: 30rem) {
  .venture { grid-template-columns: 1fr; gap: 1rem; }
  .swatch { height: 2.25rem; }
}
