/* ------------------------------------------------------------------
   Sente.us hub
   Design: Washi (shared with journal.sente.us)
   ------------------------------------------------------------------ */

:root {
  --seal: #6e0b10;
  --seal-soft: #8a2228;
  --bg: #f6f1e7;
  --surface: #faf6ee;
  --text: #2a2623;
  --muted: #776f66;
  --rule: #e2d8c7;
  --rule-strong: #d3c6b0;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter Variable", system-ui, -apple-system, sans-serif;
  --measure: 46rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 122%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--seal); }

.hub {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Logo -------------------------------------------------------------- */

.hero {
  padding: clamp(2rem, 7vh, 4.5rem) 0 clamp(1.25rem, 3.5vh, 2.25rem);
  text-align: center;
}

.logo { margin: 0; }
.logo img { width: min(100%, 24rem); height: auto; display: inline-block; }

/* Identity & mission ----------------------------------------------- */

.identity {
  min-height: 7rem;
  margin: 0 auto clamp(1.5rem, 4vh, 2.5rem);
  max-width: 46rem;
  text-align: center;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.identity-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}
.identity-roles {
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
}
.identity-roles li { white-space: nowrap; }
.identity-roles li + li::before { content: "·"; margin: 0 0.6em; color: var(--rule-strong); }

/* Narrow screens: no separators (a wrapped line would start with one); space the roles instead */
@media (max-width: 760px) {
  .identity-roles { gap: 0.35rem 1.1rem; }
  .identity-roles li + li::before { content: none; }
}
.identity-statement {
  margin: 0.7rem 0 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

.placeholder {
  min-height: 7rem;
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-label,
.card-status {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.placeholder-label { color: var(--seal); margin: 0; }
.placeholder-note { color: var(--muted); font-style: italic; margin: 0.3rem 0 0; font-size: 0.95rem; }

/* Section buttons --------------------------------------------------- */

.sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.3rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--seal);
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--rule-strong);
  border-top-color: var(--seal-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -12px rgba(42, 38, 35, 0.35);
}

a.card:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
}

.card-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.card.is-soon { border-top-color: var(--rule-strong); cursor: default; }
.card.is-soon .card-name { color: var(--muted); }
.card-status { color: var(--seal); margin-top: 0.45rem; }

/* A block marked "wide" (Links) spans both columns */

.card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.8rem;
}
.card-wide .card-name { font-size: 1.15rem; }
.card-wide .card-status { margin: 0 0 0 auto; }

/* Inner pages (About) ----------------------------------------------- */

.page-header { text-align: center; padding: 2.25rem 1.25rem 0; }
.page-logo img { width: min(70%, 15rem); height: auto; }

.page-main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

.page-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.page-kicker {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0.2rem 0 2rem;
}

.about-block { margin-bottom: 2rem; }

.block-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 0 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.about-block .placeholder { min-height: 4rem; }

.action {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--seal);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.action:hover { background: var(--seal); color: var(--bg); }
.action-note { margin-left: 0.8rem; color: var(--muted); font-size: 0.9rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin: 0.2rem 0; }

.back-link { text-align: center; margin-top: 2.5rem; font-family: var(--font-ui); font-size: 0.75rem; }
.back-link a { color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--seal); }

/* Curriculum vitae (rendered from resume.json) --------------------- */

.cv-status { color: var(--muted); font-style: italic; }
.cv-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 1.6rem 0 0.5rem;
}
.cv-heading:first-child { margin-top: 0.4rem; }
.cv p, .cv li { line-height: 1.55; }
.cv ul { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }
.cv li { margin: 0.2rem 0; }
.cv .cv-list { padding-left: 1.2rem; }
.cv strong { font-weight: 500; }
.cv-entry { margin: 0.9rem 0; }
.cv-title { margin: 0; font-weight: 500; }
.cv-meta { margin: 0.05rem 0 0; color: var(--muted); font-size: 0.92rem; }
.cv-entry > p:not(.cv-title):not(.cv-meta) { margin: 0.2rem 0; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

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

.site-footer {
  max-width: var(--measure);
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 560px) {
  html { font-size: 112.5%; }
  .sections { grid-template-columns: 1fr; gap: 0.75rem; }
  .card { padding: 0.9rem 1.1rem 1rem; }
  .card-name { font-size: 1.25rem; }
}

/* Short desktop screens: keep every block, including Links, on the first screen */

@media (min-width: 561px) and (max-height: 960px) {
  html { font-size: 106%; }
  .hero { padding: 1.5rem 0 1rem; }
  .logo img { width: min(100%, 20rem); }
  .identity, .placeholder { min-height: 5.25rem; }
  .identity { margin-bottom: 1.25rem; }
  .sections { gap: 0.75rem; }
  .card { padding: 0.75rem 1.2rem 0.8rem; }
  .card-status { margin-top: 0.25rem; }
  .card-desc { font-size: 0.9rem; }
  .card-wide { padding-top: 0.6rem; padding-bottom: 0.65rem; }
}
