/* ==========================================================================
   GLAUCE OLIVEIRA — sub-pages (journal articles + service pages)

   Deliberately NOT the home page stylesheet. The home page carries ~60KB of
   CSS for the intro, the video bands, the filter and the lightbox; a sub-page
   needs none of that. This is the shared subset: tokens, type, header, footer
   and prose, plus the service-page components at the bottom.

   Versioned in the filename because _headers marks /assets/* immutable for a
   year — bump to article-3.css to ship a change. Supersedes article-1.css,
   which had everything up to the "more reading" block and no service bits.
   ========================================================================== */

:root{
  --gold:#C9A24E;
  --gold-deep:#9A7530;
  --gold-text:#85641F;
  --sage-pale:#EAF0E7;
  --espresso:#241B14;
  --espresso-deep:#17110C;
  --ink:#2B2118;
  --ink-2:#6B5D50;
  --ink-3:#776A5C;
  --paper:#FBF7F1;
  --cream:#F2E7D5;
  --rule:#E6DCCC;
  --rule-strong:#D2C3AC;
  --rule-dark:rgba(242,231,213,.18);

  --shell:760px;
  --gutter:clamp(18px,5vw,40px);
  --header-h:66px;

  --sans:'Archivo','Segoe UI',system-ui,sans-serif;
  --mono:'Space Mono',ui-monospace,Consolas,monospace;
  --out:cubic-bezier(.16,1,.3,1);
}
@media (min-width:861px){ :root{ --header-h:80px } }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink-2);
  font-family:var(--sans);font-size:16px;
  font-variation-settings:'wdth' 100,'wght' 350;
  line-height:1.68;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{margin:0;color:var(--ink);font-weight:400}
p{margin:0}
::selection{background:#E4CE9C;color:var(--espresso)}
:focus-visible{outline:2px solid var(--gold-text);outline-offset:3px}

.shell{width:100%;max-width:var(--shell);margin-inline:auto;padding-inline:var(--gutter)}

/* header — same lockup as the home page, minus the nav */
.header{
  position:sticky;top:0;z-index:40;
  background:rgba(251,247,241,.94);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--rule);
}
.header .shell{display:flex;align-items:center;gap:14px;min-height:var(--header-h);max-width:1280px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none;min-height:44px}
.brand img{width:34px;height:34px}
.brand b{
  display:block;font-variation-settings:'wdth' 96,'wght' 480;
  font-size:.72rem;line-height:1.15;letter-spacing:.1em;color:var(--ink);
}
/* .58rem (9,3px) e o piso de fonte que a home adotou na revisao de iPhone.
   As sub-paginas tinham ficado em .45rem (7,2px) — abaixo do piso. O cabecalho
   daqui so tem a marca e o link de volta, entao ha folga de sobra a 375px. */
.brand span{
  display:block;font-family:var(--mono);font-size:.58rem;line-height:1.2;
  letter-spacing:.2em;text-transform:uppercase;color:var(--gold-text);margin-top:4px;
}
.back{
  margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-family:var(--mono);font-size:.6rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-2);text-decoration:none;transition:color .3s;
}
.back:hover{color:var(--gold-text)}
.back svg{width:12px;height:12px}
@media (min-width:861px){ .brand img{width:40px;height:40px} .brand b{font-size:.94rem;letter-spacing:.15em} }

/* article head */
.art-head{padding-block:clamp(38px,9vw,78px) clamp(26px,6vw,44px)}
.kicker{
  display:flex;align-items:center;gap:12px;margin-bottom:22px;
  font-family:var(--mono);font-size:.58rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-3);
}
.kicker::before{content:"";width:28px;height:1px;background:var(--gold);flex:none}
h1{
  font-variation-settings:'wdth' 100,'wght' 250;
  font-size:clamp(1.95rem,7vw,3.1rem);line-height:1.1;letter-spacing:-.026em;
}
.byline{
  margin-top:24px;padding-top:18px;border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:8px 18px;
  font-family:var(--mono);font-size:.58rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);
}
.byline b{color:var(--ink-2);font-weight:400}

