/* Uncommon Sense brand tokens. Logo Blue is sampled from the logo file. */
:root {
  --ink: #1A1A1A;
  --text: #404040;
  --muted: #5E5E5E;
  --paper: #F0F0F0;
  --paper-2: #E8E8E8;
  --white: #FFFFFF;
  --blue: #ADD8E6;       /* fills and highlights only, never text on white */
  --blue-deep: #2B6A80;  /* links and small accents, 5.9:1 on white */
  --on-dark: #E8E8E8;
  --on-dark-muted: #B8B8B8;
  --font-display: 'Josefin Sans', sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.white { background: var(--white); }
.grey { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2, .dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.h2 { font-weight: 300; font-size: clamp(36px, 5vw, 48px); line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-align: center;
}
.contact-actions .btn, .services-cta .btn { white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333; color: var(--white); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: #C4E3ED; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); padding: 16px 28px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #E0E0E0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.nav img { height: 56px; width: auto; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a:not(.btn) {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
  text-decoration: none; padding: 12px 0;
}
.nav .btn { font-size: 14px; padding: 14px 22px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding: 96px 24px 112px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { color: var(--blue-deep); margin: 0; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.01em; }
.hero h1 strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--blue) 62%); }
.lead { font-size: 21px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.photo { position: relative; width: 380px; max-width: 90%; }
.photo::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: 50%; background: var(--blue); }
.photo-clip { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--white); }
/* ponytail: scale crops the dark corners baked into the source photo; swap for an uncropped photo when there is one */
.photo-clip img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius-card); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-weight: 600; font-size: 28px; }

/* Services */
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.services-head img { height: 88px; width: auto; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: #3A3A3A; border: 1px solid #3A3A3A; border-radius: var(--radius-card); overflow: hidden; }
.service { background: var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.service .num { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.24em; color: var(--blue); }
.service h3 { font-weight: 600; font-size: 26px; }
.services-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 28px 32px; border-radius: var(--radius-card); background: #262626; }
.services-cta p { color: var(--white); font-size: 20px; }

/* Approach */
.approach { display: flex; flex-wrap: wrap; gap: 64px; }
.approach-intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.principles { flex: 999 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.principles li { display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid #D0D0D0; counter-increment: p; }
.principles li:last-child { border-bottom: 1px solid #D0D0D0; }
.principles li::before { content: counter(p); font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--blue-deep); min-width: 40px; }
.principles h3 { font-weight: 600; font-size: 24px; margin-bottom: 6px; }

/* Quotes */
.quote { margin: 0; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink); }
.quote figcaption strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.quote figcaption span { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.faq details { border-top: 1px solid #D0D0D0; padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid #D0D0D0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); list-style-position: outside; }
.faq details p { margin-top: 12px; max-width: 70ch; }

/* Writing */
.writing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.writing-head a { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.post { text-decoration: none; color: var(--text); background: var(--white); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.post:hover { background: var(--paper-2); color: var(--text); }
.post .tag { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.post .title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--ink); }

/* Contact */
.contact { background: var(--blue); color: var(--ink); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.contact-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact h2 { font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.contact-actions { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-actions a:not(.btn) { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.site-footer img { height: 52px; width: auto; }
.site-footer a { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
