:root {
  color-scheme: light;
  --pine: #173d30;
  --pine-soft: #285744;
  --honey: #d99a2b;
  --honey-deep: #aa6818;
  --paper: #f7efdd;
  --ink: #203229;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--pine);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--pine);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.poster {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(24rem, 58svh) auto;
  overflow: hidden;
  background: var(--paper);
}

.visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #72906f;
}

.visual picture,
.visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.visual img {
  object-fit: cover;
  object-position: 50% 43%;
}

.image-wash {
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(to bottom, transparent, rgb(23 61 48 / 0.32));
  pointer-events: none;
}

.information {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 15% 18%, rgb(217 154 43 / 0.08) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--paper);
}

.frame {
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 6vw, 2.7rem) clamp(1.15rem, 6vw, 3.2rem);
  text-align: center;
  border: 1px solid rgb(23 61 48 / 0.46);
  outline: 1px solid rgb(217 154 43 / 0.72);
  outline-offset: -7px;
}

.heraldic-mark {
  width: min(11rem, 52vw);
  display: grid;
  grid-template-columns: 1fr 0.92fr 1fr;
  align-items: end;
  margin: 0 auto 0.7rem;
}

.heraldic-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.sool-crest {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.18rem 0.12rem rgb(32 50 41 / 0.13));
}

.supporter {
  position: relative;
  z-index: 0;
  margin-bottom: 0.18rem;
  transform-origin: center bottom;
}

.supporter-left {
  margin-right: -0.25rem;
  transform: rotate(-8deg);
}

.supporter-right {
  margin-left: -0.25rem;
  transform: scaleX(-1) rotate(-8deg);
}

h1 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.12em;
  margin: 0;
  color: var(--pine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 10.4vw, 3.25rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

h1 i {
  color: var(--honey-deep);
  font-style: normal;
  font-weight: 400;
}

.tagline {
  margin: 0.55rem 0 0;
  color: var(--honey-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 3.7vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.people {
  margin: 0.8rem 0 0;
  color: var(--pine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

address {
  margin: 0.8rem 0 1.15rem;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.55;
}

.contact {
  display: grid;
  gap: 0.45rem;
}

.contact a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  color: var(--pine);
  border-radius: 0.15rem;
  font-size: clamp(0.98rem, 4.3vw, 1.08rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration-color: rgb(170 104 24 / 0.62);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
  transition: color 160ms ease, background-color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: #0d281f;
  background: rgb(217 154 43 / 0.14);
}

.contact a:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}

.contact svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

@media (min-width: 48rem) {
  .poster {
    grid-template: minmax(42rem, 100svh) / minmax(0, 59fr) minmax(28rem, 41fr);
  }

  .visual img {
    object-position: 50% 42%;
  }

  .image-wash {
    inset: 0 0 0 auto;
    width: 12%;
    height: auto;
    background: linear-gradient(to right, transparent, rgb(23 61 48 / 0.18));
  }

  .information {
    padding: clamp(1.5rem, 4vw, 4rem);
    box-shadow: -1.2rem 0 3rem rgb(16 38 30 / 0.16);
  }

  .frame {
    padding: clamp(2.2rem, 5vh, 4.2rem) clamp(2rem, 4vw, 3.7rem);
  }

  h1 {
    font-size: clamp(2.85rem, 4.1vw, 3.25rem);
  }
}

@media (max-height: 42rem) and (orientation: landscape) {
  .poster {
    grid-template: minmax(31rem, 100svh) / minmax(0, 55fr) minmax(25rem, 45fr);
  }

  .frame {
    padding-block: 1.5rem;
  }

  .heraldic-mark {
    width: 8.2rem;
    margin-bottom: 0.35rem;
  }

  h1 {
    font-size: clamp(2.55rem, 4.6vw, 3.1rem);
  }

  .people {
    margin-top: 0.5rem;
  }

  address {
    margin-block: 0.55rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
