/*
Theme Name: HCC Home
Author: Human Centered Cities Laboratory
Description: Classic theme for the Human Centered Cities Laboratory.
Version: 2.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hcc-home
*/

:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --rule: #e6e6e6;
  --red: #d4401f;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --edge: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  --serif: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.hcc-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
body.admin-bar .hcc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hcc-header { top: 46px; } }
.hcc-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.hcc-logo { display: block; color: var(--ink); line-height: 0; flex-shrink: 0; }
.hcc-logo svg { width: 132px; height: auto; }
.hcc-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.4rem; }
.hcc-nav a { font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.hcc-nav a:hover, .hcc-nav a.is-current { color: var(--ink); }
@media (max-width: 600px) {
  .hcc-logo svg { width: 104px; }
  .hcc-nav { gap: .2rem 1rem; }
  .hcc-nav a { font-size: .78rem; }
}

/* Hero */
.hcc-hero { position: relative; height: min(78vh, 720px); min-height: 360px; }
.hcc-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hcc-hero__hr {
  position: absolute; top: 1rem; right: var(--edge); margin: 0;
  font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.hcc-hero__title {
  position: absolute; left: var(--edge); bottom: 1.75rem; margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5.75rem); line-height: 1; letter-spacing: -.035em;
}

/* Sections */
.hcc-sec { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hcc-head {
  font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem;
  border-top: 1px solid var(--ink); padding-top: .6rem;
}
.hcc-intro, .hcc-join {
  font-family: var(--serif); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; max-width: 38ch; margin: 0;
}
.hcc-intro { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.hcc-join { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.hcc-meta { font-size: .85rem; color: var(--muted); margin: 1.25rem 0 0; }
.hcc-muted { color: var(--muted); }

/* Ruled rows */
.hcc-rows { list-style: none; margin: 0; padding: 0; }
.hcc-row {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.25rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem;
}
.hcc-row:last-child { border-bottom: 0; }
.hcc-row a { text-decoration: none; transition: color .2s; }
.hcc-sub { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) { .hcc-row { grid-template-columns: 1fr; gap: .2rem; } }

/* Image */
.hcc-ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 21 / 9; border: 1px dashed #cfcfcf; color: #8a8a8a; font-size: .85rem;
}
.hcc-figure { margin: 0; }
.hcc-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.hcc-caption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* Inside pages */
.hcc-page-head { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hcc-page-title {
  font-family: var(--serif); font-weight: 300; margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1;
}
.hcc-content { max-width: 720px; }
.hcc-content h2, .hcc-content h3 { font-family: var(--serif); font-weight: 300; line-height: 1.15; }

/* Footer */
.hcc-footer { margin-top: clamp(4rem, 8vw, 6rem); }
.hcc-footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--ink); padding-top: 1rem; padding-bottom: 1.5rem;
}
.hcc-footer p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.6; }
.hcc-footer a { color: var(--muted); }
.hcc-footer a:hover { color: var(--ink); }
.hcc-footer .hcc-right { text-align: right; }
