/* Reece & Baker, LLC — public site stylesheet */

:root {
  --navy: #1c2b3a;
  --navy-deep: #15212d;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --ink: #2b2a27;
  --ink-soft: #5a574f;
  --brass: #a8854b;
  --brass-dark: #7a5f30;
  --rule: #e3ddd0;
  --serif: Georgia, 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
}

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

.site-footer a:focus-visible,
.notice-band a:focus-visible,
.hero a:focus-visible,
.page-banner a:focus-visible {
  outline-color: #d9c9a5;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--brass);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.wordmark {
  text-decoration: none;
  color: var(--navy);
  line-height: 1.2;
}

.wordmark .firm {
  font-size: 26px;
  letter-spacing: 0.04em;
}

.wordmark .firm b { font-weight: 700; }

.wordmark .tag {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--brass-dark); }

.site-nav a.active {
  border-bottom-color: var(--brass);
  color: var(--brass-dark);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: var(--navy) url('../images/denver-skyline.jpg') center 60% / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(21, 33, 45, 0.87) 0%, rgba(21, 33, 45, 0.66) 55%, rgba(21, 33, 45, 0.82) 100%);
}

.hero .container {
  position: relative;
  padding-top: 110px;
  padding-bottom: 110px;
  max-width: 820px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

.hero .subtitle {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d9c9a5;
  margin: 0 0 28px;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 620px;
  color: #f0ede6;
}

/* ---------- Page banner (interior pages) ---------- */

.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 44px 0 38px;
}

.page-banner.with-columns {
  background: var(--navy) url('../images/columns.jpg') center 35% / cover no-repeat;
  position: relative;
}

.page-banner.with-columns::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 33, 45, 0.78);
}

.page-banner .container { position: relative; }

.page-banner h1 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
}

.page-banner p {
  margin: 10px 0 0;
  color: #d6d2c8;
  max-width: 640px;
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section.alt { background: var(--cream); }

.section h2 {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 28px;
}

.section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brass);
  margin-top: 10px;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.principle h3,
.area-card h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 8px;
}

.principle p, .area-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.area-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 26px 28px;
  color: inherit;
}

.area-card:hover { border-color: var(--brass); }

.area-card .more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

/* ---------- Notice band ---------- */

.notice-band {
  background: var(--navy-deep);
  color: #e8e4da;
  text-align: center;
  padding: 30px 24px;
  font-size: 17px;
}

.notice-band a { color: #d9c9a5; }

/* ---------- Prose pages ---------- */

.prose { max-width: 720px; }

.prose h2 {
  /* override section-label style for running heads inside articles */
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--navy);
  margin: 36px 0 12px;
}

.prose h2::after { display: none; }

.prose h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 8px;
}

.prose ul, .prose ol { padding-left: 24px; }

.prose blockquote {
  margin: 20px 0;
  padding: 4px 22px;
  border-left: 3px solid var(--brass);
  color: var(--ink-soft);
  font-style: italic;
}

.prose .tip {
  background: var(--cream);
  border-left: 3px solid var(--brass);
  padding: 14px 18px;
  margin: 20px 0;
}

a { color: var(--brass-dark); }

/* ---------- Practice area sections ---------- */

.pa-section {
  border-bottom: 1px solid var(--rule);
  padding: 44px 0;
}

.pa-section:last-of-type { border-bottom: none; }

.pa-section h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--navy);
  margin: 0 0 14px;
}

.pa-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brass);
  margin-top: 10px;
}

.pa-section p { max-width: 760px; }

/* ---------- Attorneys ---------- */

.attorney {
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
}

.attorney:last-of-type { border-bottom: none; }

.attorney h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0;
}

.attorney h2::after { display: none; }

.attorney .role {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 6px 0 16px;
}

.attorney p { max-width: 760px; margin: 0 0 14px; }

.attorney .admissions {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Resources ---------- */

.post-list { list-style: none; padding: 0; margin: 0; }

.post-list li {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}

.post-list li:last-child { border-bottom: none; }

.post-list a {
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
}

.post-list a:hover { color: var(--brass-dark); }

.post-list .meta,
.article-meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.post-list .excerpt { margin: 8px 0 0; color: var(--ink-soft); }

.article-meta { margin: 4px 0 30px; }

.back-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: 48px;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-layout h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--navy);
  margin: 0 0 12px;
}

.contact-layout h2::after { display: none; }

.req {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.contact-info p { margin: 0 0 16px; }

.disclaimer {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: 22px;
}

form.inquiry { display: grid; gap: 16px; }

form.inquiry label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

form.inquiry input,
form.inquiry textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfc8b8;
  padding: 10px 12px;
}

form.inquiry input:focus-visible,
form.inquiry textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--brass);
}

form.inquiry .hp { display: none; }

.form-error {
  background: #f7ecec;
  border-left: 3px solid #a04545;
  color: #6e2f2f;
  padding: 12px 16px;
}

form.inquiry button {
  justify-self: start;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: none;
  padding: 13px 36px;
  cursor: pointer;
}

form.inquiry button:hover { background: var(--brass-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #c9c4b8;
  margin-top: 72px;
  padding: 44px 0 36px;
  font-size: 15px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 60px;
  justify-content: space-between;
}

.site-footer .firm-name {
  color: #f0ede6;
  font-size: 18px;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.site-footer p { margin: 0 0 4px; }

.site-footer a {
  color: #d9c9a5;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .fine {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: #9a958a;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero .container { padding-top: 70px; padding-bottom: 70px; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { letter-spacing: 0.22em; }
  .section { padding: 40px 0; }
}
