/* Plain answers about money and time. Site 8. */

:root{
  --ink:      #15171A;
  --navy:     #1E3A5F;
  --navy-deep:#16304E;
  --band:     #F6F6F4;
  --hairline: #E4E5E2;
  --white:    #FFFFFF;

  --s-nav:  15px;
  --s-fine: 17px;
  --s-body: 20px;
  --s-lead: 24px;
  --s-h2:   31px;
  --s-h1:   44px;

  --measure: 66ch;
}

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

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

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:"Literata", Georgia, "Century Schoolbook", serif;
  font-size:var(--s-body);
  line-height:1.62;
  font-weight:400;
}

/* ---------- skip link ---------- */

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--navy);
  color:var(--white);
  padding:14px 20px;
  font-size:var(--s-fine);
  text-decoration:underline;
  z-index:10;
}
.skip:focus{
  left:0;
  min-height:44px;
  display:flex;
  align-items:center;
}

/* ---------- links and focus ---------- */

a{
  color:var(--navy);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
  transition:color 180ms ease, text-decoration-color 180ms ease;
}
a:hover{ color:var(--navy-deep); text-decoration-thickness:2px; }

a:focus-visible,
:focus-visible{
  outline:3px solid var(--navy);
  outline-offset:3px;
  border-radius:0;
}

/* ---------- layout ---------- */

.wrap{
  width:100%;
  max-width:1080px;
  margin:0 auto;
  padding:0 32px;
}
.wrap.narrow{ max-width:760px; }

section{ padding:78px 0; }
section.band{ background:var(--band); }

.board-section{ padding-top:0; padding-bottom:60px; }
.board-section .wrap{ max-width:1000px; }
.board-section h2{ max-width:26ch; }

/* ---------- masthead ---------- */

.masthead{ padding:92px 0 84px; }
.masthead .wrap{ max-width:1000px; }

.masthead-grid{
  display:flex;
  align-items:flex-end;
  gap:48px;
}
.masthead-text{ flex:7 1 0; min-width:0; }
.masthead-portrait{ flex:4 1 0; min-width:0; margin:0; }

.masthead-portrait img{
  display:block;
  width:100%;
  max-width:360px;
  height:auto;
  border-bottom:3px solid var(--navy);
}

.eyebrow{
  margin:0 0 26px;
  font-size:var(--s-fine);
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--navy);
  line-height:1.4;
}

h1{
  margin:0 0 14px;
  font-size:var(--s-h1);
  font-weight:600;
  line-height:1.15;
  letter-spacing:-0.025em;
}

.masthead-line{
  font-size:var(--s-lead);
  line-height:1.4;
  margin:0 0 26px;
  color:var(--navy);
}

.masthead-para{
  margin:0;
  max-width:62ch;
}

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

h2{
  font-size:var(--s-h2);
  font-weight:600;
  line-height:1.2;
  margin:0 0 20px;
  max-width:20ch;
}

h3{
  font-size:var(--s-lead);
  font-weight:600;
  line-height:1.25;
  margin:56px 0 16px;
}

p{ margin:0 0 22px; max-width:var(--measure); }
p:last-child{ margin-bottom:0; }

.intro{
  font-size:var(--s-body);
  margin-bottom:44px;
  max-width:var(--measure);
}

/* ---------- the board ---------- */

.board{
  width:100%;
  border-collapse:collapse;
  border-top:2px solid var(--navy);
  border-bottom:2px solid var(--navy);
  text-align:left;
}

.board caption{
  caption-side:top;
  text-align:left;
  font-size:var(--s-fine);
  color:var(--navy);
  line-height:1.5;
  padding-bottom:14px;
  max-width:var(--measure);
}

.board thead th{
  font-size:var(--s-fine);
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--navy);
  padding:16px 28px 16px 0;
  border-bottom:1px solid var(--navy);
  vertical-align:bottom;
}
.board thead th:last-child{ padding-right:0; }

.board tr.group th{
  font-size:var(--s-fine);
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--navy);
  padding:34px 0 12px;
  border-bottom:1px solid var(--navy);
}

