/* claritasz.com · layout. Brand tokens come from brand.css. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--cz-font-text); font-size: 17px; line-height: 1.65; color: var(--cz-ink); background: var(--cz-paper); }

a { color: var(--cz-green-1); text-underline-offset: 3px; }
a:hover { color: var(--cz-green-3); }
a:focus-visible { outline: 3px solid var(--cz-yellow-2); outline-offset: 2px; border-radius: 4px; }
code, .code { font-family: var(--cz-font-code); font-size: .92em; }

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

h1, h2, h3 { font-family: var(--cz-font-heading); font-weight: 600; line-height: 1.15; color: var(--cz-green-3); }
h2 { font-size: 1.75rem; margin-bottom: .5rem; }
h3 { font-size: 1.15rem; margin-bottom: .2rem; }
p { max-width: var(--cz-measure); }

/* Hero */
.hero { background: var(--cz-green-surface); color: #fff; padding-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(1rem, 3vw, 1.75rem); }
.logo { display: block; line-height: 0; }
.logo img { height: var(--cz-logo-h); width: auto;
  margin: calc(var(--cz-logo-h) * -0.233) 0 calc(var(--cz-logo-h) * -0.285) calc(var(--cz-logo-h) * -0.170); }
.lang { display: flex; gap: .25rem; font-size: .95rem; }
.lang a, .lang span { color: #fff; text-decoration: none; padding: .3rem .65rem; border-radius: 6px; }
.lang span[aria-current] { background: var(--cz-yellow-2); color: var(--cz-green-3); font-weight: 600; }
.lang a:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero h1 { color: #fff; font-size: clamp(1.625rem, 4.2vw, 2.6rem); max-width: 19em; margin: clamp(1.8rem, 5vw, 3rem) 0 .9rem; text-wrap: balance; }
.hero p { color: var(--cz-on-green); font-size: clamp(1.03rem, 1.6vw, 1.2rem); max-width: 44em; }

/* Sections: one quiet label per group, the tiles carry the content. */
.section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.section + .section { padding-top: clamp(1.75rem, 4vw, 2.5rem); }
.section h2 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink-soft); margin-bottom: .85rem; }
.hero .crumb { margin: clamp(1.4rem, 4vw, 2.4rem) 0 -1rem; font-size: .95rem; }
.hero .crumb a { color: var(--cz-yellow-2); text-decoration: none; }
.hero .crumb a::before { content: "‹ "; }
.hero .crumb a:hover { color: var(--cz-yellow-1); text-decoration: underline; }

/* Edition archive: one line per edition, the perspectives as plain links. */
.editions { list-style: none; display: grid; gap: .6rem; }
.editions li { border-left: 5px solid var(--cz-green-1); background: var(--cz-paper-soft); border-radius: 6px; padding: .7rem 1.2rem; font-size: .95rem; line-height: 1.7; }
.editions a { white-space: nowrap; }
.editions .edition { font-family: var(--cz-font-code); color: var(--cz-green-3); margin-right: .6rem; }

.section .note { color: var(--cz-ink-soft); font-size: .95rem; margin: -.5rem 0 .85rem; }


/* Tiles. Yellow marks what appears on a rhythm (Reports); green is everything else. */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; text-decoration: none; color: inherit; border-left: 5px solid var(--cz-green-1); background: var(--cz-paper-soft); border-radius: 6px; padding: 1rem 1.2rem; }
.tile:hover { background: #EAEFEB; color: inherit; }
.tile h3 { margin-bottom: .15rem; }
.tile p { color: var(--cz-ink-soft); font-size: .95rem; line-height: 1.55; }
.tile .where { font-family: var(--cz-font-code); font-size: .85rem; color: var(--cz-green-1); margin-top: .5rem; }
.tile .signals { list-style: none; margin: .55rem 0 0; font-size: .92rem; line-height: 1.45; color: var(--cz-ink); }
.tile .signals li { padding-left: 1rem; position: relative; margin-top: .25rem; }
.tile .signals li::before { content: ""; position: absolute; left: 0; top: .55em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cz-yellow-3); }
.tile--domain { border-left-color: var(--cz-yellow-3); }

.status { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: .05rem .5rem; border-radius: 999px; margin-bottom: .45rem; }
.status--live { background: var(--cz-green-1); color: #fff; }

/* About: text and portrait share one height; the portrait fills it. */
.about h2 { margin-bottom: 1.2rem; }
.about + .section { padding-top: clamp(2.75rem, 6vw, 3.75rem); }
.about-body { display: grid; grid-template-columns: 1fr 30%; gap: 2rem; align-items: stretch; }
.about-body > div p + p { margin-top: .8rem; }
.about-body > div p:first-child { margin-top: -.35em; }
.about-body > div p:last-child { margin-bottom: -.35em; }
.about-body figure { order: 2; position: relative; }
.about-body img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--cz-radius); display: block; }
.about-body figcaption { position: absolute; top: 100%; left: 0; margin-top: .35rem; font-size: .78rem; color: var(--cz-ink-soft); }
@media (max-width: 700px) {
  .about-body { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-body figure { order: 0; max-width: 320px; }
  .about-body img { height: auto; }
  .about-body > div p:first-child, .about-body > div p:last-child { margin: 0; }
}

/* Footer */
footer { background: var(--cz-green-3); color: var(--cz-on-green); font-size: .9rem; padding: 2rem 0; margin-top: clamp(3rem, 8vw, 5rem); }
footer a { color: var(--cz-yellow-2); }
footer a:hover { color: var(--cz-yellow-1); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
footer .tagline { font-family: var(--cz-font-heading); font-weight: 600; color: #fff; }
main { flex: 1; }
