html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
/* Layout: one quiet column on white, five pages behind one header. Colors come from the
   Dave Strange Solutions logo: compass blue for type and buttons, compass orange for the
   thin stripe and small accents. Single light theme on purpose; the logo is drawn for white. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #16233b;
  --muted: #56637a;
  --line: #dfe4ec;
  --blue: #0a4aa8;
  --orange: #fc741c;
  --orange-ink: #c2500a;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
.beltline { height: 7px; background: linear-gradient(to bottom, var(--orange) 0 4px, var(--bg) 4px 5px, var(--blue) 5px 7px); }
.wrap {
  max-width: 940px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-ink); }
.confirm { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-ink); border: 1px dashed var(--orange); border-radius: 3px; padding: 1px 6px; white-space: nowrap; vertical-align: middle; }

.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 22px 18px; border-bottom: 1px solid var(--ink); }
.logo { display: block; line-height: 0; }
.logo img { height: 84px; width: auto; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
nav a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding-bottom: 3px; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--orange); }

h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 span { display: block; color: var(--blue); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.serif { font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
.lede { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 31em; }
.btn { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; background: var(--blue); color: var(--bg); padding: 14px 26px; }
.btn:hover { background: var(--ink); }
.more { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.more:hover { color: var(--orange-ink); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.band { padding-block: 60px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pains div { min-width: 0; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--orange); padding-top: 16px; }
.pains p { color: var(--muted); }
.answer { max-width: 34em; display: grid; gap: 18px; justify-items: start; }

/* Inner pages */
.page-head { padding-block: 64px 40px; display: grid; gap: 18px; }
.about-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 56px; }
.prose { display: grid; gap: 20px; max-width: 34em; }
.beliefs-head { padding-bottom: 14px; }
.beliefs { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--ink); max-width: 40em; margin-bottom: 80px; }
.beliefs li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }

.service { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: 12px 40px; padding-block: 36px; border-top: 1px solid var(--line); }
.service:first-of-type { border-top-color: var(--ink); }
.service-name { display: grid; gap: 6px; align-content: start; }
.service-body { display: grid; gap: 14px; max-width: 32em; }
.service-body .problem { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.service-body p { color: var(--muted); }
.after { padding-block: 40px 80px; border-top: 1px solid var(--line); }

.channels { display: grid; grid-template-columns: minmax(0, 32em); gap: 40px; padding-block: 36px 56px; border-top: 1px solid var(--ink); }
.channels div { min-width: 0; display: grid; gap: 14px; align-content: start; justify-items: start; }
.channels p { color: var(--muted); }
@media (max-width: 720px) { .channels { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.posts { list-style: none; padding: 0; border-top: 1px solid var(--ink); margin-bottom: 80px; }
.posts li { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.posts .title { font-size: 1.3rem; font-weight: 400; line-height: 1.3; }

.contact { display: grid; gap: 16px; padding-bottom: 96px; }
.address { font-size: clamp(1.05rem, 3.6vw, 1.5rem); font-weight: 300; user-select: all; overflow-wrap: anywhere; }
.contact .note { color: var(--muted); max-width: 32em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn.alt { background: var(--bg); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.alt:hover { background: var(--blue); color: var(--bg); }

.foot { padding-block: 26px 34px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

@media (max-width: 720px) {
  .logo img { height: 66px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 56px; }
  .hero .portrait { width: 170px; order: -1; }
  .pains { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band { padding-block: 46px; }
  .page-head { padding-block: 44px 30px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-grid .portrait { width: 170px; }
  .service { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
  .posts li { grid-template-columns: minmax(0, 1fr); }
}
