:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --ink: #181818;
  --subtle: #77756f;
  --line: #d7d4cc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(960px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

nav { display: flex; gap: 28px; }

nav a {
  color: var(--subtle);
  font-size: 12px;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] { color: var(--ink); }

.introduction {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 52px;
}

.introduction p {
  width: 310px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.4;
}

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  padding-bottom: 128px;
}

.works > h1 {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.work {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.work:last-child { margin-bottom: 0; }

figure {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #11171e;
  line-height: 0;
}

figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-link { display: block; text-decoration: none; }

.work-info {
  display: block;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.work h2 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.work p { margin: 0; color: var(--subtle); font-size: 13px; }

.work-note {
  display: inline-block;
  margin-top: 12px;
  color: var(--subtle);
  font-size: 11px !important;
  text-decoration: none;
  white-space: nowrap;
}

a.work-note { border-bottom: 1px solid var(--line); }

a.work-note:hover,
a.work-note:focus-visible { color: var(--ink); border-color: var(--ink); }

.contact-page {
  min-height: calc(100vh - 172px);
  padding: 116px 0;
}

.contact-intro h1 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.contact-intro p {
  margin: 0 0 42px;
  color: var(--subtle);
}

.email {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 4vw, 32px);
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.social-link {
  margin: 28px 0 0 !important;
  font-size: 12px !important;
}

.social-link a { text-underline-offset: 5px; }

.support-details {
  width: min(100%, 520px);
  margin-top: 112px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.support-details h2 { margin: 0 0 13px; font-size: 12px; font-weight: 600; }
.support-details p { margin: 0; color: var(--subtle); font-size: 13px; }

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 11px;
}

footer a { text-underline-offset: 4px; }

@media (max-width: 680px) {
  .site-header,
  main,
  footer { width: calc(100% - 36px); }

  .site-header { height: 66px; }
  nav { gap: 19px; }
  .introduction { min-height: 180px; padding-bottom: 42px; }
  .introduction p { width: 270px; font-size: 19px; }
  .works { padding-bottom: 82px; }
  .works { grid-template-columns: 1fr; gap: 68px; }
  .works > h1 { margin-bottom: -44px; }
  .work-note { white-space: normal; }
  .contact-page { padding: 78px 0; }
  .support-details { margin-top: 82px; }
  footer { min-height: 104px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
