:root { color-scheme: dark; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #e8e8e8; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 22px;
}
.site-header a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.site-header a:hover { text-decoration: none; opacity: 0.6; }

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60vh;
}

.loading, .noscript {
  color: #777;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 80px 0;
}

/* ---------- Home ---------- */

.panel {
  display: block;
  position: relative;
  margin-bottom: 26px;
  overflow: hidden;
  background: #141414;
}
.panel:hover { text-decoration: none; }
.panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.panel:hover img { opacity: 0.9; }
.panel-name {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.panel-caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ---------- Theme grid ---------- */

.theme-head { margin: 6px 0 26px; }
.theme-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.theme-head .count {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #777;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #141414;
  overflow: hidden;
}
.cell:hover { text-decoration: none; }
.cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.cell:hover img { opacity: 0.85; }
.cell-caption {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Detail ---------- */

.detail-nav { margin: 6px 0 20px; }
.detail-nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}

.detail-figure { margin: 0 auto; max-width: 1020px; }
.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  background: #000;
}
.meta {
  text-align: right;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #bbb;
}
.meta .label {
  color: #777;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 8px;
}

.detail-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1020px;
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px solid #222;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.detail-pager .position { color: #777; font-size: 12px; }
.detail-pager a.disabled {
  color: #555;
  pointer-events: none;
  text-decoration: none;
}

/* ---------- Contact ---------- */

.contact { max-width: 560px; margin: 6px auto 0; }
.contact h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.contact-intro { margin: 0 0 26px; font-size: 13px; color: #999; }
.contact label {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}
.contact input,
.contact textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  color: #e8e8e8;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.contact input:focus,
.contact textarea:focus { outline: none; border-color: #555; }
.contact textarea { resize: vertical; min-height: 140px; }
#turnstile-widget { margin-bottom: 18px; }
.contact button {
  background: #e8e8e8;
  color: #0a0a0a;
  border: none;
  padding: 11px 26px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact button:hover { opacity: 0.85; }
.contact button:disabled { opacity: 0.5; cursor: default; }
.form-status { margin-top: 16px; min-height: 18px; font-size: 13px; color: #999; }
.form-status.error { color: #d98a8a; }

/* ---------- About ---------- */

.about { max-width: 680px; margin: 6px auto 0; }
.about h1 {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.about h2 {
  margin: 36px 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.about h3 {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #e8e8e8;
}
.about p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
}
.about ul { margin: 0 0 22px; padding: 0; list-style: none; }
.about li { font-size: 14px; line-height: 1.8; color: #bbb; }
.about .equip-photo { display: block; max-width: 100%; height: auto; margin: 40px auto 0; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1180px;
  margin: 70px auto 0;
  padding: 26px 20px 42px;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #777;
}
.site-footer a { color: #777; }
.site-footer .sep { margin: 0 10px; color: #333; }

@media (max-width: 640px) {
  .panel img { aspect-ratio: 16 / 10; }
  .panel-name { font-size: 19px; left: 16px; bottom: 12px; }
  .panel-caption { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .theme-head h1 { font-size: 19px; }
}