/* prose */
.prose{padding-bottom:clamp(38px,8vw,64px)}
.prose > * + *{margin-top:20px}
.prose p{font-size:1rem;line-height:1.72}
.prose .standfirst{
  font-variation-settings:'wdth' 100,'wght' 320;
  font-size:clamp(1.05rem,3.6vw,1.22rem);line-height:1.56;color:var(--ink);
}
.prose h2{
  margin-top:clamp(34px,7vw,52px);
  font-variation-settings:'wdth' 100,'wght' 300;
  font-size:clamp(1.35rem,4.6vw,1.8rem);line-height:1.2;letter-spacing:-.02em;
}
.prose h3{
  margin-top:clamp(24px,5vw,34px);
  font-variation-settings:'wdth' 100,'wght' 520;
  font-size:1.02rem;line-height:1.3;letter-spacing:-.014em;
}
.prose ul{margin:16px 0 0;padding-left:0;list-style:none}
.prose li{position:relative;padding-left:22px;margin-top:10px;font-size:.97rem;line-height:1.62}
.prose li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:5px;height:5px;background:var(--gold);transform:rotate(45deg);
}
.prose strong{font-variation-settings:'wdth' 100,'wght' 560;color:var(--ink)}
.prose a{color:var(--gold-text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{color:var(--ink)}

/* a plain, honest note — this is health-adjacent copy */
.note{
  margin-top:clamp(30px,6vw,44px);
  padding:clamp(18px,4vw,26px);
  background:var(--sage-pale);border:1px solid var(--rule);
  font-size:.9rem;line-height:1.6;color:var(--ink-2);
}
.note b{font-variation-settings:'wdth' 100,'wght' 560;color:var(--ink)}

/* closing call */
.cta{background:var(--espresso);color:rgba(242,231,213,.76);padding-block:clamp(40px,9vw,72px);text-align:center}
.cta h2{
  color:var(--cream);max-width:18ch;margin-inline:auto;
  font-variation-settings:'wdth' 100,'wght' 270;
  font-size:clamp(1.6rem,5.6vw,2.4rem);line-height:1.14;letter-spacing:-.024em;
}
.cta p{margin-top:16px;font-size:.95rem;max-width:46ch;margin-inline:auto}
.btn{
  margin-top:clamp(22px,5vw,32px);
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:44px;padding:10px 22px;
  border:1px solid var(--gold);background:var(--gold);color:var(--espresso);
  font-family:var(--mono);font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  transition:background .35s,color .35s,transform .22s var(--out);
}
.btn:hover{background:transparent;color:var(--cream)}
.btn:active{transform:scale(.972)}
.btn svg{width:13px;height:13px}

/* more reading */
.more{padding-block:clamp(38px,8vw,64px);border-top:1px solid var(--rule)}
.more .label{
  display:block;font-family:var(--mono);font-size:.6rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:24px;
}
.more-list{display:grid;grid-template-columns:1fr;gap:22px}
@media (min-width:761px){ .more-list{grid-template-columns:repeat(2,1fr);gap:32px} }
.more a{
  display:flex;flex-direction:column;gap:9px;padding-top:18px;
  border-top:1px solid var(--rule-strong);text-decoration:none;transition:border-color .4s;
}
.more a:hover{border-color:var(--gold)}
.more time{font-family:var(--mono);font-size:.58rem;letter-spacing:.15em;text-transform:uppercase;color:var(--ink-3)}
.more b{font-variation-settings:'wdth' 96,'wght' 540;font-size:1.02rem;line-height:1.24;color:var(--ink);letter-spacing:-.018em}
/* a "keep reading" card that points at a service page, not a dated article */
.more .tag{font-family:var(--mono);font-size:.58rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-text)}

/* footer */
.footer{
  background:var(--espresso-deep);color:rgba(242,231,213,.58);
  padding-block:clamp(30px,7vw,54px);
  font-family:var(--mono);font-size:.62rem;letter-spacing:.04em;
}
.footer .shell{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;max-width:1280px}
@media (min-width:861px){ .footer .shell{flex-direction:row;justify-content:space-between;text-align:left} }
.footer a{color:inherit;text-decoration:none}
.footer-brand{display:flex;align-items:center;gap:11px;min-height:44px}
.footer-brand img{width:34px;height:34px;opacity:.85}
.footer-brand b{font-variation-settings:'wdth' 96,'wght' 480;font-size:.86rem;letter-spacing:.13em;color:var(--cream)}
.footer-social{display:flex;gap:8px}
.footer-social a{
  width:44px;height:44px;display:grid;place-items:center;
  border:1px solid var(--rule-dark);transition:border-color .35s,color .35s;
}
.footer-social a:hover{border-color:var(--gold);color:var(--gold)}
.footer-social svg{width:15px;height:15px}

/* ==========================================================================
   SERVICE PAGES ONLY

   The two pages below the home page's service index: /services/*. They are
   the same reading surface as an article, with four extra components.
   ========================================================================== */

/* visible breadcrumb — the JSON-LD one is for Google, this one is for the
   person who landed here from a search and has no idea where "here" is */
.crumbs{
  display:flex;flex-wrap:wrap;align-items:center;gap:0 9px;margin-bottom:8px;
  font-family:var(--mono);font-size:.58rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--ink-3);
}
/* o min-height e o alvo de toque; a linha inteira sobe para 44px e a margem
   inferior encolhe na mesma medida, para o bloco ocupar o mesmo espaco */