.board tbody tr:not(.group) th,
.board tbody tr:not(.group) td{
  border-top:1px solid var(--hairline);
  padding:30px 28px 30px 0;
  vertical-align:top;
}
.board tbody tr:not(.group) td{ padding-right:0; }
.board tbody tr.group + tr th,
.board tbody tr.group + tr td{ border-top:0; }

.board tbody th[scope="row"]{
  width:28%;
  font-weight:600;
  color:var(--navy);
  line-height:1.4;
  padding-right:40px;
}

.board tbody td{ line-height:1.6; }

/* ---------- quotes ---------- */

.quote{
  margin:0 0 48px;
  padding-left:26px;
  border-left:2px solid var(--navy);
}
.quote:last-of-type{ margin-bottom:44px; }

.quote blockquote{
  margin:0;
  font-size:var(--s-lead);
  line-height:1.55;
}
.quote blockquote p{ margin:0 0 20px; max-width:60ch; }
.quote blockquote p:last-child{ margin-bottom:0; }

.quote figcaption{
  margin-top:22px;
  font-size:var(--s-fine);
  color:var(--navy);
  line-height:1.5;
  max-width:60ch;
}

.note{
  border-top:1px solid var(--hairline);
  padding-top:28px;
}

/* ---------- ask list ---------- */

.asklist{
  list-style:none;
  margin:0;
  padding:0;
  max-width:var(--measure);
  border-top:1px solid var(--hairline);
}
.asklist li{
  border-bottom:1px solid var(--hairline);
  padding:22px 0 22px 34px;
  position:relative;
  line-height:1.55;
}
.asklist + p{ margin-top:30px; }
.asklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:34px;
  width:18px;
  height:1px;
  background:var(--navy);
}

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

.contact{ margin-bottom:14px; }
.contact a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:2px 0;
}
.contact br{ line-height:1; }

.place{ margin-bottom:0; }

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

section.band + footer{ border-top:2px solid var(--navy); }

footer{
  border-top:1px solid var(--hairline);
  background:var(--band);
  padding:44px 0 60px;
}
footer p{
  font-size:var(--s-fine);
  line-height:1.6;
  margin:0 0 12px;
  max-width:var(--measure);
}
footer p:last-child{ margin-bottom:0; }

/* ---------- site navigation: hairlines, like the board ---------- */

.sitenav{
  border-bottom:1px solid var(--hairline);
  background:var(--white);
}

/* nav, banner and the placeholder band share the board's measure */
.sitenav .wrap,
.banner .wrap,
.wrap.board-width{ max-width:1000px; }

.sitenav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  column-gap:26px;
}

.sitenav a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:4px 0;
  font-size:var(--s-nav);
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--navy);
  text-decoration:none;
  border-bottom:3px solid transparent;
}
.sitenav a:hover{
  color:var(--navy-deep);
  border-bottom-color:var(--hairline);
}
.sitenav a[aria-current="page"]{
  color:var(--ink);
  border-bottom-color:var(--navy);
}
.sitenav a:focus-visible{ outline-offset:0; }

/* ---------- interior banner ---------- */

.banner{
  padding:56px 0 40px;
  border-bottom:2px solid var(--navy);
}
.banner h1{
  margin:0 0 16px;
  max-width:26ch;
}
.banner-line{
  margin:0;
  font-size:var(--s-lead);
  line-height:1.4;
  color:var(--navy);
  max-width:60ch;
}

.board-section.spaced{ padding-top:64px; }

/* ---------- things that live inside a board cell ---------- */

.board blockquote{
  margin:0;
  padding-left:22px;
  border-left:2px solid var(--navy);
}
.board blockquote p{ margin:0 0 18px; max-width:62ch; }
.board blockquote p:last-child{ margin-bottom:0; }

.board .attrib{
  margin:18px 0 0;
  font-size:var(--s-fine);
  color:var(--navy);
  line-height:1.5;
  max-width:62ch;
}

.board .meta{
  display:block;
  margin-top:14px;
  font-size:var(--s-fine);
  font-weight:400;
  color:var(--ink);
  line-height:1.55;
}

