:root {
  --bg: #111214;
  --surface: #1c1e22;
  --text: #f2f1ee;
  --accent: #c2a35a;
  --secondary: #8a9098;
  --highlight: #d4a84b;
  --line: #2a2d33;
  --max: 1080px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(194, 163, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, rgba(138, 144, 152, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--highlight);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(1180px, calc(100% - 40px));
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 35px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.home-intro {
  padding: 64px 0 28px;
  text-align: center;
}

.hero-logo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 14vw, 104px);
  letter-spacing: 0.06em;
  line-height: 0.92;
}

.hero-logo span {
  color: var(--accent);
}

.hero-rule {
  width: 180px;
  height: 1px;
  background: var(--secondary);
  margin: 20px 0 14px;
}

.hero-rule-center {
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 500;
}

.hero-tagline-center {
  text-align: center;
}

.hero-support {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--text);
}

.hero-support-center {
  margin-left: auto;
  margin-right: auto;
  max-width: 42em;
}

.hero-note {
  margin: 14px auto 0;
  max-width: 40em;
  color: var(--secondary);
  font-size: 15px;
}

.home-split-section {
  padding-top: 28px;
  border-top: 0;
}

.home-split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 28px;
}

.home-split-copy {
  flex: 1 1 0;
  min-width: 220px;
}

.home-split-copy .section-lead {
  margin-bottom: 16px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.about-page .page-intro p,
.about-copy p {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--secondary);
}

.about-photo {
  min-height: 360px;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.suggest-intro,
.shop-intro {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.shop-page .page-intro p,
.shop-page .section-lead,
.prototypes-page .page-intro p,
.suggest-page .page-intro p,
.suggest-page .section-lead,
.contact-page .page-intro p {
  max-width: none;
  width: 100%;
}

.suggest-page .form,
.contact-page .form {
  margin-left: auto;
  margin-right: auto;
}

.terms-copy {
  max-width: none;
  width: 100%;
}

.terms-copy h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.04em;
  color: var(--text);
}

.terms-copy h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.terms-copy p,
.terms-copy li {
  color: var(--secondary);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.terms-copy ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--secondary);
}

.terms-copy li {
  margin-bottom: 6px;
}

.terms-meta {
  color: var(--secondary);
  font-size: 14px;
}

.terms-note {
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 14px;
  margin: 0 0 20px;
  color: var(--text);
}

.cancellation-form {
  margin: 12px 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.cancellation-form p {
  margin: 0 0 12px;
}

.cancellation-form .hint {
  color: var(--secondary);
  font-size: 13px;
}

.home-split-photos {
  display: flex;
  flex: 1 1 0;
  min-width: 260px;
}

.home-rotator {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.home-rotator img,
.home-rotator-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 4s ease;
}

.home-rotator-layer.is-visible {
  opacity: 1;
  z-index: 2;
}

.home-rotator-layer.is-hidden {
  opacity: 0;
  z-index: 1;
}

.home-rotator > img:only-child,
.home-rotator > img:first-child:not(.home-rotator-layer) {
  opacity: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--highlight);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: #3a3f47;
}

.button-secondary:hover {
  border-color: var(--secondary);
  color: var(--text);
}

.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.section-lead {
  margin: 0 0 28px;
  max-width: 40em;
  color: var(--secondary);
}

.page-intro {
  padding: 48px 0 24px;
}

.page-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 56px);
  letter-spacing: 0.05em;
  line-height: 1;
}

.page-intro p {
  margin: 0;
  max-width: 40em;
  color: var(--secondary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.work-item h2 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-meta {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.work-item p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.interest-row {
  margin-top: 16px;
}

.interest-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3a3f47;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.interest-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.interest-button:disabled,
.interest-button.is-voted {
  cursor: default;
  border-color: var(--accent);
  color: var(--accent);
  opacity: 0.9;
}

.interest-icon {
  font-size: 16px;
  line-height: 1;
}

.interest-count {
  min-width: 1.25em;
  text-align: left;
  color: var(--secondary);
  font-weight: 600;
}

.interest-button.is-voted .interest-count {
  color: var(--accent);
}

.work-image {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}

.work-image-button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.work-image-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-image-empty {
  display: grid;
  place-items: center;
  color: var(--secondary);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 18, 20, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid #3a3f47;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--secondary);
}

body.lightbox-open {
  overflow: hidden;
}

.product-list {
  display: grid;
  gap: 28px;
}

.product {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.product:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-meta {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.product p {
  margin: 0 0 10px;
  max-width: 46em;
}

.product .limits {
  color: var(--secondary);
  font-size: 15px;
}

.product-item {
  margin: 18px 0 8px;
  display: grid;
  gap: 12px;
}

.product-slot {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px dashed #3a3f47;
  border-radius: 4px;
  background: rgba(28, 30, 34, 0.55);
}

.product-slot-media {
  min-height: 100px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(138, 144, 152, 0.12), transparent 55%),
    var(--surface);
}

.product-slot-copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.product-slot-copy p {
  margin: 0 0 8px;
  max-width: none;
  color: var(--secondary);
  font-size: 15px;
}

.product-info-box {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  max-width: none;
}

.product-info-box h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-info-lead {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 15px;
}

.product-info-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.product-info-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 10px;
  align-items: start;
}

.product-info-list dt {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.product-info-list dd {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.product-info-note {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 14px;
}

@media (max-width: 720px) {
  .product-slot {
    grid-template-columns: 1fr;
  }

  .product-slot-media {
    min-height: 120px;
  }

  .product-info-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.empty-state {
  color: var(--secondary);
  max-width: 40em;
}

.form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field .hint {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #3a3f47;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 12px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

input[type="file"] {
  padding: 10px;
  color: var(--secondary);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #3a3f47;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-note {
  color: var(--secondary);
  font-size: 14px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--secondary);
  font-size: 14px;
}

.site-footer .wrap {
  display: block;
}

.footer-line {
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 900px) {
  .footer-line {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 48px;
  }

  .home-intro {
    padding-top: 48px;
  }

  .home-split {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .home-split-photos {
    width: 100%;
    min-height: 240px;
  }

  .home-rotator {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
}
