:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #2e2219;
  background: #fbf8f3;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #835831; outline-offset: 5px; }

.site-header, main, .site-footer {
  width: min(70rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; }
.brand img { width: 9.25rem; height: auto; }
.site-header > a:last-child { font-size: .9375rem; text-underline-offset: .2em; }

.intro-panel {
  min-height: 24rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, .55fr);
  align-items: center;
  gap: 3rem;
  padding: clamp(1.75rem, 5.5vw, 4rem);
  background: #efe4d6;
  border: 1px solid #e2d1bf;
  border-radius: 1.5rem;
}

.portal-name { margin: 0 0 1.25rem; color: #65462d; font-weight: 650; }
h1 {
  margin: 0;
  font: 500 clamp(2.75rem, 6.25vw, 5.25rem)/.99 Georgia, serif;
  letter-spacing: -.05em;
}

.intro { max-width: 35rem; margin: 1.35rem 0 0; line-height: 1.65; }
.notice {
  margin: 1.2rem 0 0;
  max-width: 36rem;
  padding: .6rem 0 .6rem .8rem;
  border-left: .15rem solid #98785a;
  line-height: 1.55;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .8rem 1.1rem;
  border-radius: .55rem;
  background: #59432f;
  color: #fff6e7;
  font-weight: 650;
  text-decoration: none;
}

.cta:hover { background: #45311f; }
.brand-art { width: min(100%, 16rem); height: auto; margin-inline: auto; opacity: .83; }

.link-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.link-grid a {
  display: block;
  height: 100%;
  min-height: 7rem;
  padding: 1.15rem;
  border: 1px solid #e2d1bf;
  border-radius: .875rem;
  background: #fffdf9;
  text-decoration: none;
}

.link-grid a:hover { border-color: #98785a; }
.link-grid strong { display: block; margin-bottom: .45rem; text-decoration: underline; text-underline-offset: .2em; }
.link-grid span { color: #59432f; line-height: 1.5; }

.site-footer { padding: 1.65rem 0 2.4rem; color: #59432f; }

@media (max-width: 42rem) {
  .site-header, main, .site-footer { width: calc(100% - 2rem); }
  .intro-panel { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .brand-art { display: none; }
}