.board td p{ margin:0 0 18px; max-width:none; }
.board td p:last-child{ margin-bottom:0; }

.board td a{ text-decoration:underline; }

/* inline links keep the reading rhythm but carry a 44px hit area */
main p a,
main li a,
.board td a,
.board caption a{
  padding-top:7px;
  padding-bottom:7px;
}
.contact a{ padding-top:2px; padding-bottom:2px; }

/* a contact route gets its own line and its own 44px target */
.board .route{ margin:0 0 16px; }
.board .route a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding-top:0;
  padding-bottom:0;
}

/* ---------- photo placeholders ---------- */

.photoslots{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:26px;
  margin:0;
  padding:0;
  list-style:none;
}
.photoslot{
  background:var(--band);
  border:2px dashed var(--hairline);
  padding:30px 26px;
  min-height:190px;
  display:flex;
  align-items:center;
  font-size:var(--s-fine);
  line-height:1.55;
}

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

.footer-routes{
  margin:0 0 28px;
  padding:0 0 26px;
  border-bottom:1px solid var(--hairline);
}
.footer-routes a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:2px 0;
}
.footer-routes br{ line-height:1; }

/* ---------- motion ---------- */

.masthead-text > *,
.masthead-portrait{
  animation:rise 620ms ease-out both;
}
.masthead .eyebrow{ animation-delay:0ms; }
.masthead h1{ animation-delay:70ms; }
.masthead-line{ animation-delay:140ms; }
.masthead-para{ animation-delay:200ms; }
.masthead-portrait{ animation-delay:120ms; }

@keyframes rise{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:none; }
}

/* ---------- responsive ---------- */

@media (max-width:900px){
  :root{
    --s-h1:38px;
    --s-h2:28px;
    --s-lead:22px;
  }
  .masthead-grid{ gap:36px; }
  .board tbody th[scope="row"]{ width:34%; padding-right:28px; }
}

@media (max-width:760px){
  .wrap{ padding:0 22px; }
  section{ padding:56px 0; }
  h2{ max-width:none; }

  .masthead{ padding:52px 0 56px; }
  .masthead-grid{
    flex-direction:column-reverse;
    align-items:stretch;
    gap:0;
  }
  .masthead-portrait{
    margin:0 0 38px;
  }
  .masthead-portrait img{
    width:70%;
    max-width:280px;
  }

  .board,
  .board tbody,
  .board tr,
  .board th,
  .board td{
    display:block;
    width:auto;
  }
  .board thead{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .board tbody tr:not(.group){
    border-top:1px solid var(--hairline);
    padding:26px 0;
  }
  .board tbody tr:not(.group) th,
  .board tbody tr:not(.group) td{
    border-top:0;
    padding:0;
  }
  .board tbody th[scope="row"]{
    width:auto;
    padding:0 0 16px;
  }
  .board caption{
    display:block;
    width:100%;
    padding:0 0 18px;
  }
  .board{ border-top:0; }
  .board tbody:first-of-type{ border-top:2px solid var(--navy); }
  .board tr.group th{ padding:38px 0 10px; }
  .board tbody tr.group + tr{ border-top:0; }

  .quote{ padding-left:18px; }

  .sitenav ul{ column-gap:20px; }
  .sitenav a{ min-height:46px; }

  .banner{ padding:34px 0 26px; }
  .banner h1{ margin-bottom:12px; max-width:none; }
  .banner-line{ font-size:var(--s-body); }

  .board-section.spaced{ padding-top:46px; }

  .board blockquote{ padding-left:16px; }
  .photoslot{ min-height:150px; padding:24px 20px; }
}

@media (max-width:400px){
  :root{ --s-h1:33px; --s-h2:26px; --s-nav:14px; }
  .wrap{ padding:0 18px; }
  .sitenav ul{ column-gap:16px; }
  .sitenav a{ min-height:44px; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
  .masthead-text > *,
  .masthead-portrait{ animation:none; opacity:1; transform:none; }
}
