/*
  Century Expanded is required per the design.
  No licensed font file is present in /fonts yet, so these @font-face rules
  point at the expected filenames. Until a licensed file is added, browsers
  fall back to the serif stack below (Georgia is the closest common preview
  face). This is an explicit, temporary preview fallback — not a substitution.
*/
@font-face {
  font-family: "Century Expanded";
  src: url("fonts/CenturyExpanded.woff2") format("woff2"),
       url("fonts/CenturyExpanded.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --bg: #ffffff;
  --line: 1px solid #000000;
  --pad-x: clamp(0.5rem, 2.2vw, 1.75rem);
  --pad-y: clamp(0.4rem, 1.6vh, 1rem);
  --serif-fallback: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Century Expanded", var(--serif-fallback);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden; /* safety net; layout is sized to fit without scrolling */
}

/* Full-viewport frame */
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* progressive enhancement where supported */
  max-height: 100vh;
  width: 100vw;
  border-top: var(--line);
}

/* Horizontal bands stack top-to-bottom and share one column grid,
   so the vertical divider stays perfectly aligned across the page. */
.band {
  display: grid;
  grid-template-columns: 29% 71%;
  min-height: 0;
}

/* Continuous vertical rule between the two columns */
.col--left {
  border-right: var(--line);
}

.col {
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
}

/* ---- Header band ---- */
.band--header {
  flex: 0 0 auto;
  border-bottom: var(--line);
}

.band--header .col {
  align-items: center;
}

.name {
  font-weight: 400;
  font-size: clamp(0.6rem, 2.5vw, 1.75rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- Body band (fills available height) ---- */
.band--body {
  flex: 3 1 auto;
  min-height: 0;
}

.band--body .col--left {
  flex-direction: column;
  padding: 0; /* portrait + rows manage their own spacing */
}

.band--body .col--right {
  padding: 0;
}

.portrait {
  padding: clamp(0.4rem, 1.4vh, 1rem) var(--pad-x);
  display: flex;
  justify-content: center;
}

.portrait img {
  width: min(100%, clamp(72px, 20vh, 200px));
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.rows {
  list-style: none;
}

.row {
  border-top: var(--line);
  padding: clamp(0.3rem, 1.3vh, 0.85rem) var(--pad-x);
  text-align: center;
  font-size: clamp(0.72rem, 2.4vw, 1.2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ---- Contact band ---- */
.band--contact {
  flex: 2 1 auto;
  min-height: 0;
  border-top: var(--line);
}

.band--contact .col {
  align-items: flex-start;
}

.label,
.prompt {
  font-size: clamp(0.66rem, 2vw, 1.05rem);
  line-height: 1.3;
  font-weight: 400;
}

/* ---- Footer band ---- */
.band--footer {
  flex: 0 0 auto;
  border-top: var(--line);
}

.band--footer .col {
  align-items: center;
}

.footer-text {
  font-size: clamp(0.62rem, 1.9vw, 1rem);
  letter-spacing: 0.01em;
}
