/* Law Office of Daniel Butt — public site */

:root {
  --ink: #1c1914;
  --ink-soft: #3d3830;
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --navy: #1e3350;
  --navy-dark: #152438;
  --link: #1a4a6e;
  --link-hover: #0d3149;
  --rule: #c4b8a4;
  --focus: #0d3149;
  --error: #8a1c1c;
  --ok: #1d4a32;
  --max: 68rem;
  --text: 40rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header a:focus-visible,
.site-header summary:focus-visible {
  outline-color: #f6f1e8;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--navy-dark);
  color: #f6f1e8;
}

.site-header a {
  color: #f6f1e8;
  text-decoration: none;
}

.site-header a:hover {
  text-decoration: underline;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.wordmark strong {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 560;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.wordmark span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4c9b6;
}

.nav-wrap {
  display: none;
  margin: 0;
}

.nav-wrap > summary {
  font: inherit;
  color: #f6f1e8;
  background: transparent;
  border: 1px solid #8a9bb0;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  list-style: none;
}

.nav-wrap > summary::-webkit-details-marker {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero,
.page-hero {
  background: var(--navy);
  color: #f6f1e8;
}

.hero-inner,
.page-hero-inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.hero-inner {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.hero h1,
.page-hero h1 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.lede {
  font-size: 1.2rem;
  max-width: 46rem;
  margin: 0 0 1.5rem;
  color: #efe8db;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #f6f1e8;
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: #fff;
  color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: #f6f1e8;
  border-color: #c4b8a4;
}

.btn-secondary:hover {
  background: rgba(246, 241, 232, 0.08);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #f6f1e8;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
}

.aside-box .btn,
.pay-block .btn {
  margin-top: 0.85rem;
}

.pay-block p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section h2,
.prose h2 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 560;
  font-size: 1.85rem;
  margin: 0 0 0.85rem;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose {
  max-width: var(--text);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p:first-of-type {
  margin-top: 0;
}

.prose .name-block {
  margin: 0 0 1.25rem;
}

.prose .name-block p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}

.why-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 46rem;
}

.why-list li {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}

.supporting {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.area[id] {
  scroll-margin-top: 1rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.area-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.area-list li {
  border-bottom: 1px solid var(--rule);
}

.area-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.area-list a:hover span:first-child {
  text-decoration: underline;
}

.area-list a span:last-child {
  color: var(--ink-soft);
  font-weight: 400;
}

.aside-box {
  background: var(--paper-2);
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--navy);
}

.about-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .about-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  }
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.portrait figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.aside-box .portrait {
  margin-bottom: 1rem;
}

.aside-box .contact-lines {
  margin-top: 0.35rem;
}

.about-layout .aside-box {
  margin-top: 1.25rem;
}

#west-contra-costa {
  scroll-margin-top: 1rem;
}

.aside-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.aside-box p {
  margin: 0 0 0.75rem;
}

.aside-box p:last-child {
  margin-bottom: 0;
}

.contact-lines {
  margin: 0;
}

.contact-lines dt {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.85rem;
}

.contact-lines dt:first-child {
  margin-top: 0;
}

.contact-lines dd {
  margin: 0.15rem 0 0;
}

.area {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.area:first-of-type {
  border-top: 1px solid var(--rule);
}

.area h2 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.area p {
  margin: 0;
  max-width: var(--text);
  color: var(--ink-soft);
}

form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
}

.hint {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8a8174;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.notice-ok {
  background: #e4f0e8;
  color: var(--ok);
  border: 1px solid #9cbfab;
}

.notice-err {
  background: #f7e6e6;
  color: var(--error);
  border: 1px solid #d4a0a0;
}

.disclaimer,
.site-footer {
  font-size: 0.98rem;
}

.disclaimer {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.disclaimer p {
  max-width: 48rem;
  margin: 0;
}

.site-footer {
  background: var(--navy-dark);
  color: #d4c9b6;
}

.site-footer a {
  color: #f6f1e8;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.25rem;
}

.site-footer p {
  margin: 0 0 0.65rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 47.99rem) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-desktop {
    display: none;
  }

  .nav-wrap {
    display: block;
  }

  .nav-wrap[open] {
    flex: 1 0 100%;
  }

  .nav-wrap .site-nav {
    padding: 0.75rem 0 0.25rem;
  }

  .nav-wrap .site-nav ul {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media print {
  .site-header,
  .site-nav,
  .actions,
  .site-footer,
  .skip,
  .menu-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
