/* ============================================================
 * layout.css
 * Page shell, site header, footer, generic section scaffolding.
 * ============================================================ */

/* ---------- shell container ---------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .shell { padding: 0 24px; }
}

/* ---------- site header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-1px);
}
.brand small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
nav.primary a {
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
nav.primary a:hover { color: var(--accent); }
nav.primary a.active { color: var(--ink); }
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.availability .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a;
  position: relative;
}
.availability .pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid #16a34a;
  opacity: .4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.8); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- generic section ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: baseline;
}
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
}
.section-head h2 {
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 22ch;
}
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.section-head .label { padding-top: 6px; }

.section-foot {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .section-foot { grid-template-columns: 1fr; margin-top: 24px; }
}
.section-foot a {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  align-self: start;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}
.section-foot a:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }

/* ---------- now / status panel ---------- */
.now {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 960px) {
  .now { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .now { grid-template-columns: 1fr; }
}
.now .block .label { margin-bottom: 10px; display: block; }
.now .block p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.now .block strong {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ---------- site footer ---------- */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  margin-top: 40px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
@media (max-width: 720px) {
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
footer.site h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; font-size: 14px; }
footer.site li a { color: var(--ink-2); transition: color .15s ease; }
footer.site li a:hover { color: var(--accent); }
footer.site .big {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 40px;
  color: var(--ink);
}
footer.site .big em { font-family: var(--serif); font-style: italic; color: var(--accent); }
footer.site .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  gap: 12px;
}
