:root {
  color-scheme: light;
  --paper: #f2efe6;
  --paper-deep: #e5dfd1;
  --ink: #171713;
  --muted: #68665e;
  --line: rgba(23, 23, 19, 0.18);
  --accent: #a83f1f;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(34, 31, 24, 0.18);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 23, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
}

button,
input,
a {
  font: inherit;
}

button,
input {
  color: inherit;
}

a {
  color: inherit;
}

code {
  padding: 0.08em 0.28em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.52);
  font-size: 0.9em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.collection,
.artwork,
.install,
.making {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 40px;
  padding: 5px 6px;
  border-radius: 4px;
  background: var(--ink);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.device-meta {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.support-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.support-button:hover {
  background: var(--accent);
  color: var(--white);
}

.device-meta span + span::before {
  content: "/";
  margin-right: 9px;
  color: var(--line);
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-block: 72px 90px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 6.4vw, 90px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  color: var(--muted);
  font-weight: 400;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.mode-switch {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.54);
}

.mode-button {
  min-width: 132px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
}

.mode-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.mode-button:focus-visible,
.button:focus-visible,
.asset-preview-button:focus-visible,
.dialog-close:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.device-stage {
  display: grid;
  justify-items: center;
}

.device-mockup {
  --screen-top: 4.8907%;
  --screen-left: 10.4132%;
  --screen-width: 79.3388%;
  --screen-height: 83.2466%;
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 605 / 961;
}

.device-mockup::after {
  content: "";
  position: absolute;
  top: calc(var(--screen-top) - 1px);
  left: calc(var(--screen-left) - 1px);
  z-index: 2;
  width: calc(var(--screen-width) + 2px);
  height: calc(var(--screen-height) + 2px);
  background: #000;
  pointer-events: none;
}

.device-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.asset-preview {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.device-screen {
  position: absolute;
  top: var(--screen-top);
  left: var(--screen-left);
  z-index: 3;
  width: var(--screen-width);
  height: var(--screen-height);
  overflow: hidden;
  background: #000;
}

.device-screen > img,
.asset-preview > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mode-custom > img {
  object-fit: cover;
  background: #000;
}

.page-sample {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background: #f7f5ee;
}

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

.mode-page-overlay .page-sample {
  display: block;
}

#hero-preview.is-inking-out {
  animation: hero-ink-out 650ms steps(4, end) both;
}

#hero-preview.is-inking-in {
  animation: hero-ink-in 650ms steps(4, end) both;
}

#hero-preview.is-ink-hidden {
  opacity: 0;
}

@keyframes hero-ink-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes hero-ink-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.preview-caption {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.collection,
.artwork,
.install {
  padding-block: 90px 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.pack-list {
  display: grid;
  gap: 24px;
}

.pack-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 247, 0.66);
}

.pack-visual {
  min-height: 340px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 2px;
  padding: clamp(12px, 2vw, 24px);
  background: #292824;
}

.pack-visual .asset-preview {
  width: 100%;
  aspect-ratio: 3 / 5;
  box-shadow: none;
}

.pack-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 68px);
}

.pack-content h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.pack-description {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.pack-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pack-meta {
  margin: auto 0 20px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pack-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 740;
}

.artwork {
  padding-top: 100px;
}

.artwork-heading {
  margin-bottom: 24px;
}

.artwork-controls {
  width: min(330px, 100%);
  display: grid;
  gap: 14px;
}

.artwork-controls .mode-switch {
  display: flex;
}

.artwork-controls .mode-button {
  min-width: 0;
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.artwork-status {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.artwork-status p {
  margin-bottom: 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.62);
}

.asset-preview-button {
  width: 100%;
  display: block;
  padding: 14px;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.asset-preview {
  width: 100%;
  aspect-ratio: 3 / 5;
  box-shadow: 0 8px 22px rgba(34, 31, 24, 0.12);
}

.asset-info {
  padding: 16px;
}

.asset-info h3 {
  margin: 0 0 6px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-meta {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.asset-download {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 720;
  text-underline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.install-steps li {
  min-height: 240px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.install-steps li:first-child {
  border-left: 1px solid var(--line);
}

.install-steps li > span {
  display: block;
  margin-bottom: 56px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.install-steps h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.install-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.install-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--accent);
  background: rgba(212, 86, 45, 0.05);
}

.install-warning > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.install-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.install-warning p + p {
  margin-top: 8px;
}

.install-warning strong {
  color: var(--ink);
}

.making {
  padding-block: 110px 130px;
  border-top: 1px solid var(--line);
}

.making h2 {
  max-width: 800px;
  margin-bottom: 28px;
}

.making-copy {
  max-width: 680px;
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.making-copy p {
  margin: 0;
}

.making-credit {
  margin-top: 20px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0 0 5px;
}

.site-footer a {
  color: inherit;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.preview-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
}

.preview-dialog::backdrop {
  background: rgba(18, 17, 14, 0.78);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 650px;
}

.dialog-device {
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
  background: var(--paper-deep);
}

.dialog-mockup {
  width: min(360px, 100%);
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 7vw, 78px);
}

.dialog-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 64px);
}

.dialog-copy > p:not(.kicker) {
  margin-bottom: 34px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .device-stage {
    padding-top: 12px;
  }

  .device-mockup {
    width: min(340px, 82vw);
  }

  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .install-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-steps li:nth-child(3) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pack-card {
    grid-template-columns: 1fr;
  }

  .pack-visual {
    height: auto;
    min-height: 0;
    align-content: start;
  }

  .pack-visual .asset-preview {
    min-width: 0;
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artwork-heading {
    align-items: stretch;
  }

  .artwork-controls,
  .search-field {
    width: 100%;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-device {
    min-height: 500px;
  }

  .dialog-copy {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .collection,
  .artwork,
  .install,
  .making {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .device-meta {
    display: none;
  }

  h1 {
    font-size: clamp(52px, 15.5vw, 76px);
  }

  .hero-actions,
  .mode-switch {
    width: 100%;
  }

  .mode-button {
    min-width: 0;
    flex: 1;
  }

  .collection,
  .artwork,
  .install {
    padding-block: 74px 86px;
  }

  .asset-grid {
    gap: 12px;
  }

  .asset-preview-button {
    padding: 8px;
  }

  .asset-info {
    padding: 12px;
  }

  .asset-info h3 {
    font-size: 18px;
  }

  .asset-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .artwork-status p:last-child {
    display: none;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-steps li,
  .install-steps li:nth-child(3) {
    min-height: 0;
    border-left: 1px solid var(--line);
  }

  .install-steps li > span {
    margin-bottom: 28px;
  }

  .making {
    padding-block: 88px;
  }

  .site-footer {
    padding-block: 28px;
  }

  .dialog-device {
    min-height: 430px;
    padding: 34px;
  }

  .dialog-copy {
    padding: 42px 28px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
