:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #655d55;
  --line: #d8d0c7;
  --paper: #f4eee7;
  --panel: #fffaf4;
  --accent: #70251f;
  --accent-dark: #261411;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

.shell {
  display: grid;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr);
  min-height: 100vh;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.portrait {
  width: min(100%, 260px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  align-self: center;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 4px 0 0;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.actions a + a {
  background: transparent;
  color: var(--accent-dark);
}

.byline {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 15px;
}

.viewer {
  min-height: 100vh;
  padding: 18px;
}

iframe {
  width: 100%;
  height: calc(100vh - 36px);
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .viewer,
  iframe {
    height: 72vh;
    min-height: 72vh;
  }
}

@media (max-width: 460px) {
  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 29px;
  }
}
