/* R. Reagan Allen Law Firm, LLC
   World: the private trust library — bookcloth green, stamped brass,
   paper white, Caslon. Square corners, hairline rules, no shadows. */

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-700.woff2") format("woff2");
}

:root {
  --cloth: #14382b;
  --cloth-deep: #0e2a20;
  --cloth-line: rgba(207, 169, 106, 0.38);
  --cloth-text: #f5f2e9;
  --cloth-text-soft: #c3d3c8;
  --brass: #cfa96a;
  --brass-bright: #e2c084;
  --paper: #fafbfa;
  --paper-shade: #eff3f0;
  --rule: #d5ded8;
  --ink: #1c2621;
  --ink-soft: #45544c;
  --display: "Libre Caslon Display", "Big Caslon", Georgia, serif;
  --text: "Libre Caslon Text", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.prose { max-width: 62ch; }
.section > .wrap.prose { margin-inline: auto; }

/* ---------- links & focus ---------- */

a { color: inherit; }

main a:not(.cta) {
  color: var(--cloth);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 56, 43, 0.45);
  transition: text-decoration-color 160ms ease;
}
main a:not(.cta):hover { text-decoration-color: var(--cloth); }

:focus-visible {
  outline: 2px solid var(--cloth);
  outline-offset: 3px;
}
.on-cloth :focus-visible,
.on-cloth:focus-visible {
  outline-color: var(--brass-bright);
}

::selection { background: var(--cloth); color: var(--cloth-text); }

/* ---------- stamped label (the recurring device) ---------- */

.stamp {
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- header: the spine label ---------- */

.site-head {
  background: var(--cloth);
  color: var(--cloth-text);
  border-top: 3px solid var(--brass);
}

.masthead {
  text-align: center;
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.masthead-rule {
  display: block;
  width: min(34rem, 100%);
  margin-inline: auto;
  border: 0;
  border-top: 1px solid var(--cloth-line);
  position: relative;
  padding: 0;
}
.masthead-rule::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 3px;
  border-top: 1px solid var(--cloth-line);
}

.masthead-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.3rem, 4.6vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cloth-text);
  margin: 1.4rem 0 0.9rem;
  text-wrap: balance;
}

.masthead-sub {
  display: block;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.masthead a {
  text-decoration: none;
}

/* nav */

.site-nav {
  padding: 1.1rem 0 0;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 0.6rem;
  border-top: 1px solid rgba(207, 169, 106, 0.22);
}
.site-nav a {
  display: inline-block;
  padding: 0.8rem 0.25rem;
  color: var(--cloth-text-soft);
  text-decoration: none;
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--brass-bright); }
.site-nav a[aria-current="page"] {
  color: var(--cloth-text);
  border-bottom: 2px solid var(--brass);
  padding-bottom: calc(0.8rem - 2px);
}

/* ---------- hero (home, continues the cloth) ---------- */

.hero {
  background: var(--cloth);
  color: var(--cloth-text);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
}

.hero .lede {
  max-width: 58ch;
  margin: 1.75rem auto 0;
  text-align: center;
  color: var(--cloth-text-soft);
  font-size: 1.0625rem;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--cloth-line);
  color: var(--cloth-text);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cta:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--cloth-deep);
}

/* light variant for paper sections */
.cta-paper {
  border: 1px solid var(--cloth);
  color: var(--cloth);
}
.cta-paper:hover {
  background: var(--cloth);
  color: var(--cloth-text);
}

/* ---------- page title band (interior pages) ---------- */

.page-title {
  background: var(--cloth);
  color: var(--cloth-text);
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-title h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.page-title .stamp {
  color: var(--brass);
  display: block;
  margin-top: 1.1rem;
}

/* ---------- paper sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5rem); }
.section-shade { background: var(--paper-shade); }

.section h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin-bottom: 1.4rem;
}
.section h3,
.section h2.sub {
  font-family: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.2rem 0 0.6rem;
}

/* attorney intro: mounted plate + text */

.attorney-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) 3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.plate {
  margin: 0;
  border: 1px solid var(--rule);
  padding: 0.6rem;
  background: #fff;
}
.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}
.plate figcaption {
  padding: 0.85rem 0.35rem 0.45rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* practice index: table-of-contents, not cards */

.index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.9rem;
  margin-bottom: 0.25rem;
}
.index-head h2 { margin-bottom: 0; }
.index-head .stamp { color: var(--ink-soft); }

.practice-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.practice-index li {
  border-bottom: 1px solid var(--rule);
  padding: 1.15rem 0 1.2rem;
}
.practice-index .area {
  font-weight: 700;
  display: block;
}
.practice-index .gloss {
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: block;
  margin-top: 0.2rem;
}

/* ---------- credentials band (cloth compartments) ---------- */

.credentials {
  background: var(--cloth);
  color: var(--cloth-text);
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}
.credentials-grid > div {
  border-top: 1px solid var(--cloth-line);
  padding-top: 1.25rem;
}
.credentials .stamp { color: var(--brass); }
.credentials p {
  margin-top: 0.8rem;
  color: var(--cloth-text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.credentials p .soft { color: var(--cloth-text-soft); }

/* ---------- contact block ---------- */

.contact-block { text-align: center; }
.contact-block h2 { margin-bottom: 2rem; }
.contact-lines {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}
.big {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.3;
}
.big.email {
  font-size: clamp(1.05rem, 4.4vw, 1.6rem);
  overflow-wrap: anywhere;
}
.fact-list.contact-page-list {
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
}
.contact-note {
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 52ch;
  margin-inline: auto;
}

/* definition rows on interior pages */

.fact-list {
  margin: 0;
  padding: 0;
}
.fact-list dt {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  margin-top: 1.6rem;
}
.fact-list dt:first-child { margin-top: 0; }
.fact-list dd { margin: 0.45rem 0 0; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--cloth-deep);
  color: var(--cloth-text-soft);
  border-top: 3px solid var(--brass);
  padding-block: 3rem 2.5rem;
  font-size: 0.92rem;
}
.foot-lockup {
  color: var(--cloth-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}
.foot-nav a {
  color: var(--cloth-text-soft);
  text-decoration: none;
  padding: 0.6rem 0;
  display: inline-block;
  transition: color 160ms ease;
}
.foot-nav a:hover { color: var(--brass-bright); }
.site-foot a { transition: color 160ms ease; }
.site-foot a:hover { color: var(--brass-bright); }
.foot-legal {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(207, 169, 106, 0.22);
  color: var(--cloth-text-soft);
}
.foot-legal p + p { margin-top: 0.5rem; }

.seal { flex: none; }
.seal svg { display: block; }

/* ---------- the one authored moment: masthead settle ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .masthead-name,
  .js .masthead-sub {
    animation: settle 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .js .masthead-sub { animation-delay: 90ms; }
  .js .masthead-rule,
  .js .masthead-rule::after {
    animation: draw 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes settle {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* ---------- small screens ---------- */

@media (max-width: 44rem) {
  .attorney-grid { grid-template-columns: 1fr; }
  .plate { max-width: 22rem; }
  .practice-index { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .foot-grid { flex-direction: column; }
}

/* ---------- print ---------- */

@media print {
  .site-head, .site-foot { background: none; color: #000; border-color: #000; }
  .site-nav, .hero-actions { display: none; }
}
