:root {
  --page-background: linear-gradient(180deg, #f7f3ec 0%, #efe4d3 100%);
  --card-background: rgba(255, 251, 245, 0.92);
  --text-main: #24180f;
  --text-soft: #6d5844;
  --text-faint: #8c7764;
  --button-dark: #1d3a34;
  --button-dark-hover: #285046;
  --button-light: #ffffff;
  --button-light-border: rgba(29, 58, 52, 0.12);
}

* {
  box-sizing: border-box;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.card {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--card-background);
}

.hero-frame {
  min-height: 17vh;
  padding: 0.7rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #d8b588 0%, #bb8859 45%, #7d5437 100%);
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 14.5rem;
}

.hero-image {
  width: clamp(4.5rem, 18vw, 6rem);
  height: auto;
  object-fit: contain;
}

.hero-copy {
  color: #fff8f0;
}

.hero-subtitle {
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.22;
  color: rgba(255, 248, 240, 0.92);
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.1rem;
}

.hero-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff8f0;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.hero-icon-link:hover,
.hero-icon-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-icon-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  min-height: 0;
  height: 100%;
}

.content-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-right: 0.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.72rem, 6vw, 2.75rem);
  line-height: 0.95;
}

.role {
  margin: -0.15rem 0 0;
  color: #3a2a1f;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.28;
}

.intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.36;
  text-align: justify;
}

.details {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  min-height: 9.5rem;
}

.detail-row {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.detail-row-primary {
  padding-top: 0.15rem;
}

.detail-row-muted {
  color: var(--text-faint);
}

.detail-row-support {
  color: #28453f;
}

.detail-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detail-value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.96rem;
  line-height: 1.3;
}

.detail-row-muted .detail-value {
  font-size: 0.92rem;
}

.detail-row-support .detail-value {
  font-size: 0.88rem;
}

.mail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.28rem;
  border-radius: 999px;
  background: rgba(53, 92, 134, 0.12);
  color: #355c86;
  line-height: 1;
  vertical-align: middle;
}

.mail-icon svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0.2rem;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.85rem;
  border-radius: 1.05rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.25;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
}

.action-button:focus-visible,
.hero-icon-link:focus-visible,
.detail-row:focus-visible {
  outline: 3px solid rgba(188, 136, 89, 0.32);
  outline-offset: 2px;
}

.action-button-primary {
  background: var(--button-dark);
  color: #f9f5ee;
}

.action-button-primary:hover,
.action-button-primary:focus-visible {
  background: var(--button-dark-hover);
}

.action-button-secondary {
  background: var(--button-light);
  color: var(--button-dark);
  border: 1px solid var(--button-light-border);
}

.action-button-secondary:hover,
.action-button-secondary:focus-visible {
  background: #f6efe6;
}

@media (min-width: 900px) {
  body {
    overflow: auto;
  }

  .page-shell {
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
  }

  .card {
    width: min(100%, 58rem);
    min-height: min(52rem, calc(100vh - 5rem));
    min-height: min(52rem, calc(100dvh - 5rem));
    height: min(52rem, calc(100vh - 5rem));
    height: min(52rem, calc(100dvh - 5rem));
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(84, 57, 26, 0.16);
  }

  .hero-frame {
    min-height: 11rem;
    padding: 1.3rem 1.6rem;
  }

  .content {
    padding: 1.5rem 1.6rem 1.6rem;
  }

  .intro {
    font-size: 0.96rem;
  }

  .details {
    min-height: 11rem;
  }
}

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

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .detail-value {
    text-align: left;
  }

  .hero-header {
    gap: 0.75rem;
  }

  .hero-links {
    gap: 0.45rem;
  }

  .hero-icon-link {
    width: 1.95rem;
    height: 1.95rem;
  }
}
