/* chanelprestonweb.com · topiary theme
   Limestone paper, garden green accents, charcoal type.
   Display: Philosopher. Body: Palanquin. */

:root {
  --paper: #f6f5f0;
  --ink: #2e2b25;
  --soft: #5c574c;
  --warm: #8a8578;
  --green: #3f5d3a;
  --green-dark: #2f4729;
  --line: #ddd8ca;
  --card: #fbfaf5;
  --display: "Philosopher", Georgia, "Times New Roman", serif;
  --body: "Palanquin", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}

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

.shell { width: min(1140px, 100% - 44px); margin-inline: auto; }

/* Header */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 12px 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.main-nav a {
  color: #4a453a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
}

.main-nav a:hover {
  color: #2f4729;
  border-bottom: 2px solid #b9c4ae;
}

.main-nav a[aria-current="page"] {
  color: #2f4729;
  border-bottom: 2px solid #3f5d3a;
}

.main-nav a.btn {
  color: #f8f7f2;
  background: #3f5d3a;
  border: 1px solid #3f5d3a;
  border-radius: 999px;
  padding: 10px 20px;
  letter-spacing: 0.08em;
}

.main-nav a.btn:hover {
  color: #ffffff;
  background: #2f4729;
  border: 1px solid #2f4729;
}

/* Buttons and links */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f8f7f2;
  background: #3f5d3a;
  border: 1px solid #3f5d3a;
  border-radius: 999px;
  padding: 14px 30px;
}

.btn:hover {
  color: #ffffff;
  background: #2f4729;
  border-color: #2f4729;
}

.textlink {
  color: #3f5d3a;
  text-decoration: none;
  border-bottom: 1px solid #9fb094;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
}

.textlink:hover {
  color: #2f4729;
  border-bottom-color: #3f5d3a;
}

/* Hero */

.hero {
  padding: 36px 0 8px;
  text-align: center;
}

.topiary-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.topiary-row svg { height: 72px; width: auto; }

.topiary-row .rule {
  flex: 0 1 190px;
  height: 1px;
  background: var(--line);
  margin-bottom: 14px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5c574c;
  margin: 0 0 14px;
}

.hero h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); letter-spacing: 0.015em; }

.hero .lead {
  max-width: 58ch;
  margin: 16px auto 0;
  color: #5c574c;
}

.hero-banner { margin: 30px auto 0; max-width: 1040px; }

.hero-banner img {
  width: 100%;
  height: clamp(250px, 30vw, 400px);
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 30px;
  border: 1px solid var(--line);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: center;
}

/* Sections */

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head .num {
  font-family: var(--display);
  font-size: 1.9rem;
  color: #8a8578;
  line-height: 1;
}

.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

.section-head .hairline {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-note { color: #5c574c; margin: -10px 0 20px; }

/* Partner platforms */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.partner-card:hover { border-color: #b9c4ae; }

.partner-card img { width: 100%; height: 100%; object-fit: cover; }

/* Profile cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 16px;
}

.pcard svg { height: 40px; width: auto; margin-bottom: 14px; }

.pcard h3 { font-size: 1.12rem; margin-bottom: 10px; color: #2f4729; }

.pcard dl { margin: 0; }

.pcard .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.95rem;
}

.pcard .row:first-child { border-top: 0; }

.pcard .row.wide { flex-direction: column; gap: 2px; }

.pcard .row.wide dd { text-align: left; }

.pcard dt { color: #5c574c; }

.pcard dd { margin: 0; text-align: right; font-weight: 600; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 8px;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 24px 32px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline .when {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: #2f4729;
}

.timeline .what { display: block; font-size: 0.99rem; color: #45413a; }

/* Gallery */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.tile { position: relative; padding: 26px; }

.tile::before,
.tile::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #3f5d3a;
}

.tile::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tile::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.tile .in { position: relative; }

.tile .in::before,
.tile .in::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #3f5d3a;
  z-index: 2;
}

.tile .in::before { top: -26px; right: -26px; border-left: 0; border-bottom: 0; }
.tile .in::after { bottom: -26px; left: -26px; border-right: 0; border-top: 0; }

.tile img { width: 100%; height: auto; border-radius: 6px; }

.tile-a img,
.tile-b img { aspect-ratio: 2 / 3; object-fit: cover; }

.tile-c img,
.tile-d img { aspect-ratio: 4 / 5; object-fit: cover; }

.tile-c img { object-position: 50% 0%; }

/* Social */

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  max-width: 800px;
}

