/* Teague Law, PLLC
   Colors, type, and spacing live in the variables below.
   Libre Baskerville and Source Sans 3 are self-hosted in /fonts (SIL Open Font License). */

:root {
  --navy: #0b1f33;
  --ink: #1c2430;
  --muted: #3e4a57;
  --gold: #8d7340;
  --gold-text: #5c4316;
  --cream: #f4f0e6;
  --band: #f7f5f1;
  --paper: #ffffff;
  --line: #d9d3c7;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.55rem 0.9rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a:link,
a:visited {
  color: var(--navy);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

main ul,
main ol {
  margin: 0.25rem 0 1rem;
  padding-left: 1.2rem;
}

main li {
  margin: 0.35rem 0;
  padding-left: 0.2rem;
}

main li::marker {
  color: var(--gold-text);
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 2px solid var(--gold);
  width: 3rem;
  margin: 1.15rem 0 0;
}

.wrap {
  width: min(72rem, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
}

.measure {
  max-width: 40rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
}

.utility {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.95rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.15rem 1.25rem;
  min-height: 2.75rem;
}

.utility p {
  margin: 0;
}

.utility-place {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.utility a:link,
.utility a:visited {
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  padding-block: 0.55rem;
}

.utility a:hover,
.utility a:focus-visible {
  text-decoration: underline;
}

.utility a:focus-visible {
  outline-color: var(--cream);
}

.header-bar {
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.7rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:link,
.wordmark:visited {
  color: var(--navy);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.wordmark .pllc {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.68em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary:hover {
  background: var(--band);
}

.site-nav .label-open {
  display: none;
}

.site-nav[open] .label-closed {
  display: none;
}

.site-nav[open] .label-open {
  display: inline;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav li::marker {
  content: none;
}

@media (max-width: 47.99em) {
  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0.35rem;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    display: contents;
  }

  .site-nav summary {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav::details-content {
    display: none;
  }

  .site-nav[open]::details-content {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-nav[open] nav {
    position: static;
    background: var(--paper);
    border: 1px solid var(--line);
    margin-top: 0.35rem;
  }

  .site-nav[open] a {
    display: block;
    padding: 0.8rem 1rem;
    min-height: 44px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }

  .site-nav[open] li:last-child a {
    border-bottom: 0;
  }

  .site-nav[open] a:hover,
  .site-nav[open] a:focus-visible {
    background: var(--band);
    text-decoration: underline;
  }

  .site-nav[open] a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
    text-decoration: underline;
  }
}

@media (min-width: 48em) {
  .wordmark {
    font-size: 1.55rem;
  }

  .site-nav {
    display: block;
  }

  .site-nav:not([open])::details-content,
  .site-nav[open]::details-content {
    content-visibility: visible;
    display: block;
    height: auto;
    width: auto;
  }

  .site-nav summary {
    display: none;
  }

  .site-nav:not([open]) > nav,
  .site-nav[open] > nav {
    display: block;
  }

  .site-nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .site-nav a {
    display: inline-block;
    padding-block: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
  }

  .site-nav a[aria-current="page"] {
    text-decoration-color: var(--gold);
  }
}

/* Home and interior rhythm */

.mast {
  padding: 2.75rem 0 0.5rem;
}

.tagline {
  max-width: 46rem;
  margin: 0.85rem 0 0;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}

.section {
  padding: 2.25rem 0 0.25rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
}

.summary-grid {
  display: grid;
  gap: 1.35rem 2.5rem;
  margin: 1.35rem 0 1.75rem;
}

.summary-grid article {
  border-top: 2px solid var(--gold);
  padding-top: 0.8rem;
}

.summary-grid p {
  margin: 0;
}

.emphasis-list {
  margin-top: 0.4rem;
}

.more {
  margin-top: 1.35rem;
}

.text-button,
.text-button:link,
.text-button:visited {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--navy);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--paper);
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  margin-top: 2.75rem;
  padding: 2.4rem 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 0.85rem 0 1.15rem;
  font-size: 1.25rem;
}

.contact-actions a {
  padding-block: 0.2rem;
}

.page-heading {
  padding: 2.4rem 0 0.4rem;
}

.page-heading h1 {
  margin-bottom: 0.85rem;
}

.role {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 2rem;
  padding: 2.4rem 0 1rem;
}

.portrait {
  width: 5.5rem;
  height: 5.5rem;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  margin: 0 0 1.1rem;
}

.portrait .monogram {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1;
}

.portrait:has(img) {
  width: min(100%, 16rem);
  height: auto;
  aspect-ratio: 4 / 5;
  background: transparent;
  display: block;
}

.portrait:has(img) .monogram {
  display: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.credentials {
  background: var(--band);
  border-top: 3px solid var(--gold);
  padding: 1.2rem 1.2rem 1.35rem;
}

.credentials h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.credentials h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 1rem 0 0.3rem;
}

.credentials ul {
  margin: 0;
}

.credentials .license-note {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  color: var(--ink);
}

/* Practice areas */

.practice-layout {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.page-toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.page-toc summary::-webkit-details-marker {
  display: none;
}

.page-toc summary:hover {
  text-decoration: underline;
}

.page-toc ol {
  margin-top: 0.15rem;
}

.page-toc a {
  text-decoration-thickness: 1px;
}

.practice-body > section {
  scroll-margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  margin-top: 1.35rem;
}

.practice-body > section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.practice-body section section {
  scroll-margin-top: 1rem;
  margin-top: 1.5rem;
}

/* Contact */

.contact-layout {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1rem;
}

.facts {
  margin: 0;
}

.facts > div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
}

.notice {
  background: var(--band);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.1rem;
}

.notice p + p {
  margin-top: 0.75rem;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 2.4rem 0 2rem;
  margin-top: 2.5rem;
}

.band + .site-footer {
  margin-top: 0;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.7rem;
}

.site-footer address {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer a:link,
.site-footer a:visited {
  color: var(--cream);
}

.site-footer a:focus-visible {
  outline-color: var(--cream);
}

.fine-print {
  max-width: 40rem;
  margin-top: 1.15rem;
  color: #d9d0c2;
  font-size: 0.98rem;
}

.copyright {
  margin-top: 0.85rem;
  color: #d9d0c2;
  font-size: 0.98rem;
}

@media (min-width: 48em) {
  .mast {
    padding-top: 4.25rem;
  }

  .section {
    padding-top: 2.75rem;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .emphasis-list {
    columns: 2;
    column-gap: 2.5rem;
    max-width: none;
  }

  .emphasis-list li {
    break-inside: avoid;
  }

  .page-heading {
    padding-top: 3.4rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 40rem) 17.5rem;
    column-gap: 3rem;
    align-items: start;
    justify-content: start;
    padding-top: 3.4rem;
  }

  .practice-layout {
    grid-template-columns: 16.5rem minmax(0, 40rem);
    column-gap: 3rem;
    align-items: start;
    justify-content: start;
  }

  .page-toc {
    position: sticky;
    top: 1.25rem;
  }

  .page-toc summary {
    display: none;
  }

  .page-toc:not([open])::details-content,
  .page-toc[open]::details-content {
    content-visibility: visible;
    height: auto;
    display: block;
  }

  .page-toc:not([open]) > nav,
  .page-toc[open] > nav {
    display: block;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 26rem) minmax(0, 24rem);
    column-gap: 3rem;
    align-items: start;
    justify-content: start;
  }

  .band {
    padding: 2.8rem 0;
  }
}

@media (forced-colors: active) {
  hr,
  .summary-grid article,
  .credentials,
  .notice,
  .header-bar,
  .site-footer {
    border-color: CanvasText;
  }

  .text-button {
    border-color: ButtonText;
  }
}

@media print {
  .skip-link,
  .site-nav,
  .utility {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .site-footer,
  .band,
  .credentials,
  .notice {
    background: #fff;
    color: #000;
  }

  .site-footer a:link,
  .site-footer a:visited,
  a:link,
  a:visited {
    color: #000;
  }

  .text-button {
    border: 0;
    padding: 0;
  }
}