.crumbs a{
  display:inline-flex;align-items:center;min-height:44px;
  text-decoration:none;color:var(--ink-3);transition:color .3s;
}
.crumbs a:hover{color:var(--gold-text)}
.crumbs i{font-style:normal;color:var(--rule-strong)}
.crumbs [aria-current]{color:var(--ink-2)}

/* at a glance — the answers someone scans for before reading a word */
.facts{
  margin-top:clamp(28px,6vw,40px);
  display:grid;grid-template-columns:1fr;gap:1px;
  background:var(--rule);border:1px solid var(--rule);
}
@media (min-width:561px){ .facts{grid-template-columns:repeat(2,1fr)} }
.facts > div{background:var(--paper);padding:clamp(15px,3.4vw,21px)}
.facts dt{
  font-family:var(--mono);font-size:.58rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-3);
}
.facts dd{
  margin:7px 0 0;font-size:.93rem;line-height:1.5;color:var(--ink);
  font-variation-settings:'wdth' 100,'wght' 400;
}

/* areas served — a list of places, not a list of arguments, so no diamonds */
.prose .areas{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.prose .areas li{
  margin-top:0;padding:7px 11px;
  font-family:var(--mono);font-size:.58rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-2);
  border:1px solid var(--rule-strong);
}
.prose .areas li::before{display:none}

/* questions — native <details>, same as the home page: it opens with no
   JavaScript, is keyboard-operable for free, and is what a screen reader
   expects. The marker is a plus that becomes a minus by SHRINKING the
   vertical stroke; rotating a minus 90° only gives you back a vertical
   stroke, which was the bug in the home page's first attempt. */
.faq{margin-top:clamp(20px,4vw,28px)}
.faq details{border-top:1px solid var(--rule)}
.faq details:last-of-type{border-bottom:1px solid var(--rule)}
.faq summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:flex-start;gap:14px;
  min-height:44px;padding:16px 0;
  font-size:.99rem;line-height:1.45;color:var(--ink);
  font-variation-settings:'wdth' 100,'wght' 430;
  -webkit-tap-highlight-color:transparent;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--gold-text)}
.faq .mk{position:relative;flex:none;width:11px;height:11px;margin-top:6px}
.faq .mk::before,.faq .mk::after{
  content:"";position:absolute;background:var(--gold-deep);
  transition:transform .34s var(--out);
}
.faq .mk::before{left:0;top:5px;width:11px;height:1px}
.faq .mk::after{left:5px;top:0;width:1px;height:11px}
.faq details[open] .mk::after{transform:scaleY(0)}
.faq .a{padding:0 0 20px 25px;font-size:.95rem;line-height:1.65;color:var(--ink-2)}
.faq .a > * + *{margin-top:12px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms !important;animation-duration:.001ms !important}
}
