:root {
  color-scheme: dark;
  --night: #071622;
  --deep: #0b2431;
  --indigo: #303b72;
  --water: #9bc9cd;
  --mist: #d7e5e5;
  --quiet: #8fa5ad;
  --line: rgba(155, 201, 205, 0.22);
  --card: rgba(10, 31, 43, 0.78);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mist);
  background:
    radial-gradient(circle at 72% 9%, rgba(72, 83, 145, 0.3), transparent 32rem),
    linear-gradient(155deg, var(--night), var(--deep) 56%, #08131c);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 17px;
  line-height: 2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(
    178deg,
    transparent 0,
    transparent 41px,
    rgba(155, 201, 205, 0.035) 42px,
    transparent 44px
  );
}

.shell {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 42px 0 64px;
}

.article-shell { width: min(100% - 40px, 760px); }

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: inherit;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mark::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--water);
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.names {
  margin: 0 0 5px;
  color: var(--quiet);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

main { padding: 58px 0 42px; }

.opening-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  margin-bottom: 64px;
}

.opening-copy { padding: 20px 0; }

.opening-label {
  margin: 0 0 18px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.opening-lead {
  margin: 0;
  color: white;
  font-size: clamp(1.22rem, 2.7vw, 1.75rem);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.opening-note {
  margin: 26px 0 0;
  color: #bdced0;
  font-size: 0.92rem;
  line-height: 2;
}

.records-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 24px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.records-link:hover { color: white; }

.opening-portrait {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  margin: 0;
  justify-self: end;
  border: 1px solid rgba(155, 201, 205, 0.3);
  border-radius: 3px 40px 3px 40px;
  background: #eaf2f1;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.opening-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(7, 22, 34, 0.08);
}

.opening-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px 28px 3px 28px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(155, 201, 205, 0.52);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.article-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-image {
  display: block;
  width: calc(100% - 32px);
  height: auto;
  margin: 16px 16px 0;
  border-radius: 2px 18px 2px 18px;
  object-fit: contain;
  background: #eaf2f1;
}

.card-body { padding: 25px 25px 28px; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.entry-meta span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 5px rgba(124, 131, 183, 0.12);
}

.article-card h2 {
  margin: 0 0 15px;
  color: white;
  font-size: clamp(1.24rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.excerpt {
  margin: 0;
  color: #b8cacc;
  font-size: 0.92rem;
  line-height: 1.85;
}

.read-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.article-main { padding-top: 42px; }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 30px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.back-link:hover { color: white; }

.hero-image {
  display: block;
  width: min(100%, 680px);
  height: auto;
  margin: 0 auto 38px;
  border: 1px solid var(--line);
  border-radius: 3px 30px 3px 30px;
  object-fit: contain;
  background: #eaf2f1;
}

.story {
  position: relative;
  padding-left: clamp(0px, 5vw, 42px);
}

.story h2 {
  margin: 0 0 38px;
  color: white;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

.story p { margin: 0 0 1.6em; }

.opening {
  color: white;
  font-size: 1.08em;
}

.elements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.elements li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #c5d8da;
  background: rgba(7, 22, 34, 0.32);
  font-size: 0.9rem;
}

blockquote {
  margin: 44px 0;
  padding: 26px 0 26px 25px;
  border-left: 1px solid var(--water);
  color: white;
  font-size: clamp(1.08rem, 3vw, 1.3rem);
  letter-spacing: 0.04em;
}

.project-card {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid rgba(155, 201, 205, 0.34);
  border-radius: 3px 24px 3px 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 131, 183, 0.2), transparent 16rem),
    rgba(7, 22, 34, 0.56);
}

.project-card .label {
  margin: 0 0 8px;
  color: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.project-card h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project-card p {
  color: #b9cccf;
  font-size: 0.92rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--water);
  border-radius: 999px;
  color: #071622;
  background: var(--water);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.project-link:hover { background: #b6dadd; }

.project-contact {
  margin: 22px 0 0;
  color: white;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.8;
}

.project-note {
  display: block;
  margin-top: 14px;
  color: var(--quiet);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.site-footer a { color: var(--water); text-decoration: none; }

@media (max-width: 720px) {
  .shell,
  .article-shell { width: min(100% - 28px, 760px); padding-top: 28px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .names { margin: 0; }
  main { padding-top: 42px; }
  .opening-visual { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .opening-copy { padding: 0; }
  .opening-portrait { width: min(80%, 320px); justify-self: center; }
  .article-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-card { width: min(94%, 560px); justify-self: center; }
  .hero-image { width: 94%; }
  .elements { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .opening-copy,
  .opening-portrait,
  .article-card,
  .story { animation: surface 700ms ease-out both; }
  @keyframes surface {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
