/* Aquinas Institute. Sizes and colors are measured from the Wix site. */
:root {
  --accent: #917237;          /* gold: links, current page */
  --accent-dark: #785e2e;
  --red: #8b0000;
  --page: #f5f5f5;
  --paper: #fafafa;
  --cream: #f2f3df;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: Raleway, "Helvetica Neue", Arial, sans-serif;
  --avenir: "Avenir Light", Avenir, "Avenir Next", "Nunito Sans", sans-serif;
  --futura: Jost, Futura, "Century Gothic", sans-serif;
  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { background: var(--page); color: #000; font: 400 15px/1.4 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; }

/* ---- header ---- */
.site-header { display: flex; align-items: center; gap: 24px; height: 95px; padding: 0 72px; background: #fbfbfb; position: relative; z-index: 20; }
.site-header .logo img { display: block; width: 177px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 6px; }
.site-nav > ul > li { position: relative; }
.site-nav a { display: block; padding: 0 12px; line-height: 50px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; padding: 6px 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); text-align: center; }
.site-nav .sub a { line-height: 40px; padding: 0 18px; }
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: block; }
.site-search { display: flex; align-items: center; margin-left: 90px; }
.site-search button { border: 0; background: none; padding: 4px; cursor: pointer; color: #000; display: flex; }
.site-search input { width: 110px; border: 0; border-bottom: 1px solid transparent; background: none; font: inherit; padding: 8px 4px; }
.site-search input:focus { outline: 0; border-bottom-color: #c7c7c7; }
.social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.social a { display: flex; color: inherit; }
.site-header .social { margin-left: 24px; }
.menu-toggle { display: none; }

/* ---- footer ---- */
.site-footer { background: #000; color: #fff; padding: 66px 20px 26px; }
.site-footer .inner { max-width: 910px; margin: 0 auto; }
.site-footer h2 { font-size: 37px; line-height: 1.2; margin-bottom: 18px; }
.subscribe label { display: block; font-size: 15px; line-height: 1; margin-bottom: 6px; }
.subscribe .row { display: flex; }
.subscribe input[type=email] { flex: 1; min-width: 0; height: 50px; padding: 3px 3px 3px 21px; background: #000; color: #fff; border: 1px solid #fff; border-right: 0; font: inherit; border-radius: 0; }
.subscribe button { width: 195px; height: 50px; background: transparent; color: #fff; border: 1px solid #fff; font: 700 15px var(--sans); cursor: pointer; border-radius: 0; }
.subscribe button:hover { background: #fff; color: #000; }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 62px; }
.site-footer .bottom p { margin: 0; font: 10px var(--helv); }

/* ---- shared pieces ---- */
.band-title { text-align: center; font-size: 37px; line-height: 51.8px; padding: 40px 20px 26px; }
.band-title.big { font-size: 51px; line-height: 1.2; padding: 30px 20px 18px; }
.btn { display: inline-block; min-width: 165px; padding: 9px 22px; border-radius: 10px; color: #fff; text-align: center; text-decoration: none; font: 300 18px/22px var(--avenir); letter-spacing: 0.9px; box-shadow: 2.83px 2.83px 5px #000; }
.btn.dark { background: #282626; }
.btn.red { background: var(--red); min-width: 230px; }
.btn:hover { filter: brightness(1.25); }

/* ---- home ---- */
.hero { position: relative; height: 625px; overflow: hidden; background: #2b2f3a; }
.hero .slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; visibility: hidden; transition: opacity 0.7s, visibility 0.7s; }
.hero .slide.on { opacity: 1; visibility: visible; }
.hero .slide { padding-top: 60px; }   /* the text box sits in the middle; the button hangs below it */
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0 0 3px; border: 0; background: #fff; color: #000; font: 22px/1 var(--sans); cursor: pointer; }
.hero .arrow.prev { left: 100px; }
.hero .arrow.next { right: 100px; }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 18px; display: none; justify-content: center; gap: 8px; }
.hero .dots button { width: 8px; height: 8px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.hero .dots button.on { background: #fff; }
.hero .slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-box { position: relative; width: 862px; max-width: calc(100% - 40px); min-height: 130px; display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.67); box-shadow: 5.14px 6.13px 10px rgba(0, 0, 0, 0.6); }
.hero-box h1, .hero-box h2 { font: 400 32px/44.8px var(--sans); text-align: center; }
.hero .btn { position: relative; }
.strip { height: 369px; display: flex; align-items: center; justify-content: center; background: #2b2f3a url(/media/9cabc9_ea4bb29eb9404c81b624492c0779ce10-1600.webp) center / cover fixed; }
.strip-box { width: 568px; max-width: calc(100% - 40px); min-height: 234px; padding: 62px 20px 24px; text-align: center; background: rgba(255, 255, 255, 0.85); border: 1px solid #000; }
.strip-box h2 { font-size: 51px; line-height: 1.2; }
.strip-box .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 59px; margin-top: 30px; }

/* ---- post cards ---- */
.cards { display: grid; justify-content: center; gap: 32px; grid-template-columns: repeat(4, 231px); padding: 0 20px 24px; }
.cards.wide { grid-template-columns: repeat(4, 289px); gap: 46px; padding-top: 20px; }
.card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #333; color: #fff; text-decoration: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover img { transform: scale(1.05); }
.card .shade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: rgba(0, 0, 0, 0.55); }
.card .meta { position: absolute; top: 28px; left: 24px; right: 24px; font-size: 12px; line-height: 1.45; }
.card .title { font: 300 26px/1.2 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .rule { position: absolute; left: 24px; right: 24px; bottom: 60px; border-top: 1px solid rgba(255, 255, 255, 0.8); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 20px 50px; }
.pager a, .pager span, .pager button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: none; color: #000; font: 16px var(--sans); text-decoration: none; cursor: pointer; }
.pager .here { color: var(--accent); }
.pager .off, .pager button:disabled { color: #aaa; cursor: default; }
.pager .first, .pager .previous, .pager .next, .pager .last, .pager .off, .pager button[aria-label] { font-size: 24px; }

/* ---- blog lists and posts ---- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 0 40px; padding: 26px 73px 10px; }
.cat-nav a { line-height: 40px; text-decoration: none; }
.cat-nav a:hover, .cat-nav a[aria-current] { color: var(--accent-dark); }
.page-post { background: #fbfbfb; }
.page-post .cat-nav, .post, .recent, .comments { width: 940px; max-width: calc(100% - 24px); margin-left: auto; margin-right: auto; }
.page-post .cat-nav { background: #fff; padding: 14px 0 6px; margin-top: 10px; }
.post { background: var(--paper); border: 1px solid #f5f5f5; padding: 60px 99px 30px; margin-top: 22px; }
.post .byline { margin: 0 0 20px; font-size: 14px; line-height: 21px; }
.post h1 { font-size: 40px; line-height: 50px; margin-bottom: 36px; }
.post-body { font-size: 17px; line-height: 25.5px; }
.post-body h2 { font: 300 28px/1.3 var(--serif); }
.post-body h3 { font: 300 24px/1.35 var(--serif); }
.post-body h4, .post-body h5, .post-body h6 { font: 300 20px/1.4 var(--serif); }
.post-body blockquote { font-size: 18px; }
.share { display: flex; gap: 22px; align-items: center; margin-top: 36px; padding: 18px 0; border-top: 1px solid rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.share a, .share button { display: flex; color: #000; border: 0; background: none; padding: 0; cursor: pointer; }
.share .done { color: var(--accent); }
.recent { margin-top: 44px; }
.recent .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.recent h2 { font: 400 18px var(--sans); }
.recent .head a { font-size: 14px; text-decoration: none; }
.recent .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 33px; }
.tile { display: block; background: var(--paper); border: 1px solid #f5f5f5; text-decoration: none; min-height: 314px; }
.tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile .title { display: block; padding: 24px 24px 20px; font: 300 18px/1.35 var(--serif); }
.tile:hover .title { color: var(--accent); }
.comments { background: var(--paper); border: 1px solid #f5f5f5; padding: 40px 99px 50px; margin-top: 30px; margin-bottom: 60px; }
.comments h2 { font: 400 14px var(--sans); padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.2); margin-bottom: 22px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 12px; }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email] { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, 0.35); background: #fff; font: 15px var(--sans); border-radius: 0; }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form button, .contact-form button { min-width: 140px; padding: 9px 20px; border: 0; background: var(--accent); color: #fff; font: 15px var(--sans); cursor: pointer; border-radius: 0; }
.comment-form button:hover, .contact-form button:hover { background: var(--accent-dark); }
.comment { padding: 22px 0 0; margin-top: 22px; border-top: 1px solid rgba(0, 0, 0, 0.12); font-size: 15px; line-height: 1.55; }
.comment .who { margin: 0 0 8px; font-size: 14px; }
.comment .who time { margin-left: 8px; opacity: 0.65; }
.comment .text p { margin: 0 0 0.6em; }
.comment.reply { margin-left: 34px; }

/* ---- mission ---- */
.mission-top { background: var(--cream); text-align: center; padding: 72px 20px 70px; }
.mission-top .kicker { margin: 0; font-size: 18px; }
.mission-top h1 { font-size: 51px; line-height: 1.25; margin: 4px 0 24px; }
.mission-top p { max-width: 730px; margin: 0 auto 24px; font-size: 16px; line-height: 1.55; }
.mission-top p:last-child { margin-bottom: 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.mission-grid .cell { border: 1px solid #000; margin: 0 -1px -1px 0; }
.mission-grid .text { padding: 26px 19% 60px; font-size: 15px; line-height: 1.6; text-align: justify; }
.mission-grid .text h2 { font-size: 37px; text-align: center; margin: 0 0 56px; }
.mission-grid .text p { margin: 0 0 1.6em; }
.mission-grid .crest { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--page); }
.mission-grid .crest img { width: 76%; max-width: 560px; }
.mission-grid .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- contact, search and notices ---- */
body.page-contact, body.page-search, body.page-plain { background: #fff; }
.panel { background: var(--page); margin: 0 40px 20px; padding: 46px calc(50% - 470px) 60px; }
.panel h1 { font-size: 51px; line-height: 1.25; margin-bottom: 60px; padding-left: 22px; }
.panel.plain h1, .search-page h1 { padding-left: 0; margin-bottom: 26px; }
.panel.plain p { font-size: 17px; line-height: 1.6; }
.panel a { color: var(--accent-dark); }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 790px; margin-bottom: 70px; }
.contact-cols h2 { font: 400 15px var(--sans); margin-bottom: 14px; }
.contact-cols p { margin: 0; }
.contact-cols a { color: #000; }
.contact-form { max-width: 790px; }
.contact-form label { display: block; font-size: 12px; margin-bottom: 12px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid #000; background: #fff; font: 15px var(--sans); border-radius: 0; }
.contact-form .row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-form .send { display: flex; justify-content: flex-end; }
.contact-form button { width: 250px; }
.search-page { --pagefind-ui-primary: #785e2e; --pagefind-ui-font: Raleway, sans-serif; --pagefind-ui-border-radius: 0; }

/* ---- donate ---- */
.donate-box { display: flex; justify-content: center; padding: 0 16px 150px; min-height: 620px; }
.donate-box.wide iframe { max-width: 900px !important; min-width: 0 !important; }

/* ---- book lists ---- */
body.page-books { background: #d9d9c9; }
.sort { display: flex; justify-content: center; align-items: center; gap: 10px; padding-bottom: 26px; font: 300 15px var(--helv); }
.sort select { font: 15px var(--helv); padding: 5px 30px 5px 12px; border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 4px; background: #fff; min-width: 190px; }
.books { display: grid; grid-template-columns: repeat(auto-fit, 295px); justify-content: center; gap: 18px; padding: 0 20px 60px; max-width: 1300px; margin: 0 auto; }
.book { min-height: 420px; padding: 28px 22px 26px; text-align: center; background: var(--cream); border: 1px solid #b0a986; border-radius: 10px; box-shadow: 7px 10px 16px rgba(0, 0, 0, 0.6); }
.book .top { display: flex; justify-content: center; gap: 37px; min-height: 100px; }
.book .cover { position: relative; width: 70px; }
.book .cover img { display: block; width: 70px; height: 91px; object-fit: cover; }
.book .links { display: flex; flex-direction: column; gap: 20px; width: 103px; }
.book .b { display: block; height: 33px; line-height: 33px; border-radius: 10px; color: #fff; text-decoration: none; font: 300 15px/33px var(--helv); }
.book .online { background: rgba(27, 79, 158, 0.79); }
.book .buy { background: rgba(44, 87, 56, 0.79); }
.book .sample { position: absolute; left: -4px; bottom: -24px; width: 78px; background: rgba(120, 94, 46, 0.79); }
.book .b:hover { filter: brightness(1.2); }
.book h2 { margin: 26px 0 0; font: 300 26px/36.4px var(--futura); letter-spacing: 1.3px; }
.book h2 span { display: block; }
.book .status { margin: 12px 0 0; font: 700 15px/21px var(--sans); }
.book .status.in-print { color: #009900; }
.book .date { margin: 6px 0 0; font: 700 14px/21px var(--helv); color: var(--accent-dark); }
.book .credit { margin: 9px 0 0; font: 300 14px/21px var(--helv); }

/* ---- narrower screens ---- */
@media (max-width: 1200px) {
  .site-header { padding: 0 24px; }
  .site-search { margin-left: 10px; }
  .cards.wide { grid-template-columns: repeat(2, minmax(0, 289px)); gap: 24px; }
  .cat-nav { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 231px)); }
  .post, .comments { padding-left: 6%; padding-right: 6%; }
}
@media (max-width: 860px) {
  .site-header { height: auto; flex-wrap: wrap; justify-content: center; padding: 26px 20px 12px; gap: 0; background: #fff; }
  .site-header .logo img { width: 105px; }
  .site-header .social { display: none; }
  .site-search { order: 3; flex: 0 0 100%; flex-direction: row-reverse; margin: 18px 0 0; }
  .site-search input { flex: 1; width: auto; min-width: 0; font-size: 16px; padding: 8px 9px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--accent); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fbfbfb; box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); padding: 6px 0 14px; }
  .menu-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0 24px; line-height: 44px; }
  .site-nav .sub { display: block; position: static; transform: none; box-shadow: none; background: none; text-align: left; padding: 0 0 0 20px; }
  .site-nav .sub a { line-height: 38px; }
  .hero { height: 232px; margin-top: 20px; }
  .hero .slide { gap: 12px; padding: 0 0 36px; }
  .hero .arrow { display: none; }
  .hero .dots { display: flex; }
  .hero-box { min-height: 84px; padding: 10px 14px; }
  .hero-box h1, .hero-box h2 { font-size: 22px; line-height: 32px; }
  .btn { min-width: 160px; padding: 9px 14px; font-size: 17px; }
  .btn.red { min-width: 160px; }
  .band-title { font-size: 26px; line-height: 36px; padding: 22px 20px 20px; }
  .strip { height: 220px; background-attachment: scroll; }
  .strip-box { width: 246px; min-height: 180px; padding: 22px 10px 16px; }
  .strip-box h2 { font-size: 22px; }
  .strip-box .buttons { gap: 12px; margin-top: 12px; }
  .band-title.big, .mission-top h1, .panel h1 { font-size: 36px; }
  .cards, .cards.wide { grid-template-columns: minmax(0, 280px); gap: 20px; }
  .card .shade { align-items: flex-start; justify-content: flex-end; padding: 0 30px 78px; text-align: left; }
  .card .meta { left: 30px; right: 30px; }
  .card .title { font-size: 20px; line-height: 26px; }
  .card .rule { left: 30px; right: 30px; }
  .cat-nav, .page-post .cat-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0 26px; padding-left: 18px; padding-right: 18px; }
  .post { padding: 28px 18px 20px; }
  .post h1 { font-size: 26px; line-height: 34px; margin-bottom: 22px; }
  .post-body { font-size: 16px; line-height: 24px; }
  .recent .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile { min-height: 0; }
  .comments { padding: 26px 20px 34px; }
  .comment-form .row, .contact-form .row.three, .contact-cols { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-grid .text { padding: 26px 24px 30px; }
  .mission-grid .text h2 { margin-bottom: 26px; }
  .panel { margin: 0 0 12px; padding: 30px 20px 40px; }
  .panel h1 { padding-left: 0; margin-bottom: 30px; }
  .contact-form button { width: 100%; }
  .subscribe button { width: 120px; }
  .site-footer h2 { font-size: 28px; }
}
