:root {
  --ink: #111111;
  --paper: rgba(243, 239, 228, 0.98);
  --white: #ffffff;
  --shell-width: 1560px;
  --subline-shadow-x: 0.12em;
  --subline-shadow-y: 0.12em;
  --subline-shadow-blur: 0.36em;
  --summary-kicker-size: 1rem;
  --summary-kicker-weight: 500;
  --summary-kicker-line: 1.1;
  --summary-headline-size: 1.3rem;
  --summary-headline-weight: 500;
  --summary-headline-line: 1.1;
  --summary-body-size: 1rem;
  --summary-body-weight: 500;
  --summary-body-line: 1.24;
  --summary-label-gap: 0.88rem;
  --summary-image-height: 14rem;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: auto;
  color: var(--ink);
  background:
    linear-gradient(rgba(241, 236, 224, 0.18), rgba(241, 236, 224, 0.18)),
    #c9c5ba url("bg.jpg") left top / 720px repeat;
  font-family: var(--mono);
}

.page-shell {
  width: min(var(--shell-width), calc(100% - 1rem));
  margin: 0 auto;
  padding: 0;
}

.rc-stage {
  min-height: 100vh;
  min-height: 100svh;
}

.rc-frame {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  overflow: hidden;
}

.rc-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
}

.rc-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 2rem);
  min-height: calc(100svh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.45rem, 1.3vh, 1rem);
  padding: 0 1.75rem 2.25rem;
  text-align: left;
}

h1,
.tagline {
  margin: 0;
}

h1 {
  width: 100%;
  color: #f5efe1;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 8vw, 7.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    2px 2px 0 #000,
    4px 4px 0 #000,
    6px 6px 0 rgba(0, 0, 0, 0.42);
}

.subline-group {
  width: 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0;
}

.tagline {
  width: 100%;
  padding: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  background: transparent;
  text-shadow:
    var(--subline-shadow-x) var(--subline-shadow-y) 0 rgba(0, 0, 0, 0.88),
    calc(var(--subline-shadow-x) * 1.8) calc(var(--subline-shadow-y) * 1.8) var(--subline-shadow-blur) rgba(0, 0, 0, 0.32);
}

.summary-card {
  width: 100%;
  max-width: none;
  max-height: min(44vh, 400px);
  display: grid;
  grid-template-columns: minmax(10rem, 0.24fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: center;
  margin-top: clamp(0.35rem, 1.3vh, 1rem);
  padding: clamp(0.85rem, 1.6vw, 1.35rem);
  color: #f7f3ea;
  background: rgba(12, 12, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.summary-card-scroll {
  display: contents;
}

.summary-image {
  width: min(100%, 10rem);
  max-height: var(--summary-image-height);
  display: block;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 0.65rem 1rem rgba(0, 0, 0, 0.34));
}

.summary-copy {
  min-width: 0;
}

.summary-label {
  min-width: 0;
  margin: 0 0 var(--summary-label-gap);
  color: #ffe18a;
}

.summary-kicker,
.summary-headline {
  display: block;
}

.summary-kicker {
  font-size: var(--summary-kicker-size);
  font-weight: var(--summary-kicker-weight);
  line-height: var(--summary-kicker-line);
  font-variation-settings: "wght" var(--summary-kicker-weight);
  text-transform: uppercase;
}

.summary-headline {
  width: 100%;
  max-width: 100%;
  font-size: var(--summary-headline-size);
  font-weight: var(--summary-headline-weight);
  line-height: var(--summary-headline-line);
  font-variation-settings: "wght" var(--summary-headline-weight);
  white-space: nowrap;
}

.summary-headline span {
  text-transform: uppercase;
}

.summary-body {
  margin: 0;
  font-size: var(--summary-body-size);
  font-weight: var(--summary-body-weight);
  line-height: var(--summary-body-line);
  font-variation-settings: "wght" var(--summary-body-weight);
}

.summary-body + .summary-body,
.summary-contact {
  margin: 0.62rem 0 0;
}

.summary-contact {
  font-size: var(--summary-body-size);
  font-weight: 700;
  line-height: var(--summary-body-line);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
}

a:hover,
a:focus-visible {
  color: #d00000;
}

@media (max-width: 900px) {
  body {
    background-size: 620px;
  }

  .page-shell {
    width: min(100% - 0.6rem, var(--shell-width));
  }

  h1 {
    font-size: 3.1rem;
  }

  .summary-card {
    grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
    background-size: 520px;
  }

  .page-shell {
    width: 100%;
  }

  .rc-stage,
  .rc-frame {
    min-height: 100vh;
    min-height: 100svh;
  }

  .rc-frame {
    padding: 0;
  }

  .rc-content {
    min-height: auto;
    padding: 0.75rem 1rem 3.1rem;
    gap: 0.35rem;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 0.96;
  }

  .tagline {
    font-size: 1rem;
  }

  .summary-card {
    --summary-kicker-size: 1rem;
    --summary-kicker-line: 1.08;
    --summary-headline-size: 1.3rem;
    --summary-headline-line: 1.08;
    --summary-body-size: 1rem;
    --summary-body-line: 1.13;
    --summary-label-gap: 0.08rem;
    --summary-image-height: 10.8rem;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    gap: 0.38rem;
    align-self: stretch;
    margin-top: 0.45rem;
    padding: 0.8rem 0.75rem;
  }

  .summary-image {
    width: auto;
    max-width: min(68vw, var(--summary-image-height));
    max-height: min(24svh, var(--summary-image-height));
  }

}

@media (max-width: 640px) and (orientation: portrait) {
  .summary-card {
    row-gap: 0.52rem;
  }

  .summary-copy {
    display: contents;
  }

  .summary-card-scroll {
    max-height: calc(100svh - 13.5rem);
    display: block;
    min-height: 0;
    overflow: auto;
    padding-right: 0.15rem;
  }

  .summary-label {
    order: 1;
  }

  .summary-headline {
    white-space: normal;
  }

  .summary-image {
    order: 2;
  }

  .summary-body,
  .summary-card-scroll {
    order: 3;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .rc-frame {
    padding: 0.4rem;
  }

  .rc-content {
    min-height: calc(100svh - 0.8rem);
    gap: 0.28rem;
    padding: 0.3rem 0.85rem 2.1rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .summary-card {
    --summary-body-size: 0.72rem;
    --summary-body-line: 1.1;
    --summary-image-height: 5.3rem;
    max-height: 58svh;
    grid-template-columns: minmax(5.25rem, 0.22fr) minmax(0, 1fr);
    gap: 0.7rem;
    margin-top: 0.3rem;
    padding: 0.62rem;
  }

  .summary-image {
    width: auto;
    max-width: min(100%, 5.3rem);
    max-height: 29svh;
  }

}
