.portal {
  --portal-ink: #213038;
  --portal-bronze: #825c33;
  --portal-plaster: #ebe2d4;
  --portal-line: #dbd3c6;
  background: #f8f6f0;
  color: var(--portal-ink);
}

.portal-width {
  width: min(calc(100% - 3rem), 75rem);
  margin-inline: auto;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 5.2rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--portal-line);
}

.portal-brand { display: block; width: min(40%, 10rem); }
.portal-brand img { width: 100%; height: auto; }

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  margin-block: clamp(1rem, 2.7vw, 2.2rem) 1.15rem;
  overflow: hidden;
  background: var(--portal-plaster);
}

.portal-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(.8rem, 1.7vw, 1.4rem);
  padding: clamp(1.45rem, 4.1vw, 3.6rem);
}

.portal-region {
  margin: 0;
  padding-top: .8rem;
  border-top: 1px solid #a98059;
  color: var(--portal-bronze);
  font-weight: 650;
  font-size: .79rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal h1, .portal h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

.portal h1 {
  font-size: clamp(2.55rem, 4.75vw, 4.3rem);
  line-height: .99;
  letter-spacing: -.046em;
}

.portal-lede {
  margin: 0;
  max-width: 29ch;
  color: #465251;
  font-size: clamp(1rem, 1.28vw, 1.1rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.portal-hero-photo {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 54%;
}

.portal-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: 1.15rem;
}

.portal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 38%);
  min-height: 13.4rem;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  background: #fffdf8;
  text-decoration: none;
  transition: border-color 170ms ease, background-color 170ms ease;
}

.portal-card:hover {
  border-color: #b99268;
  background: #fffaf1;
}

.portal-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.05rem, 2.2vw, 1.8rem);
}

.portal h2 {
  font-size: clamp(1.48rem, 2.55vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.portal-card p {
  max-width: 34ch;
  margin: .6rem 0 .88rem;
  color: #48524f;
  font-size: .975rem;
  line-height: 1.43;
}

.portal-action {
  margin-top: auto;
  padding-bottom: .18rem;
  border-bottom: 1px solid #9a7147;
  color: var(--portal-bronze);
  font-weight: 700;
  font-size: .88rem;
}

.portal-card-image {
  position: relative;
  min-width: 0;
  background: #e9e4db;
}

.portal-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
}

.portal-booklet {
  display: grid;
  place-items: center;
  padding: clamp(.5rem, 1.35vw, 1rem);
  background: #e7e9e4;
}

.portal-booklet img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  box-shadow: .22rem .35rem .85rem #2d382b33;
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-top: 1.4rem;
  padding-block: .85rem 1.3rem;
  border-top: 1px solid var(--portal-line);
  font-size: .83rem;
  color: #505a56;
}

.portal-footer a { text-underline-offset: .15em; }

@media (max-width: 800px) {
  .portal-width { width: min(calc(100% - 1.8rem), 42rem); }
  .portal-header { min-height: 4.15rem; }
  .portal-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .portal-intro { padding: clamp(1.32rem, 4.8vw, 2.25rem); }
  .portal h1 { font-size: clamp(2.32rem, 7vw, 3.55rem); }
  .portal-hero-photo { height: auto; min-height: 0; }
  .portal-sections { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .portal-card { min-height: 10rem; }
}

@media (max-width: 410px) {
  .portal-hero { margin-bottom: .8rem; }
  .portal-intro { gap: .64rem; }
  .portal-region { padding-top: .55rem; }
  .portal-card { grid-template-columns: minmax(0, 1fr) 31%; min-height: 8.9rem; }
  .portal-card-copy { padding: .85rem; }
  .portal-card p { margin-block: .4rem .65rem; font-size: .91rem; }
}

:lang(zh) .portal h1 {
  font-size: clamp(2rem, 4.15vw, 3.5rem);
  letter-spacing: 0;
}

:lang(zh) .portal h2 { letter-spacing: 0; }
:lang(zh) .portal-lede { max-width: 20em; }
:lang(zh) .portal-card p { max-width: none; text-wrap: pretty; }
