/* Roy Talman & Associates, Inc. — the one stylesheet for the site.
   Brand: navy #1E437F and indigo #262163 from the firm's logo, its warm silver #C4C3C2, and the
   logo's overlapping-squares motif. Type: Century Gothic (the logo's face) for headings and navigation,
   a book serif for reading. Both are system fonts, so no font service is contacted. */

:root {
  --navy: #1e437f;
  --indigo: #262163;
  --deep: #12193f;           /* hero and footer field */
  --silver: #c4c3c2;
  --sky: #a9c1ec;            /* lines and small text on the deep field */
  --paper: #f4f5f7;
  --surface: #ffffff;
  --text: #1b2033;
  --muted: #565d70;
  --line: #d8dbe3;
  --link: #1e437f;
  --ph-bg: #fff1c2;
  --ph-text: #574300;

  --display: "Century Gothic", "CenturyGothic", "Futura", "Avenir Next", "Avenir", "Trebuchet MS", system-ui, sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;

  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1430;
    --surface: #161c3d;
    --text: #e7eaf3;
    --muted: #a7afc6;
    --line: #2a3260;
    --link: #b5c9f0;
    --deep: #0a0e26;
    --ph-bg: #3d3412;
    --ph-text: #f5e09a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;   /* 19px: the serif needs the extra size */
  line-height: 1.65;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #6f9be8; outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 1rem; color: var(--text); }
h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.4rem; }

