/* Dunn, MacDonald & Reynolds — shared styles */

:root {
  --navy: #16233A;
  --navy-deep: #0F1829;
  --brass: #A8864A;
  --brass-light: #C9AE78;
  --paper: #F8F7F3;
  --ink: #22252B;
  --muted: #5C6270;
  --rule: #D6D1C4;
  --display: 'Libre Caslon Display', 'Baskerville', 'Times New Roman', serif;
  --text: 'Libre Caslon Text', 'Baskerville', Georgia, 'Times New Roman', serif;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Utility bar */
.utility { background: var(--navy-deep); color: #C8CCD6; font-size: .8rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.utility a { color: var(--brass-light); text-decoration: none; }
.utility a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--navy); line-height: 1.2; }
.brand-name { display: block; font-family: var(--display); font-size: 1.65rem; font-variant: small-caps; letter-spacing: .04em; }
.brand-sub { display: block; font-style: italic; color: var(--muted); font-size: .9rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding-bottom: .25rem; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--brass); }

/* Hero nameplate */
.hero { background: var(--navy); color: #EDE9DF; padding-block: 4.5rem; }
.plate {
  max-width: 46rem; margin-inline: auto; text-align: center;
  border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 6px;
  padding: 3.5rem 2rem 3rem;
}
.plate h1 {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem); line-height: 1.1; font-variant: small-caps; letter-spacing: .03em; color: #F4F1E8;
}
.plate .pc { font-size: .55em; }
.plate .rule { width: 7rem; height: 1px; background: var(--brass); margin: 1.6rem auto; border: 0; }
.plate .practice { font-style: italic; font-size: 1.2rem; margin: 0; color: var(--brass-light); }
.plate .place { margin: .5rem 0 0; font-size: .95rem; letter-spacing: .05em; color: #C8CCD6; }
.plate .motto { margin: 2rem 0 0; font-family: var(--display); font-size: 1.35rem; }

/* Page title band (inner pages) */
.page-title { background: var(--navy); color: #F4F1E8; padding-block: 3rem; border-bottom: 3px double var(--brass); }
.page-title h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; line-height: 1.15; }
.page-title p { margin: .5rem 0 0; font-style: italic; color: var(--brass-light); max-width: var(--measure); }

/* Sections */
section.block { padding-block: 4.5rem; }
section.block + section.block { border-top: 1px solid var(--rule); }
h2 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.2; margin: 0 0 1.25rem; }
h3 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 1.35rem; line-height: 1.3; margin: 0 0 .5rem; }
p { max-width: var(--measure); margin: 0 0 1.1rem; }

.welcome { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
.facts { border-left: 1px solid var(--brass); padding-left: 2rem; margin: 0; }
.facts dt { font-style: italic; color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0 0 1.4rem; font-family: var(--display); font-size: 1.5rem; color: var(--navy); line-height: 1.25; }

/* Photos with graceful placeholders */
.photo { position: relative; background: #E6E2D8; border: 1px solid var(--rule); overflow: hidden; }
.photo::before {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  padding: 1rem; text-align: center; font-style: italic; color: var(--muted); font-size: .85rem;
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.photo.wide { aspect-ratio: 1440 / 300; }
.photo.wide img { object-position: 65% center; }
.photo.portrait { aspect-ratio: 4 / 5; }

/* Practice lists */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 3rem; margin-top: 2rem; }
.practice-grid ul { list-style: none; margin: 0; padding: 0; }
.practice-grid li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.practice-grid h3 { padding-bottom: .5rem; border-bottom: 2px solid var(--navy); margin-bottom: .25rem; }

/* Testimonial */
.testimonial { background: #EFECE4; }
.testimonial blockquote { margin: 0 auto; max-width: 44rem; text-align: center; }
.testimonial blockquote p { font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.45; color: var(--navy); max-width: none; }
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial footer { font-style: italic; color: var(--muted); }

/* Attorneys */
.attorney-row .photo { max-width: 11rem; }
.attorney-row { display: grid; grid-template-columns: repeat(2, minmax(0, 13rem)); gap: 2.5rem; margin-top: 2rem; }
.attorney-row a { text-decoration: none; color: inherit; }
.attorney-row .photo { margin-bottom: 1rem; }
.attorney-row .title { font-style: italic; color: var(--muted); margin: 0; }

.bio { display: grid; grid-template-columns: 11rem 1fr; gap: 3rem; padding-block: 3.5rem; border-bottom: 1px solid var(--rule); }
.bio:last-child { border-bottom: 0; }
.bio h2 { margin-bottom: .2rem; }
.bio .title { font-style: italic; color: var(--brass); font-size: 1.1rem; margin-bottom: 1.5rem; }
.bio dl { margin: 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: .9rem 1.5rem; max-width: 46rem; }
.bio dt { font-style: italic; color: var(--muted); }
.bio dd { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
address { font-style: normal; font-size: 1.1rem; line-height: 1.8; }
.phone-big { font-family: var(--display); font-size: 2rem; color: var(--navy); text-decoration: none; display: inline-block; margin: .25rem 0 1rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 24rem; }
.hours td { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.hours td + td { text-align: right; }

.button {
  display: inline-block; background: var(--navy); color: #F4F1E8; text-decoration: none;
  padding: .8rem 1.6rem; border: 1px solid var(--navy); font-size: .95rem;
}
.button:hover { background: transparent; color: var(--navy); }
.more { margin-top: 2.5rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9BEC9; font-size: .9rem; padding-block: 3.5rem 2rem; border-top: 3px double var(--brass); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer h2 { font-size: 1.15rem; color: #F4F1E8; margin-bottom: .75rem; }
.site-footer .brand-name { color: #F4F1E8; font-size: 1.4rem; }
.site-footer a { color: var(--brass-light); }
.site-footer p { margin-bottom: .4rem; }
.disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2A3650; font-size: .8rem; line-height: 1.6; }
.disclaimer p { max-width: 60rem; }

@media (max-width: 800px) {
  .welcome, .contact-grid, .bio { grid-template-columns: 1fr; gap: 2rem; }
  .bio .photo { max-width: 11rem; }
  .attorney-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 2rem; }
  .bio dl { grid-template-columns: 1fr; gap: .1rem; }
  .bio dd { margin-bottom: .8rem; }
  .nav ul { gap: 1.25rem; }
  .plate { padding: 2.5rem 1.25rem 2rem; }
  .utility span:first-child { display: none; }
  .photo.wide { aspect-ratio: 16 / 9; }
}
