/* Jesse J. Camacho, concept 7, "Where you are" */

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

  --serif: "Literata", Georgia, "Century Schoolbook", serif;

  --size-display: clamp(2.125rem, 6.4vw, 2.75rem); /* 34 - 44 */
  --size-state:   clamp(1.625rem, 5vw, 2.125rem);  /* 26 - 34 */
  --size-section: 1.5rem;                          /* 24 */
  --size-label:   1.0625rem;                       /* 17 */
  --size-lead:    1.3125rem;                       /* 21 */
  --size-body:    1.1875rem;                       /* 19 */
  --size-small:   1.125rem;                        /* 18 */

  --measure: 63ch;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.62;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.25rem;
  font-size: var(--size-small);
  text-decoration: underline;
  z-index: 10;
}
.skip:focus {
  left: 0;
  top: 0;
}

/* ---------- links ---------- */

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
/* fallback for browsers without :focus-visible */
a:focus,
summary:focus {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
summary:focus:not(:focus-visible) { outline: none; }

/* ---------- page frame ---------- */

main {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- the opening block ---------- */

.intro {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.intro-text { min-width: 0; }

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

h1 {
  margin: 0;
  font-size: var(--size-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.intro-line {
  margin: 0.6rem 0 1.6rem;
  font-size: var(--size-section);
  line-height: 1.3;
}

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

.intro-portrait { min-width: 0; }

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

/* ---------- the four statements ---------- */

.stack {
  border-top: 1px solid var(--hairline);
}

.q {
  border-bottom: 1px solid var(--hairline);
}

.q summary {
  display: grid;
  grid-template-columns: 1fr 1.375rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 44px;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, background-color 180ms ease;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::marker { content: ""; }

.q summary h2 {
  margin: 0;
  font-size: var(--size-state);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* the plus / minus indicator */
.mark {
  position: relative;
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  align-self: center;
}
.mark::before,
.mark::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: opacity 180ms ease, background-color 180ms ease;
}
.mark::before {  /* horizontal bar */
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.mark::after {   /* vertical bar */
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}

.q summary:hover { color: var(--navy); }
.q summary:hover .mark::before,
.q summary:hover .mark::after { background: var(--navy-deep); }

.q[open] > summary {
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.q[open] > summary .mark::after { opacity: 0; }

/* ---------- an opened panel ---------- */

.panel {
  padding: 2rem 0 3.25rem;
  max-width: var(--measure);
  animation: rise 260ms ease-out both;
}

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

.panel p {
  margin: 0 0 1.35em;
}
.panel > p:first-child {
  font-size: var(--size-lead);
  line-height: 1.56;
}

.panel h3 {
  margin: 2.5rem 0 1rem;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

ul.actions {
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  background: var(--band);
  list-style: none;
}
ul.actions li {
  position: relative;
  margin: 0 0 1rem;
  padding: 0;
}
ul.actions li:last-child { margin-bottom: 0; }
ul.actions li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.72em;
  width: 0.5rem;
  height: 1px;
  background: var(--navy);
}

/* ---------- a voice inside a panel ---------- */

.voice {
  margin: 2.75rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--navy);
}
.voice p {
  margin: 0 0 1.1em;
  font-size: var(--size-lead);
  line-height: 1.55;
}
.voice footer {
  font-size: var(--size-small);
  color: var(--navy);
  line-height: 1.5;
}

/* ---------- common sections ---------- */

.common,
.contact {
  max-width: var(--measure);
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 0;
}
.contact { padding-bottom: clamp(3.5rem, 9vw, 5.5rem); }

.common h2,
.contact h2 {
  margin: 0 0 1.5rem;
  font-size: var(--size-section);
  font-weight: 400;
  line-height: 1.25;
}
.common p,
.contact p { margin: 0 0 1.35em; }

.common ul.actions { margin: 1.75rem 0 2rem; }

ul.reach {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
ul.reach li {
  border-bottom: 1px solid var(--hairline);
}
ul.reach a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 0;
  font-size: var(--size-lead);
}

/* ---------- legal ---------- */

.legal {
  background: var(--band);
  border-top: 1px solid var(--hairline);
  padding: 2.75rem 0;
}
.legal-inner {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal p {
  max-width: var(--measure);
  margin: 0 0 0.75em;
  font-size: var(--size-small);
  line-height: 1.55;
}
.legal p:last-child { margin-bottom: 0; }

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

@media (max-width: 44rem) {
  .intro {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .intro-portrait { order: -1; }
  .intro-portrait img {
    width: 70%;
    max-width: 280px;
  }
}

@media (max-width: 34rem) {
  :root { --gutter: 1.25rem; }

  .q summary {
    grid-template-columns: 1fr 1.25rem;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .mark { width: 1.25rem; height: 1.25rem; }

  ul.actions {
    padding: 1.125rem 1.125rem 1.125rem 2.25rem;
  }
}

/* ================================================================
   Chrome and components added when the concept became nine pages.
   Same idiom: hairlines, one ink, statements that open in place.
   ================================================================ */

/* ---------- a container aligned with the opening block ---------- */

.frame {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- persistent navigation ---------- */

.sitenav {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.sitenav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitenav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: var(--size-label);
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.sitenav a:hover {
  color: var(--navy);
  border-bottom-color: var(--hairline);
}
.sitenav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}

/* ---------- the compact banner on interior pages ---------- */

.banner {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(1.75rem, 4.5vw, 2.75rem);
}
.banner h1 {
  font-weight: 600;
  max-width: 18ch;
}
.banner p {
  margin: 1rem 0 0;
  max-width: 56ch;
  font-size: var(--size-lead);
  line-height: 1.5;
}

main.page { padding-bottom: clamp(3.5rem, 9vw, 5.5rem); }

main.page > .stack { border-top: 1px solid var(--hairline); }
main.page > .stack.stack-gap { margin-top: 3rem; }
main.page > ul.reach { max-width: var(--measure); }

/* ---------- material that is never collapsed ---------- */

.urgent {
  max-width: var(--measure);
  margin: 0 0 2.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--band);
  border-left: 3px solid var(--navy);
}
.urgent p { margin: 0 0 1em; }
.urgent p:last-child { margin-bottom: 0; }
.urgent strong { font-weight: 600; }
.urgent a { font-weight: 600; }

.plain {
  max-width: var(--measure);
  margin: 0 0 2.5rem;
}
.plain p { margin: 0 0 1.35em; }
.plain p:last-child { margin-bottom: 0; }

/* ---------- a smaller disclosure inside prose ---------- */

details.more { margin: 1.5rem 0 0; }
details.more > summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-size: var(--size-small);
  transition: color 180ms ease;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::marker { content: ""; }
details.more > summary:hover { color: var(--navy-deep); }
details.more[open] > summary .mark::after { opacity: 0; }

.mark-sm { width: 1rem; height: 1rem; }

.full {
  padding: 1.25rem 0 0;
  max-width: var(--measure);
  animation: rise 260ms ease-out both;
}
.full p { margin: 0 0 1.15em; }
.full p:last-child { margin-bottom: 0; }

/* ---------- recommendations ---------- */

.recs { border-top: 1px solid var(--hairline); }

.rec {
  max-width: var(--measure);
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--hairline);
}
.rec h2 {
  margin: 0;
  font-size: var(--size-section);
  font-weight: 600;
  line-height: 1.25;
}
.rec .who {
  margin: 0.4rem 0 1.5rem;
  font-size: var(--size-small);
  color: var(--navy);
  line-height: 1.5;
}

.pull {
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--navy);
}
.pull p {
  margin: 0 0 1.1em;
  font-size: var(--size-lead);
  line-height: 1.55;
}
.pull p:last-child { margin-bottom: 0; }

/* ---------- listed matters ---------- */

ul.cases {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
ul.cases li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
ul.cases b {
  display: block;
  font-weight: 600;
}
ul.cases span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--size-small);
  color: var(--navy);
  line-height: 1.5;
}

/* ---------- photograph placeholders ---------- */

.placeholder {
  max-width: var(--measure);
  margin: 2.25rem 0 0;
  padding: 2rem 1.5rem;
  background: var(--band);
  border: 1px dashed var(--navy);
}
.placeholder p {
  margin: 0;
  font-size: var(--size-small);
  line-height: 1.55;
}

/* ---------- a closing note ---------- */

.note {
  margin: 2.75rem 0 0;
}
.note p {
  max-width: var(--measure);
  margin: 0 0 0.75em;
  font-size: var(--size-small);
  line-height: 1.55;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- contact routes in the footer ---------- */

ul.routes {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2.25rem;
  margin: 0 0 1.75rem;
  padding: 0 0 1.25rem;
  list-style: none;
  border-bottom: 1px solid var(--hairline);
}
ul.routes a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--size-small);
}

@media (max-width: 34rem) {
  .sitenav ul { column-gap: 1.25rem; }
  ul.routes { column-gap: 1.5rem; }
  .urgent { padding: 1.25rem 1.125rem 1.25rem 1.375rem; }
  .placeholder { padding: 1.5rem 1.125rem; }
}

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

@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;
  }
}