/* ---------------------------------------------------------------- Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: 230px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.site-nav li { margin: 0; }
.site-nav a {
  font-family: var(--display); font-size: 1rem; color: var(--text); text-decoration: none;
  display: inline-block; padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--silver); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current="page"] { border-bottom-color: var(--sky); }
}

/* ---------------------------------------------------------------- Hero (home) */
.hero {
  position: relative; overflow: hidden;
  background: var(--deep); color: #fff;
  border-bottom: 6px solid var(--navy);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  min-height: min(72vh, 40rem); padding-top: 3.25rem; padding-bottom: 3.75rem;
}
.hero-text { max-width: 44rem; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.025em;
  margin: 0 0 1.5rem; color: #fff; max-width: 11.2em;
}
.since {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--display); font-size: 1.05rem; color: var(--sky);
  margin: 0 0 1.5rem;
}
.since::before { content: ""; width: 3rem; height: 2px; background: var(--silver); flex: none; }
.hero .lede { color: #d9e0f1; font-size: 1.25rem; max-width: 36rem; }
.hero .hero-note { color: #b9c4de; font-size: 1.05rem; margin: 1.25rem 0 0; }
.hero a:not(.btn) { color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.btn {
  font-family: var(--display); font-size: 1rem; text-decoration: none;
  padding: 0.8rem 1.4rem; border: 1px solid var(--silver); color: #fff;
}
.btn-solid { background: var(--silver); color: var(--deep); }
.btn:hover { background: #fff; color: var(--deep); border-color: #fff; }

.motif {
  position: absolute; z-index: 0; pointer-events: none;
  right: 0.5rem; bottom: 0.5rem;
  width: 13rem; height: auto; opacity: 0.4;
}
@media (min-width: 62rem) {
  .motif { right: max(1rem, calc((100% - 72rem) / 2)); bottom: auto; top: 50%; transform: translateY(-50%); opacity: 1; width: 34rem; }
  .hero .wrap { grid-template-columns: 1.5fr 0.5fr; }
}
.motif .price {
  stroke-dasharray: 1400; stroke-dashoffset: 0;
  animation: draw 2.4s cubic-bezier(.3,.1,.2,1) 0.3s both;
}
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .motif .price { animation: none; } }
@media (max-width: 40rem) { .motif { display: none; } }

/* ---------------------------------------------------------------- Inner page head */
.page-head {
  background: var(--deep) url("/assets/rta-mark-faint.svg") no-repeat right max(1.5rem, calc((100% - 72rem) / 2 + 2.5rem)) center / auto 72%;
  color: #fff; border-bottom: 6px solid var(--navy);
}
.page-head .wrap { padding-top: 3.5rem; padding-bottom: 3.25rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; color: #fff; letter-spacing: -0.02em; }
.page-head .lede { color: #d9e0f1; font-size: 1.22rem; max-width: 40rem; margin: 0; }
.page-head .lede a { color: #fff; }
@media (max-width: 40rem) { .page-head { background-image: none; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-silver { background: #e7e8ec; }
@media (prefers-color-scheme: dark) { .section-silver { background: #182048; } .contacts li { border: 1px solid var(--line); border-left: 4px solid var(--navy); } }

.split { display: grid; gap: 1.25rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .split { grid-template-columns: 16rem minmax(0, 1fr); } }
.split > div > *:last-child { margin-bottom: 0; }
.prose { max-width: var(--measure); }

.rolelist {
  list-style: none; padding: 0; margin: 0 0 0.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2.5rem;
}
.rolelist li {
  display: flex; align-items: baseline;
  font-family: var(--display); font-size: 1.2rem; margin: 0;
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.rolelist li::before {
  content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.85rem;
  border: 1.5px solid var(--navy); flex: none; transform: translateY(-0.1em);
}
@media (prefers-color-scheme: dark) { .rolelist li::before { border-color: var(--sky); } }
.rolelist .role { display: block; color: var(--text); line-height: 1.3; }
.rolelist .role-note { display: block; font-family: var(--body); font-size: 1rem; line-height: 1.5; color: var(--muted); margin-top: 0.3rem; }

.statement {
  font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.22;
  letter-spacing: -0.015em; max-width: 46rem; margin: 0 0 1.5rem; color: var(--navy);
}
@media (prefers-color-scheme: dark) { .statement { color: #dbe4f8; } }

/* ---------------------------------------------------------------- How we work: steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 46rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.25rem 0 1.25rem 4.25rem; margin: 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.05rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; color: var(--navy);
  border: 1.5px solid var(--navy);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--sky); border-color: var(--sky); } }
.steps strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; margin-bottom: 0.2rem; }

.contacts { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); max-width: 40rem; }
.contacts li { margin: 0; padding: 1.1rem 1.25rem; background: var(--surface); border-left: 4px solid var(--navy); }
.contacts .who { font-family: var(--display); font-size: 1.2rem; display: block; }

/* ---------------------------------------------------------------- Team */
.team-grid {
  display: grid; gap: 2rem 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}
@media (min-width: 52rem) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd last card sits alone on its row: centre it at one column's width. */
  .team-grid > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc((100% - 1.75rem) / 2);
  }
}
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { border-color: var(--silver); }
.portrait {
  aspect-ratio: 5 / 4; position: relative; display: grid; place-items: end start; padding: 1.1rem 1.4rem;
  background: var(--deep) url("/assets/rta-mark-light.svg") no-repeat right 1rem top 1rem / auto 70%;
  border-bottom: 4px solid var(--navy); overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.initials { font-family: var(--display); font-size: 3.4rem; letter-spacing: 0.06em; color: #fff; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card h2, .card h1 { font-size: 1.55rem; margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.role { color: var(--muted); margin: 0 0 1rem; font-size: 1.05rem; }
.card dl { margin: 0; }
.card dt { font-family: var(--display); font-size: 0.95rem; color: var(--muted); margin-top: 0.9rem; }
.card dd { margin: 0.15rem 0 0; font-size: 1.05rem; }

.card-single { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
@media (min-width: 46rem) {
  .card-single { grid-template-columns: 20rem minmax(0, 1fr); }
  .card-single .portrait { aspect-ratio: auto; min-height: 24rem; border-bottom: 0; border-right: 4px solid var(--navy); background-size: 70% auto; }
}
.card-single h1 { font-size: 2.2rem; }
.card-single .initials { font-size: 4.5rem; }

/* ---------------------------------------------------------------- Owner placeholders: visible on purpose */
.ph { background: var(--ph-bg); color: var(--ph-text); padding: 0 0.3em; font-style: normal; }
.draft-banner {
  background: var(--ph-bg); color: var(--ph-text); border-left: 5px solid currentColor;
  padding: 0.9rem 1.2rem; margin: 0 0 2.5rem; max-width: 46rem;
}

/* ---------------------------------------------------------------- Long text pages */
.doc { max-width: 44rem; }
.doc h2 { font-size: 1.6rem; margin: 2.75rem 0 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc h2:first-of-type { margin-top: 0; }
.doc ul { padding-left: 1.3rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.75rem; margin: 0 0 1.5rem; }
.facts dt { font-family: var(--display); color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.7rem; } }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--deep); color: #c5cde2; padding: 3rem 0 2.5rem; font-size: 1rem; border-top: 6px solid var(--navy); }
.site-footer .wrap { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; } }
.site-footer img { width: 180px; height: auto; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-family: var(--display); }
.site-footer li { margin-bottom: 0.4rem; }

@media (max-width: 30rem) {
  body { font-size: 1.125rem; }
  .brand img { width: 168px; }
  .site-nav ul { gap: 0.1rem 1.1rem; }
}

.after-card { margin-top: 2.5rem; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
@media (max-width: 40rem) { .team-grid .portrait { aspect-ratio: 16 / 7; } }
.card dd p { margin: 0 0 0.7rem; }
.card dd p:last-child { margin-bottom: 0; }
