:root {
  --icm-burgundy: #5c0000;
  --icm-burgundy-dark: #3d0000;
  --icm-cream: #f1efc8;
  --icm-cream-light: #f5f5f5;
  --icm-tan: #c2c1a2;
  --icm-paper: #fffdf4;
  --icm-ink: #2b2722;
  --icm-muted: #6b6459;
  --icm-line: #d8d1b5;
  --icm-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --icm-footer: #4b4940;
  --icm-footer-text: #eee9d8;
  --icm-footer-muted: #c8c2ae;
  --icm-font: Verdana, Arial, Helvetica, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--icm-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--icm-ink);
  background: #8f8d88;
}

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

a {
  color: var(--icm-burgundy);
}

body.intro-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: radial-gradient(circle at 50% 18%, #b8b6b0 0, #918f8a 52%, #777570 100%);
}

.intro-shell {
  width: min(100%, 760px);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}

.intro-brand {
  display: block;
  background: var(--icm-cream);
  line-height: 0;
}

.intro-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.15rem 0.25rem;
  padding: 1rem 0.5rem;
  background: linear-gradient(#f7f7f7, #ececec);
  border-top: 3px double var(--icm-tan);
  border-bottom: 1px solid var(--icm-tan);
}

.intro-nav a {
  display: inline-block;
  padding: 0.35rem 0.4rem;
  border-radius: 3px;
  color: var(--icm-burgundy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.intro-nav a:hover {
  background: var(--icm-cream);
  text-decoration: underline;
}

.intro-nav a:focus-visible {
  outline: 2px solid var(--icm-burgundy);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  body.intro-page {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .intro-shell {
    padding: 2.25rem 0;
  }

  .intro-nav {
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    padding: 0.75rem 0.4rem;
  }

  .intro-nav a {
    font-size: 0.82rem;
    padding: 0.3rem 0.4rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--icm-burgundy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

body.site-page {
  min-height: 100vh;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: radial-gradient(circle at 50% 0, #b3b1ab 0, #918f8a 48%, #7b7974 100%);
}

.site-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--icm-cream-light);
  border-radius: 10px;
  box-shadow: var(--icm-shadow);
}

.site-header {
  display: flex;
  min-height: 100px;
  background: var(--icm-cream);
}

.site-brand {
  display: block;
  flex: 0 0 auto;
  background: var(--icm-cream);
  line-height: 0;
}

.site-brand img {
  display: block;
  width: 424px;
  max-width: 100%;
  height: auto;
}

.site-header-art {
  flex: 1 1 auto;
  min-height: 100px;
  background: var(--icm-cream) url("images/final_back_03.jpg") right center / cover no-repeat;
}

.site-rule {
  height: 15px;
  background: var(--icm-burgundy);
}

.site-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: stretch;
  background: var(--icm-cream-light);
}

.site-sidebar {
  min-width: 0;
  background: linear-gradient(180deg, #cbc9aa 0, #c2c1a2 100%);
}

.site-content {
  min-width: 0;
  padding: 1rem clamp(1rem, 2.2vw, 2rem) 1.75rem;
  background: var(--icm-cream-light);
  overflow-wrap: break-word;
}

.site-content > :first-child {
  margin-top: 0;
}

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

.site-menu {
  padding: 0.5rem 0;
}

.menu-root,
.menu-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-root > li {
  border-bottom: 1px solid rgba(92, 0, 0, 0.12);
}

.menu-root a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--icm-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-root a:hover,
.menu-root a.is-selected {
  color: var(--icm-burgundy);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 4px 0 0 var(--icm-burgundy);
}

.menu-sub {
  padding: 0.15rem 0 0.45rem 0.8rem;
}

.menu-sub li {
  border: 0;
}

.menu-sub a {
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}

.menu-sub a:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 3px 0 0 var(--icm-burgundy);
}

.site-footer {
  background: var(--icm-footer);
}


.site-footer-inner {
  padding: 1.25rem 1rem;
  color: var(--icm-footer-text);
  text-align: center;
  font-size: 0.8rem;
}

.site-footer-links {
  margin-bottom: 0.55rem;
}

.site-footer-links a {
  color: #f7f4e7;
  white-space: nowrap;
}

.site-footer-links a:hover {
  color: #ffffff;
}

.site-footer-credit {
  margin-top: 0.55rem;
  color: var(--icm-footer-muted);
}

.site-footer-credit a {
  color: var(--icm-footer-text);
}

.site-footer-credit a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  body.site-page {
    padding: 0;
  }

  .site-shell {
    border: 0;
    box-shadow: none;
  }

  .site-header-art {
    display: none;
  }

  .site-brand img {
    width: 100%;
  }

  .site-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-sidebar {
    border-bottom: 1px solid var(--icm-tan);
  }

  .site-menu {
    padding: 0.4rem;
  }

  .menu-root {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .menu-root > li {
    border: 0;
  }

  .menu-root a {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    border-radius: 3px;
  }

  .menu-root a.is-selected,
  .menu-root a:hover {
    box-shadow: none;
    text-decoration: underline;
  }

  .menu-root > li.has-sub {
    flex-basis: 100%;
  }

  .menu-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0 0 0.35rem 0;
  }

  .menu-sub a {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .site-content {
    padding: 0.8rem 0.85rem 1.5rem;
  }

}


body.site-page {
  font-size: 1rem;
  line-height: 1.55;
}

body.site-page .smtxt {
  font-size: 0.9rem;
}

body.site-page .medtxt {
  font-size: 1rem;
}

body.site-page .lgtxt {
  font-size: 1.2rem;
}

body.site-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

body.site-page h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.25;
}

body.site-page h3 {
  font-size: 1.15rem;
}

body.site-page h4 {
  font-size: 1rem;
}

body.site-page .site-content table {
  max-width: 100%;
}

/* Bootstrap-style responsive table: scrolls horizontally instead of clipping. */
body.site-page .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.site-page .table-responsive > table {
  min-width: 100%;
  max-width: none;
}


.site-content.content-home {
  padding-right: 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
}

.home-main {
  min-width: 0;
  padding-right: 0.25rem;
}

.home-art {
  min-height: 600px;
  background: #f5f5f5 url("images/bg.gif") left top / cover no-repeat;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.15rem 1.5rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0.85rem 0;
  list-style: none;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
}

.library-grid li {
  padding: 0.25rem 0;
}

.library-grid a {
  font-weight: 700;
}

.library-grid span {
  display: block;
  color: var(--icm-muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .site-content.content-home {
    padding-right: 0.85rem;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-art {
    display: none;
  }
}

.site-content.content-library {
  padding-left: clamp(0.75rem, 1.5vw, 1.15rem);
  padding-right: clamp(0.75rem, 1.5vw, 1.15rem);
}

.library-intro {
  margin-bottom: 0.75rem;
}

.library-intro h1 {
  margin-bottom: 0.35rem;
}

.library-intro p {
  margin-top: 0.35rem;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #cccccc;
}

.preview-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 1.5rem;
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
}

.preview-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.preview-detail dt {
  font-weight: 700;
  white-space: nowrap;
}

.preview-detail dd {
  margin: 0;
  min-width: 0;
}

.preview-actions {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}

.preview-description {
  margin: 0.75rem 0 0;
}

.preview-note {
  width: auto;
  max-width: 750px;
}

.preview-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.about-photo {
  float: right;
  width: 300px;
  max-width: 42%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .about-photo {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 0 1rem;
  }
}

.contact-wrap {
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-label {
  color: var(--icm-burgundy-dark);
  font-weight: 700;
}

.required-mark {
  color: #a00000;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--icm-ink);
  background: #ffffff;
  border: 1px solid #c9c1a5;
  border-radius: 0.45rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}

.form-control:focus {
  outline: none;
  border-color: var(--icm-burgundy);
  box-shadow: 0 0 0 0.2rem rgba(92, 0, 0, 0.15);
}

select.form-control {
  max-width: 100%;
}

textarea.form-control {
  min-height: 11rem;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  background: var(--icm-burgundy);
  border: 1px solid var(--icm-burgundy);
  border-radius: 0.45rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--icm-burgundy-dark);
  border-color: var(--icm-burgundy-dark);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--icm-burgundy);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  color: var(--icm-muted);
  font-size: 0.875rem;
}

.form-alert {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  color: var(--icm-ink);
  background: var(--icm-paper);
  border: 1px solid #c9c1a5;
  border-left: 4px solid var(--icm-burgundy);
  border-radius: 0.45rem;
}

.form-alert-success {
  border-left-color: #3c7a3c;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep form fields at 16px or larger so iOS Safari does not zoom on focus. */
body.site-page input,
body.site-page select,
body.site-page textarea,
body.site-page button,
body.site-page .form-control,
body.site-page select.smtxt {
  font-size: max(16px, 1rem);
}
