/* ==========================================================================
   TransLatino TransLation — site styles
   Colors and type match the original Webflow design.
   ========================================================================== */

:root {
  --red: #d8320b;            /* headings, accents */
  --teal: #007693;           /* footer, announcement, current nav link */
  --text: #363636;
  --nav-bg: #ddd;
  --card-red: rgba(255, 49, 0, .9);
  --card-blue: rgba(2, 110, 143, .9);
  --card-green: rgba(83, 129, 47, .9);
  --tan: #c9bfad;            /* shows while the painting loads */
  --painting: url("../images/painting.webp");
  --header-h: 80px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

h1, h2, h3, h4, h5, h6 { color: var(--red); font-weight: bold; margin: 20px 0 10px; }
h1 { font-size: 38px; line-height: 44px; }
h2 { font-size: 40px; line-height: 1.4; }
h3 { font-size: 24px; line-height: 30px; }
h4 { font-size: 18px; line-height: 24px; }
p { margin: 0 0 10px; }
figure { margin: 0; }
blockquote { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.container.narrow { max-width: 940px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* the painted canvas used for bands, stripes and section backgrounds */
.painted, .paint-band, .paint-stripe {
  background-color: var(--tan);
  background-image: var(--painting);
  background-position: 0 0;
  background-attachment: fixed;
}
@media (min-width: 1280px) {
  .paint-band, .paint-stripe { background-size: contain; }
}

/* ---------- header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  margin: 0 4% 0 5%;
}
.brand { display: block; flex: 0 1 346px; }
.brand img { display: block; width: 346px; margin-top: 9px; }

.site-nav { display: flex; margin-top: 9px; }
.site-nav a {
  padding: 20px 16px;
  font-size: 15px; color: #222; text-decoration: none;
}
.site-nav a:hover { background: rgba(0, 0, 0, .05); }
.site-nav a[aria-current="page"] { color: var(--teal); }

.menu-toggle {
  display: none;
  width: 52px; height: 52px; padding: 14px;
  background: transparent; border: 0; cursor: pointer;
}
.menu-toggle .bar { display: block; height: 3px; margin: 4px 0; background: #222; }
.menu-toggle[aria-expanded="true"] { background: #c8c8c8; }

@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: -6%; right: -5%;
    flex-direction: column; margin: 0;
    background: #c8c8c8; text-align: center;
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 479px) {
  :root { --header-h: 64px; }
  .brand img { width: 100%; max-width: 280px; margin-top: 0; }
}

/* ---------- page titles (inner pages) ---------- */
.page-title { padding: 20px 30px; }
.page-title h1, .tagline h1 {
  text-align: center;
  font-size: clamp(24px, 3vw, 60px);
  line-height: 1.34;
}
.page-title .kicker { text-align: center; margin: 20px 0 0; font-size: clamp(24px, 3vw, 60px); line-height: 1.34; font-weight: bold; }
.page-title .kicker a { color: var(--red); text-decoration: none; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { display: block; width: 100%; }
.tagline { padding: 20px 30px; }

/* --- announcement + featured book over a slanted painted band --- */
.featured { position: relative; padding-bottom: 40px; }
.featured-band {
  position: absolute; left: 0; right: 0; top: 40px;
  height: 490px;
  clip-path: polygon(100% 0%, 100% 70%, 0% 100%, 0% 30%);
}
.featured-inner {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  max-width: 1280px; margin: 0 auto; padding: 0 30px;
  perspective: 1087px; perspective-origin: 100%;
}
.announcement {
  flex: 1; max-width: 500px;
  margin-top: 260px; padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .95);
  border: 10px solid var(--red);
}
.announcement h2 { color: var(--teal); margin: 20px 0; }
.announcement-lead { color: var(--red); font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
.announcement-lead strong { display: block; margin-bottom: 24px; }
.have-a-look {
  display: inline-flex; flex-direction: column; align-items: center;
  color: var(--teal); font-size: 20px; line-height: 20px;
  text-decoration: none; text-transform: uppercase;
  margin-bottom: 4px;
}
.have-a-look svg { margin-top: 14px; }
.have-a-look:hover { text-decoration: underline; }
.featured-book {
  flex: 1; max-width: 41%;
  margin: 10px auto 0;
  border: 10px solid #fff;
  box-shadow: 22px 17px 0 -4px rgba(0, 0, 0, .66);
  transform: scale(1.2) rotateX(11deg) rotateY(-21deg) rotateZ(7deg);
}

/* --- latest news --- */
.latest-news { padding: 60px 0 10px; }
.news-card {
  display: flex;
  margin: 0 15vw 50px 0;
  padding: 20px;
  background: #fff;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .54);
}
.news-card:nth-of-type(even) { margin: 0 0 50px 15vw; }
.news-media { width: 20%; flex: none; }
.news-media img { width: 85%; }
.news-body { flex: 1; }
.news-teaser { font-size: 20px; line-height: 1.4; margin-bottom: 32px; }

/* --- thin painted diagonal stripes between sections --- */
.paint-stripe { position: relative; height: 490px; pointer-events: none; }
.stripe-a { clip-path: polygon(100% 40%, 100% 43%, 0% 15%, 0% 10%); margin: -26px 0 -306px; }
.stripe-b { clip-path: polygon(100% 70%, 100% 73%, 0% 15%, 0% 10%); margin: -35px 0 -218px; }
.stripe-c { clip-path: polygon(100% 40%, 100% 43%, 0% 15%, 0% 10%); margin: 20px 0 -324px; }
.about, .services, .awards, .education { position: relative; }

/* --- about --- */
.about-stage {
  display: grid; grid-template-columns: .75fr .25fr; gap: 16px;
  min-height: 700px;
  background: url("../images/candy-store-sepia.webp") 50% 0 / cover;
  perspective: 427px;
}
.bio-card {
  justify-self: center; align-self: start;
  max-width: 55%;
  margin: 60px 0;
  padding: 20px;
  background: #fff;
  border: 23px solid #4b3507;
  border-radius: 20px;
  transform: rotateY(9deg) rotateZ(-3deg);
}
.bio-card h3 { text-align: center; margin-top: 0; }
.bio-scroll { max-height: 532px; overflow: auto; }
.bio-scroll p { margin-bottom: 20px; }
.bio-scroll .signature { margin: 40px 0 10px; }
.headshot { justify-self: end; align-self: start; width: 100%; text-align: center; }
.headshot img {
  display: block; width: 17vw; max-width: 85%;
  margin: 60px auto 10px;
  border: 1px solid #fff;
}
.headshot figcaption {
  max-width: 85%; margin: 0 auto;
  color: #fff; font-size: max(14px, 1.1vw); font-style: italic; font-variant: small-caps;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .86);
}

/* --- education / services --- */
.education { padding: 138px 0 0; }
.education .container, .services .container, .awards .container { padding-bottom: 20px; }
.ring-list { list-style: none; margin: 0 0 10px; padding: 0; }
.education .ring-list { font-weight: bold; }
.ring-list li { position: relative; padding-left: 13px; }
.ring-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 7px; height: 7px; border: 1px solid var(--red); border-radius: 50%;
}
.services .ring-list { margin: 20px 0 10px; }

/* --- awards --- */
.awards-text { max-width: 500px; }
.awards-img { width: 444px; }

/* --- praise cards on a painted band --- */
.praise { position: relative; margin-top: 110px; padding-bottom: 60px; perspective: 485px; }
.praise-band {
  position: absolute; left: 0; right: 0; top: 0;
  height: 550px;
  clip-path: polygon(100% 0%, 100% 30%, 0% 60%, 0% 30%);
}
.praise-stripe { /* thin second stripe crossing behind the cards */
  position: absolute; left: 0; right: 0; top: -34px;
  height: 550px;
  clip-path: polygon(100% 90%, 100% 100%, 0% 20%, 0% 10%);
}
.praise-inner { position: relative; transform: rotateX(6deg); padding-top: 1px; }
.praise-heading { font-size: 38px; line-height: 44px; font-style: italic; }
.praise-cards { display: flex; justify-content: space-between; gap: 20px; }
.praise-card {
  flex: 1; max-width: 28%; min-height: 370px;
  padding: 0 24px;
  border: 6px solid #ebebeb;
  color: #ececec; font-weight: bold;
}
.praise-card.red { background: var(--card-red); }
.praise-card.blue { background: var(--card-blue); }
.praise-card.green { background: var(--card-green); }
.praise-card h3 { color: #ececec; font-size: 22px; font-weight: 600; margin: 20px 0 12px; }
.praise-card p { margin-bottom: 20px; }
.praise-card footer { margin-bottom: 20px; }
.praise-card .who { text-transform: uppercase; }

/* --- contact --- */
.contact {
  padding: 60px 0;
  background: var(--tan) var(--painting) 0 0 / auto fixed;
}
@media (min-width: 1280px) { .contact { background-size: contain; } }
.contact-inner { background: #fff; padding-top: 1px; padding-bottom: 20px; }
.contact-panel { background: #e4e0e0; padding: 74px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 8px 12px;
  font: inherit; color: #333;
  background: #fff; border: 1px solid transparent;
}
.contact-form input { height: 38px; }
.contact-form textarea { grid-column: 1 / -1; min-height: 58px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { background: #eee; border-color: #000; outline: none; }
.contact-form button {
  justify-self: start;
  padding: 9px 15px;
  font: inherit; color: #fff;
  background: #3898ec; border: 0; cursor: pointer;
}
.contact-form button:hover { background: #2a86d6; }
.form-status { margin: 16px 0 0; padding: 20px; }
.form-done { background: #dddddd; text-align: center; }
.form-fail { background: #ffdede; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal); padding: 20px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 5%;
}
.footer-inner img { width: 75px; }
.footer-inner p { margin: 10px 0; color: #d6d6d6; font-size: 18px; line-height: 24px; font-weight: bold; }

/* ==========================================================================
   Publications
   ========================================================================== */
.pub-categories { padding: 60px 0; }
.pub-wrap { max-width: none; margin: 0 15%; }
.pub-category { margin-bottom: 20px; }
.pub-category summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; padding: 12px 40px 12px 10px; gap: 16px;
  background: rgba(255, 255, 255, .9);
  cursor: pointer; list-style: none;
}
.pub-category summary::-webkit-details-marker { display: none; }
.pub-category summary h2 { margin: 0; font-size: 38px; line-height: 44px; }
.chevron {
  width: 14px; height: 14px; flex: none;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-4px) rotate(45deg);
  transition: transform .2s;
}
.pub-category[open] .chevron { transform: translateY(4px) rotate(-135deg); }

.pub-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;
  align-items: start;
  max-width: 940px; margin: 0 auto; padding: 30px 10px 0;
}
.pub-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  margin-bottom: 50px; padding: 20px;
  background: #fff;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .47);
}
.pub-cover { width: 200px; height: 200px; object-fit: cover; }
.pub-text { max-width: 100%; overflow-wrap: anywhere; }
.pub-text h3 { font-size: 32px; line-height: 40px; font-weight: 600; margin: 0 0 10px; overflow-wrap: break-word; }
.pub-teaser { font-size: 20px; line-height: 28px; font-style: italic; }
.pub-text .rich-text { font-size: 16px; line-height: 1.4; }
.pub-text .rich-text h4 { color: inherit; font-size: 16px; font-style: italic; font-weight: normal; margin: 0 0 10px; }
.pub-text .rich-text h3 { font-size: 20px; line-height: 1.3; }

/* ==========================================================================
   Text pages: Ten Rules, archive, Coloquio, posts
   ========================================================================== */
.text-page { padding: 20px 0 60px; }
.lead { color: var(--red); font-size: 30px; line-height: 1.4; font-weight: bold; margin: 20px 0 30px; }
.rules { padding-left: 20px; line-height: 20px; }
.rules li { margin-bottom: 10px; }
.archive-list { color: #666; font-size: 13px; line-height: 21px; }
.archive-list p { margin-bottom: 20px; }
.back-link { margin-top: 30px; }

.intro-text p { line-height: 25px; }

.post-list { margin-bottom: 60px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column;
  min-height: 300px; padding: 10px;
  border: 1px solid #bebbbb;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .55);
}
.post-card-link { text-decoration: none; }
.post-card img { width: 100%; max-height: 23rem; object-fit: cover; }
.post-card h2 { font-size: 24px; line-height: 30px; margin: 20px 0 10px; }
.post-card p { color: #585858; flex: 1; }
.read-more { align-self: flex-end; }

.post { padding: 60px 0; }
.post-photo { display: block; width: 40%; margin: 0 auto 40px; }
.post h1 { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .featured-band { height: 300px; }
  .featured-inner { flex-wrap: wrap; gap: 40px; }
  .announcement { margin-top: 120px; max-width: none; flex-basis: 100%; }
  .featured-book { max-width: 50%; transform: none; margin-top: 0; }
  .about-stage { grid-template-columns: 1fr; perspective: none; padding: 20px; }
  .bio-card { max-width: 100%; transform: none; margin: 20px 0 0; }
  .headshot { justify-self: center; }
  .headshot img { width: 220px; margin-top: 10px; }
  .headshot figcaption { font-size: 16px; }
  .praise-cards { flex-wrap: wrap; }
  .praise-card { max-width: none; flex-basis: 100%; min-height: 0; padding-bottom: 4px; }
  .praise-inner { transform: none; }
  .pub-wrap { margin: 0 5%; }
}

@media (max-width: 767px) {
  h2 { font-size: 32px; }
  .news-card, .news-card:nth-of-type(even) { margin: 0 0 40px; flex-direction: column; gap: 10px; }
  .news-media { width: 40%; }
  .news-media img { width: 100%; }
  .pub-grid { grid-template-columns: minmax(0, 1fr); padding: 20px 0 0; }
  .pub-category summary h2 { font-size: 24px; line-height: 30px; }
  .contact-panel { padding: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .awards-img { width: 100%; }
  .post-photo { width: 80%; }
  .paint-stripe { height: 260px; }
  .stripe-a { margin: -20px 0 -160px; }
  .stripe-b { margin: -20px 0 -100px; }
  .stripe-c { margin: 0 0 -160px; }
  .education { padding-top: 40px; }
  .praise { margin-top: 40px; }
}

@media (max-width: 479px) {
  .container { padding: 0 16px; }
  .announcement { margin-top: 80px; }
  .announcement-lead { font-size: 20px; }
  .featured-book { max-width: 70%; }
  .bio-card { border-width: 12px; padding: 14px; }
  .praise-heading { font-size: 28px; line-height: 34px; }
  .footer-inner p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
