:root {
  --p-ink: #111111;
  --p-white: #ffffff;
  --p-line: #ececec;
  --p-soft: #f2f2f2;
  --p-red: #e72819;
  --p-muted: #555555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--p-white);
  color: var(--p-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--p-red);
  outline-offset: 3px;
}

.p-header {
  min-height: 88px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--p-line);
  font-size: 11px;
  font-weight: 800;
}

.p-header > a:first-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.p-header > a:nth-child(2) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.p-header img {
  width: 150px;
}

.p-header span {
  justify-self: end;
}

.p-main {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.p-media {
  position: relative;
  min-height: 760px;
  background: var(--p-soft);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-media span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: var(--p-ink);
  color: var(--p-white);
  font-size: 9px;
  font-weight: 800;
}

.p-info {
  padding: 80px 56px;
  align-self: center;
}

.p-info > p:first-child {
  margin: 0 0 10px;
  color: var(--p-red);
  font-size: 10px;
  font-weight: 800;
}

.p-info h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.1;
}

.p-info > strong {
  display: block;
  font-size: 18px;
}

.p-info > p:nth-of-type(2) {
  margin: 28px 0;
  color: var(--p-muted);
}

.p-info dl {
  margin: 0;
  border-top: 2px solid var(--p-ink);
}

.p-info dl > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--p-line);
}

.p-info dt {
  font-weight: 750;
}

.p-info dd {
  margin: 0;
  color: var(--p-muted);
  text-align: right;
}

.p-info button,
.p-info > a {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 1px solid var(--p-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-ink);
  color: var(--p-white);
  font: inherit;
  font-weight: 750;
}

.p-info button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.p-info > a {
  background: var(--p-white);
  color: var(--p-ink);
}

.p-footer {
  padding: 36px 40px;
  background: var(--p-ink);
  color: var(--p-white);
  font-size: 12px;
}

.p-footer p {
  margin: 4px 0;
}

@media (max-width: 800px) {
  .p-header {
    min-height: 72px;
    padding: 0 14px;
    grid-template-columns: 1fr auto 1fr;
  }

  .p-header img {
    width: 120px;
  }

  .p-main {
    display: block;
  }

  .p-media {
    min-height: 480px;
    height: 62vh;
  }

  .p-info {
    padding: 56px 16px 72px;
  }

  .p-info h1 {
    font-size: 32px;
  }

  .p-footer {
    padding: 32px 16px;
  }
}
