/* ==========================================================================
   Douglass Boyle Capital — site styles
   Recreated from the live Squarespace site.
   Brand tokens: background #FFC700, ink #000, wordmark #17150F, font Poppins.
   ========================================================================== */

:root {
  --bg: #ffc700;
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.62);
  --wordmark: #17150f;
  --maxw: 1120px;
  --pad: clamp(22px, 6vw, 84px);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header / nav ---------- */
.site-header {
  padding-top: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(20px, 3vw, 30px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  text-decoration: none;
}

.brand__mark {
  height: clamp(74px, 8vw, 104px);
  width: auto;
}

.brand__word {
  font-weight: 700;
  color: var(--wordmark);
  letter-spacing: 0.03em;
  line-height: 1.06;
  font-size: clamp(15px, 1.6vw, 21px);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding-top: 10px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.main-nav a:hover { border-bottom-color: rgba(0, 0, 0, 0.35); }
.main-nav a.is-active { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 9vw, 120px);
  padding-bottom: clamp(60px, 11vw, 150px);
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.7rem, 8.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

/* ---------- Generic section ---------- */
.section { padding-top: clamp(34px, 5vw, 58px); padding-bottom: clamp(34px, 5vw, 58px); }

.eyebrow {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1.4em;
  letter-spacing: 0.01em;
}

.lead, .prose p {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.72;
  max-width: 65ch;
  margin: 0 0 1.15em;
}

.prose strong { font-weight: 700; }

/* ---------- Headings ---------- */
h2.section-title {
  margin: 0 0 0.9em;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2.section-title .muted { color: var(--ink-soft); font-weight: 700; }

h3.block-title {
  margin: 1.8em 0 0.5em;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* ---------- Lists ---------- */
.dbc-list { margin: 0.4em 0 0.4em; padding-left: 1.25em; }
.dbc-list > li {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.6;
  margin: 0.5em 0;
  list-style: disc;
}
.dbc-list ul { margin: 0.45em 0; padding-left: 1.35em; }
.dbc-list ul > li { list-style: circle; margin: 0.4em 0; }
.dbc-list strong { font-weight: 700; }

/* Process steps */
.process .step {
  font-weight: 700;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  margin: 1.5em 0 0.35em;
  letter-spacing: -0.005em;
}
.process .step:first-of-type { margin-top: 0.4em; }
.process ul.sub { margin: 0.2em 0 0; padding-left: 1.25em; }
.process ul.sub > li { list-style: disc; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.55; margin: 0.35em 0; }

/* ---------- Founder ---------- */
.founder { text-align: left; }
.founder__photo-wrap { display: flex; justify-content: center; margin: clamp(20px, 4vw, 46px) 0 clamp(26px, 4vw, 46px); }
.founder__photo {
  width: clamp(240px, 34vw, 340px);
  aspect-ratio: 300 / 340;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
}
.founder .eyebrow.name { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

/* ---------- Contact page ---------- */
.contact-intro { max-width: 60ch; }
.contact-meta { margin: 1.6em 0 0; }
.contact-meta p { margin: 0.2em 0; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.contact-meta a { font-weight: 600; }

.contact-form {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.contact-form .row { display: grid; gap: 18px; }
@media (min-width: 620px) { .contact-form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid rgba(0, 0, 0, 0.85);
  border-radius: 2px;
  background: #fffdf6;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.btn-submit {
  justify-self: start;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-submit:hover { opacity: 0.86; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.social a:hover { transform: translateY(-2px); opacity: 0.88; }
.social svg { width: 20px; height: 20px; fill: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { flex-direction: row; align-items: flex-start; }
  .brand__word { font-size: 14px; }
  .main-nav { padding-top: 6px; gap: 16px; }
  .hero h1 { max-width: 100%; }
}
