* { box-sizing: border-box; }

html { background: #fff; color: #000; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

a { color: inherit; text-underline-offset: 2px; }
p, h1, h2, figure { margin: 0; }

.home-page { overflow: hidden; }

.resume {
  width: min(1040px, calc(100% - 48px));
  height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) 0 20px;
}

.resume-header {
  margin-bottom: clamp(20px, 4vh, 42px);
  text-align: center;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.resume-header p { font-weight: 700; }
.resume-header span { padding: 0 5px; }

section { margin-top: clamp(12px, 2.4vh, 24px); }

h2 {
  padding-bottom: 2px;
  border-bottom: 1.5px solid #000;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1;
  text-transform: uppercase;
}

article { margin-top: 5px; }
article + article { margin-top: clamp(8px, 1.4vh, 14px); }

.row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.row span:last-child { flex: none; text-align: right; }
.strong { font-weight: 700; }
.italic { font-style: italic; }
.detail { margin: 3px 3vw 0; }

.gallery-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 20px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
}

.gallery-grid figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 12px;
}

.empty-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #aaa;
  color: #777;
  font-size: 12px;
}

.coming-soon-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.coming-soon-page h1 { margin-bottom: 8px; }
.coming-soon-page p { margin-bottom: 28px; }

@media (max-width: 650px) {
  body { font-size: 12px; }
  .resume { width: calc(100% - 28px); padding-top: 20px; }
  .resume-header { margin-bottom: 24px; }
  .resume-header p { display: flex; flex-wrap: wrap; justify-content: center; }
  .detail { margin-left: 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-height: 650px) {
  body { font-size: 12px; }
  .resume { padding-top: 18px; }
  .resume-header { margin-bottom: 16px; }
  section { margin-top: 10px; }
  article + article { margin-top: 6px; }
  .detail { margin-top: 1px; }
}
