/* Private Archive — demo17
   Audience: legal professionals
   Aesthetic: traditional law firm. Deep navy, cream, restrained gold rule.
*/

:root {
  --navy:        #11203f;
  --navy-soft:   #1e3a8a;
  --cream:       #fbfaf6;
  --cream-deep:  #f3efe4;
  --ink:         #1c1c1c;
  --ink-soft:    #3d3d3d;
  --rule:        #c9c2b1;
  --gold:        #9c7c3a;
  --gold-soft:   #b89758;

  --serif: ui-serif, "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, "Times New Roman", Times, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 36rem;
  --gutter: 2rem;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "liga" 1, "kern" 1, "onum" 1;
}

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

/* ----- Layout ----- */

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 44rem;
}

main > section {
  padding: 4rem 0;
}

main > section.hero {
  padding: 5.5rem 0 4rem;
}

hr.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: 44rem;
  margin: 0 auto;
}

/* ----- Masthead ----- */

.masthead {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 3px double var(--gold);
}

.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-block;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 2.1rem;
  text-align: center;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-variant: small-caps;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.topnav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.topnav a:hover,
.topnav a:focus {
  border-bottom-color: var(--gold);
  color: #fff;
}

/* ----- Hero ----- */

.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.hero .container {
  max-width: 50rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 1.6rem;
  color: var(--navy);
  letter-spacing: -0.005em;
  max-width: 30ch;
}

.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
  max-width: 38rem;
}

.cta-row {
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 1px solid var(--navy);
}

.cta-primary {
  background: var(--navy);
  color: var(--cream);
}

.cta-primary:hover,
.cta-primary:focus {
  background: #0a1633;
  border-color: var(--gold);
}

.cta-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule);
}

.cta-secondary:hover,
.cta-secondary:focus {
  border-color: var(--navy);
}

/* ----- Section headings ----- */

.section-heading {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-transform: lowercase;
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--gold);
  position: absolute;
  bottom: 0;
  left: 0;
}

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

.prose p {
  margin: 0 0 1.1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--ink);
}

.prose p.aside {
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding: 0.1rem 0 0.1rem 1rem;
  text-align: left;
  hyphens: manual;
  margin-top: 1.6rem;
}

.prose em {
  font-style: italic;
  color: var(--navy);
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 0 0.3em;
}

/* ----- Custody (ordered list) ----- */

ol.ordered {
  counter-reset: clause;
  list-style: none;
  padding: 0;
  margin: 0;
}

ol.ordered > li {
  counter-increment: clause;
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
  margin: 0 0 1.6rem;
  border-bottom: 1px solid var(--rule);
}

ol.ordered > li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

ol.ordered > li::before {
  content: counter(clause, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  width: 2.5rem;
  text-align: right;
}

ol.ordered h3 {
  display: inline;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.005em;
}

ol.ordered h3 + p {
  display: inline;
  margin: 0;
}

ol.ordered h3 + p::before {
  content: "  ";
  white-space: pre;
}

ol.ordered p {
  text-align: justify;
}

/* ----- Omissions list ----- */

ul.omissions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  border-top: 1px solid var(--rule);
}

ul.omissions li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: var(--ink);
}

ul.omissions li::before {
  content: "\2014"; /* em dash */
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--gold);
}

/* ----- Pricing ----- */

table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 1.4rem;
  font-size: 0.98rem;
}

table.pricing caption {
  text-align: left;
}

table.pricing th,
table.pricing td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

table.pricing thead th {
  font-family: var(--serif);
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  text-transform: lowercase;
}

table.pricing tbody th {
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  width: 6rem;
}

table.pricing tbody tr:last-child th,
table.pricing tbody tr:last-child td {
  border-bottom: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- Downloads ----- */

ul.downloads {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
}

ul.downloads li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

ul.downloads a {
  font-family: var(--serif);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  font-size: 1.02rem;
  word-break: break-all;
}

ul.downloads a:hover,
ul.downloads a:focus {
  color: var(--gold);
  border-bottom-color: var(--navy);
}

ul.downloads .meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

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

.colophon {
  background: var(--navy);
  color: var(--cream);
  border-top: 3px double var(--gold);
  padding: 3.5rem 0 3rem;
  margin-top: 3rem;
}

.colophon p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--cream);
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.colophon strong {
  color: var(--gold-soft);
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.1em;
}

.colophon .disclaimer {
  font-size: 0.86rem;
  color: #d8d2bf;
}

.footer-meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 194, 177, 0.25);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}

.footer-meta span + span::before {
  /* spacing handled by middle dots in markup */
}

/* ----- Responsive ----- */

@media (max-width: 48rem) {
  body { font-size: 17px; }
  main > section { padding: 3rem 0; }
  main > section.hero { padding: 3.5rem 0 2.5rem; }

  .masthead .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .topnav { gap: 1rem; }

  ol.ordered > li {
    padding-left: 2.4rem;
  }

  ol.ordered > li::before {
    width: 1.8rem;
    font-size: 0.95rem;
  }

  ul.downloads li {
    flex-direction: column;
    gap: 0.3rem;
  }

  .prose p,
  ol.ordered p,
  .colophon p {
    text-align: left;
    hyphens: manual;
  }
}

@media print {
  .masthead, .topnav, .cta-row { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .colophon { background: #fff; color: #000; border-top: 1px solid #000; }
  .colophon p, .colophon strong { color: #000; }
  a { color: #000; text-decoration: underline; }
}
