:root {
  --font: "Arial Narrow", Arial, sans-serif;
  --ink: #18130f;
  --paper: #f5f1e9;
  --background: #e7e1d7;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
}

button,
a { font: inherit; }

.page {
  width: 100%;
  min-height: 100svh;
  background: var(--background);
}

.art {
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--background);
}

.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.name-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 28px;
  background: var(--background);
}

.name-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.name-button:hover,
.name-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(520px, 100%);
  pointer-events: none;
  visibility: hidden;
}

.modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  border: 0;
  padding: 0;
  background: rgba(18, 15, 11, .38);
  opacity: 0;
  transition: opacity .3s ease;
  cursor: default;
}

.info-panel {
  position: relative;
  min-height: 100%;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .info-panel { transform: translateX(0); }

.close-button {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.info-content {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(28px, 7vw, 58px);
}

h1 {
  margin: 0 0 36px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  font-weight: 400;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(20px, 3vw, 27px);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 700px) {
  .page { min-height: auto; }

  .art {
    height: auto;
    overflow: visible;
  }

  .art img {
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .name-wrap {
    padding: 18px 16px 24px;
  }

  .name-button {
    font-size: 18px;
    letter-spacing: .11em;
  }

  .modal { grid-template-columns: 1fr; }
  .modal-backdrop { display: none; }

  .info-panel {
    min-height: 100svh;
    transform: translateY(100%);
  }

  .modal.is-open .info-panel { transform: translateY(0); }

  .info-content {
    align-items: center;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-links {
    justify-items: center;
  }
}

/* V7: Smartphone contact details left-aligned; name remains centered */
@media (max-width: 700px) {
  .info-content {
    align-items: flex-start;
    text-align: left;
  }

  .contact-links {
    justify-items: start;
  }
}