.social-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: #2e2b25;
  border-bottom: 1px solid var(--line);
  padding: 11px 2px;
  font-size: 0.98rem;
}

.social-list a:hover { color: #2f4729; border-bottom-color: #3f5d3a; }

.social-list .pf { font-weight: 600; }

.social-list .hd { color: #5c574c; }

/* Subpage head and prose */

.page-head { padding: 44px 0 4px; }

.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }

.page-head .lead { max-width: 62ch; margin-top: 14px; color: #5c574c; }

.orn-row { display: flex; gap: 20px; margin: 22px 0 0; }

.orn-row svg { height: 34px; width: auto; }

.prose { max-width: 76ch; }

.prose h2 {
  font-size: 1.42rem;
  color: #2f4729;
  margin: 34px 0 10px;
}

.prose h3 { font-size: 1.14rem; margin: 24px 0 8px; }

.prose p { color: #3c382f; }

.ledger {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 10px;
  margin: 30px 0 6px;
  max-width: 76ch;
}

.ledger h2 { font-size: 1.2rem; margin-bottom: 12px; }

.ledger .row {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 0.97rem;
}

.ledger dt { min-width: 190px; color: #5c574c; }

.ledger dd { margin: 0; }

.titles { list-style: none; margin: 0; padding: 0; max-width: 82ch; }

.titles li { border-top: 1px solid var(--line); padding: 12px 0; }

.titles .t { font-family: var(--display); font-size: 1.06rem; }

.titles .n { display: block; color: #5c574c; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }

.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.9rem;
  background: var(--card);
  color: #3c382f;
}

.qa { border-top: 1px solid var(--line); padding: 22px 0 4px; max-width: 78ch; }

.qa h2 { font-size: 1.18rem; color: #2f4729; margin-bottom: 8px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 34px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.brand-line { color: #5c574c; font-size: 0.92rem; }

.language-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.language-nav a {
  color: #4a453a;
  text-decoration: none;
  font-size: 0.92rem;
}

.language-nav a:hover { color: #2f4729; text-decoration: underline; }

.language-nav a[aria-current="page"] { color: #2f4729; font-weight: 600; }

.footer-legal {
  margin: 0;
  color: #5c574c;
  font-size: 0.92rem;
  text-align: right;
}

/* 404 */

.notfound { padding: 70px 0 90px; max-width: 60ch; }

.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }

.notfound p { color: #5c574c; }

.notfound .btn { margin-top: 12px; }

/* Responsive */

@media (max-width: 1000px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-legal { text-align: left; }
  .social-list { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .shell { width: min(1140px, 100% - 32px); }
  .card-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; gap: 18px; }
  .header-inner { justify-content: flex-start; }
  .main-nav { gap: 4px 12px; }
  .main-nav a { font-size: 0.78rem; }
  .hero { padding-top: 26px; }
  .topiary-row svg { height: 56px; }
  .topiary-row .rule { display: none; }
  .topiary-row { gap: 18px; }
  .section { padding: 34px 0; }
  .ledger .row { flex-direction: column; gap: 2px; }
  .ledger dt { min-width: 0; }
  .pcard .row { flex-direction: column; gap: 2px; }
  .pcard dd { text-align: left; }
}

@media (max-width: 430px) {
  .wordmark { font-size: 1.14rem; }
  .main-nav { gap: 4px 10px; }
  .main-nav a { font-size: 0.72rem; letter-spacing: 0.05em; }
  .main-nav a.btn { padding: 9px 16px; letter-spacing: 0.04em; }
  .kicker { letter-spacing: 0.12em; }
}
