/* manliograziano.com — design system from MG CV v5 / Letterhead v5
   Three shades only: #212121 ink, #828282 secondary, #D8D8D8 furniture */

@font-face { font-family: 'Caladea'; src: url('../fonts/caladea-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caladea'; src: url('../fonts/caladea-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caladea'; src: url('../fonts/caladea-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Caladea'; src: url('../fonts/caladea-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('../fonts/carlito-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('../fonts/carlito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('../fonts/carlito-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('../fonts/carlito-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --ink: #212121;
  --mid: #828282;
  --rule: #D8D8D8;
  --accent: #DD4E27; /* the calling-card vermilion — hover states only */
  --serif: 'Caladea', Cambria, Georgia, serif; /* Caladea leads everywhere (Nicole, 2026-08-26) */
  --sans: Calibri, 'Carlito', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.4rem; }

img { max-width: 100%; height: auto; }

/* Masthead */
header.site { text-align: center; padding: 3rem 1rem 0; }
/* Lockup rule — mirrors print (card v8): name → hairline → subtitle.
   Border sits on .site-name; the inner a's negative margin trims the trailing
   letterspace so the rule ends exactly at the final O. */
.site-name {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-bottom: 0.64rem;
  border-bottom: 1px solid var(--rule);
}
.site-name a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  margin-right: -0.22em;
  margin-bottom: -0.16em; /* swallow the caps' unused descender space */
  transform: translateY(3px); /* optical nudge (Nicole) — shifts the glyphs only; rule and subtitle stay put */
}
.site-sub {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.33rem; /* tuned so the visible gaps above and below the rule are equal */
}

/* Nav — full-width rules, condensed name appears on scroll */
nav.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
nav.site .brand {
  flex: 0 1 0%;
  min-width: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: flex-grow 0.35s ease, opacity 0.3s ease;
}
nav.site.scrolled .brand { flex-grow: 1; opacity: 1; pointer-events: auto; }
.nav-spacer { display: none; }
nav.site ul {
  list-style: none;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 1.9rem;
  row-gap: 0.2rem;
  padding: 0.75rem 0;
  transition: flex-grow 0.35s ease;
}
nav.site.scrolled ul { flex-grow: 0; }
nav.site a {
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
}
nav.site a:hover { color: var(--accent); }
nav.site a[aria-current="page"] { color: var(--ink); }

/* Main */
main { padding: 2.8rem 0 3.5rem; }

h1.page {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.2rem;
}

h2.sect {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.6rem 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}
h2.sect:first-child { margin-top: 0; }

p { margin: 0.85rem 0; }
p.note, .credit { color: var(--mid); font-size: 0.9rem; }

a { color: var(--ink); }
main a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
main a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Entry lists (books, media, press) */
.entry { margin: 1.35rem 0; }
.entry.has-cover { display: flex; gap: 1.2rem; align-items: flex-start; }
.entry.has-cover .thumb { flex: 0 0 64px; }
.entry.has-cover .thumb img {
  display: block;
  width: 64px;
  height: auto;
  border: 1px solid var(--rule);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.entry.has-cover .thumb:hover img, .entry.has-cover .thumb:focus-visible img { filter: none; }
.entry .t { font-family: var(--serif); font-size: 1.08rem; }
.entry .t em, .booktitle { font-style: italic; }
.entry .m { color: var(--mid); font-size: 0.92rem; }
.entry .links { font-size: 0.92rem; }
.entry .links a { color: var(--mid); }
.entry .links a:hover { color: var(--accent); }

/* Pull quotes (press) */
blockquote {
  margin: 1.6rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
blockquote .src {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Home — front-page spread */
.wrap-wide { max-width: 60rem; margin: 0 auto; padding: 0 1.4rem; }

.spread {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 0 2.4rem;
  align-items: start; /* divider ends where the rail's content ends */
}
.spread .col-right {
  border-left: 1px solid var(--rule);
  padding-left: 2.4rem;
  padding-bottom: 1.8rem; /* divider extends past the rail's content */
}

.portrait {
  display: block;
  width: 100%;
  margin: 0 0 0.4rem;
  filter: grayscale(100%);
}
.lede { font-family: var(--serif); font-size: 1.38rem; line-height: 1.5; }

/* Top alignment across the spread: photo top, lede cap, and rubric cap sit level */
.spread .lede { margin-top: 0; }
.spread .col-right h2.rubric:first-child { margin-top: 0.18rem; }

.inset {
  float: left;
  width: min(215px, 45%);
  margin: 0.42rem 1.5rem 0.5rem 0;
}
.inset img { display: block; width: 100%; filter: grayscale(100%); }
.inset figcaption { color: var(--mid); font-size: 0.78rem; margin-top: 0.3rem; }

h2.rubric {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 1.9rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
h2.rubric:first-child { margin-top: 0; }

.item { margin: 0.9rem 0; }
.item .t { font-family: var(--serif); font-size: 1.02rem; line-height: 1.4; }
.item .t a { text-decoration: none; }
.item .t a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.item .m { color: var(--mid); font-size: 0.85rem; margin-top: 0.15rem; }

.more {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.more a { color: var(--mid); text-decoration: none; }
.more a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .spread { grid-template-columns: 1fr; }
  .spread .col-right { border-left: none; padding-left: 0; padding-bottom: 0; border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.6rem; }
  .spread-rule { grid-template-columns: 1fr; margin-top: 2.2rem; }
  .spread-rule .seg-right { display: none; }
}

/* CV page */
.cv-entry { margin: 0.9rem 0; }
.cv-entry .role { font-weight: 700; }
.cv-entry .org { }
.cv-entry .yrs { color: var(--mid); font-size: 0.92rem; }
.dl { text-align: center; margin: 2rem 0 0; }
.dl a {
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid var(--rule);
  padding: 0.55rem 1.2rem;
  margin: 0.3rem 0.4rem;
  text-decoration: none;
}
.dl a:hover { color: var(--accent); border-color: var(--accent); }

/* Split rule under the two columns — each segment matches its column's text width */
.spread-rule {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 0 2.4rem;
  margin-top: -0.6rem; /* rules tuck up inside the divider's overrun */
}
.spread-rule span { border-top: none; } /* segments removed 2026-08-25 (Nicole: cleaner without); spacing preserved */
.spread-rule .seg-right { margin-left: 2.4rem; } /* mirrors the rail's padding past the divider */

.bookband {
  padding-top: 2.2rem;
}
.covers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 1.8rem;
  margin-top: 1.2rem;
}
.cover {
  display: block;
  width: 117px;
  text-decoration: none;
  color: var(--ink);
}
/* Forthcoming card — a miniature jacket in the house style */
.forth {
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.5rem;
}
.forth .by {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.forth .ft {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
}
.cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
  border: 1px solid var(--rule);
}
.cover:hover img, .cover:focus-visible img { filter: none; }
.cover .cap {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.5rem;
}
.cover .yr { display: block; font-family: var(--sans); font-style: normal; font-size: 0.78rem; color: var(--mid); }
/* placeholder until real cover images arrive */
.cover .ph {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
  box-sizing: border-box;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--mid);
  transition: color 0.35s ease, border-color 0.35s ease;
}
.cover:hover .ph { color: var(--ink); border-color: var(--mid); }
@media (max-width: 560px) {
  .covers { gap: 1.1rem; }
  .cover { width: calc(33.33% - 0.75rem); min-width: 96px; }
}

/* Contact form */
.cform { max-width: 34rem; margin: 1.6rem auto 0; text-align: left; }
.cform label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 1.1rem 0 0.3rem;
}
.cform input, .cform textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--rule);
  padding: 0.6rem 0.75rem;
  border-radius: 0;
  -webkit-appearance: none;
}
.cform input:focus, .cform textarea:focus {
  outline: none;
  border-color: var(--mid);
}
.cform textarea { min-height: 9rem; resize: vertical; }
.cform button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--mid);
  padding: 0.6rem 1.6rem;
  margin-top: 1.4rem;
  cursor: pointer;
}
.cform button:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.cform button:disabled { color: var(--mid); border-color: var(--rule); background: #ffffff; cursor: default; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.ok { color: var(--ink); font-family: var(--serif); font-style: italic; }
.form-status.err { color: var(--ink); }
.hp { position: absolute; left: -5000px; }

/* Footer — full-width rule, simple copyright */
footer.site {
  border-top: 1px solid var(--rule);
  margin: 0 0 2.5rem;
  padding: 1rem 1.4rem 0;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--mid);
}

@media (max-width: 640px) {
  nav.site .brand, .nav-spacer { display: none; }
  .nav-in { justify-content: center; }
  nav.site ul { justify-content: center; }
}
@media (max-width: 480px) {
  nav.site ul { gap: 0.15rem 1.1rem; }
  body { font-size: 1rem; }
}
