@font-face { font-family: "Maax"; src: url("../fonts/Maax-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Maax"; src: url("../fonts/Maax-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Maax"; src: url("../fonts/Maax-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --orange: #F6921E;
  --orange-dark: #D97A0C;
  --white: #FFFFFF;
  --ink: #262626;
  --ink-2: #414042;
  --grey-6: #58595B;
  --grey-5: #808083;
  --grey-3: #CFD1D2;
  --grey-1: #EFF0F0;
  --container: 1172px;
  --radius: 14px;
  --display: "Poppins", "Noto Sans SC", system-ui, sans-serif;
  --body: "Maax", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { background: var(--white); border-bottom: 1px solid var(--grey-1); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top .logo img { height: 30px; width: auto; }
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.top nav a:hover { color: var(--orange-dark); }

/* hero: the one dark band */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero .wrap { position: relative; z-index: 1; min-height: 480px; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: 64px; max-width: 14ch; }
.hero p { margin: 20px 0 0; max-width: 34em; color: var(--grey-3); }
.hero .pattern { position: absolute; right: -6%; top: 50%; width: 46%; max-width: 640px; transform: translateY(-50%); opacity: .9; pointer-events: none; }

/* sub-page hero */
.page-head { background: var(--ink); color: var(--white); }
.page-head .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-head h1 { font-size: 48px; }
.page-head p { margin: 12px 0 0; color: var(--grey-3); max-width: 40em; }
.crumb { display: inline-block; margin-bottom: 16px; color: var(--grey-3); text-decoration: none; }
.crumb:hover { color: var(--white); }

section.block { padding: 104px 0; }
section.block + section.block { padding-top: 0; }
.block h2 { font-size: 40px; }
.block .lead { margin: 12px 0 0; color: var(--grey-6); }
.head { margin-bottom: 40px; }

/* asset tiles */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.tile { text-decoration: none; color: var(--ink); display: block; }
.tile .art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--grey-1); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.tile .art > svg.ico { width: 64px; height: 64px; color: var(--grey-5); }
.tile:hover .art { background: #E4E5E5; }
.tile .art img { max-width: 72%; max-height: 72%; object-fit: contain; }
.tile .art img.cover { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.tile h3 { font-size: 20px; margin-top: 16px; }
.tile .meta { color: var(--grey-5); margin-top: 2px; }
.tile .lock { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.tile .lock svg { width: 15px; height: 15px; }
.tile.soon { pointer-events: none; }
.tile.soon .art { background: var(--grey-1); }
.tile.soon .art svg { width: 56px; height: 56px; color: var(--grey-3); }
.tile.soon h3, .tile.soon .meta { color: var(--grey-5); }

/* swatches / colour page */
.swatch-art { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 58%; }
.swatch-art span { aspect-ratio: 1; border-radius: 10px; }
.type-art { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1; }
.type-art small { font-family: var(--body); font-weight: 400; font-size: 44px; color: var(--grey-5); }
.lines-art { width: 60%; display: grid; gap: 10px; }
.lines-art i { display: block; height: 10px; border-radius: 5px; background: var(--grey-3); }
.lines-art i:first-child { background: var(--orange); width: 70%; }

/* templates */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl { position: relative; text-decoration: none; color: var(--ink); border: 1px solid var(--grey-1); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; transition: border-color .15s; }
.tpl:hover { border-color: var(--grey-3); }
.tpl svg.ico { width: 28px; height: 28px; color: var(--orange); flex: none; }
.tpl b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.tpl .lock { margin-left: auto; display: flex; }
.tpl .lock svg { width: 15px; height: 15px; }

/* request */
.request { border: 1px solid var(--grey-1); border-radius: var(--radius); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.request h2 { font-size: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 10px; border: 0; background: var(--orange); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: var(--grey-1); }
.btn.ghost:hover { background: #E4E5E5; }

footer { border-top: 1px solid var(--grey-1); padding: 32px 0 48px; color: var(--grey-5); }

/* detail pages */
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.file { border: 1px solid var(--grey-1); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.file .art { aspect-ratio: 1; background: var(--grey-1); display: flex; align-items: center; justify-content: center; }
.file .art > svg.ico { width: 48px; height: 48px; color: var(--grey-5); }
.file .art.dark { background: var(--ink); }
.file .art img { max-width: 78%; max-height: 78%; object-fit: contain; }
.file .info { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.file .info span { overflow-wrap: anywhere; }
.file .info a { flex: none; color: var(--orange-dark); font-weight: 500; text-decoration: none; }
.file .info a:hover { text-decoration: underline; }
.bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rules ol, .rules ul { margin: 16px 0 0; padding-left: 22px; }
.rules li + li { margin-top: 6px; }
.rules h3 { font-size: 22px; }

.colours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.colour { border: 1px solid var(--grey-1); border-radius: var(--radius); overflow: hidden; }
.colour .chip { height: 160px; }
.colour .info { padding: 18px; }
.colour b { font-family: var(--display); font-weight: 600; display: block; }
.colour button { margin-top: 8px; font: inherit; color: var(--orange-dark); background: none; border: 0; padding: 0; cursor: pointer; }
.greys { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 20px; }
.greys div { border-radius: 10px; height: 72px; border: 1px solid var(--grey-1); }
.greys p { margin: 6px 0 0; color: var(--grey-6); }

.rows { border-top: 1px solid var(--grey-1); }
.row { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--grey-1); align-items: baseline; }
.row .k { color: var(--grey-5); }
.row .v { font-family: var(--display); font-weight: 600; font-size: 22px; }

.empty { border: 1px dashed var(--grey-3); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--grey-6); }
.empty .btn { margin-top: 20px; }

/* request page form */
form.req { display: grid; gap: 20px; max-width: 640px; }
form.req label { display: grid; gap: 8px; font-weight: 500; }
form.req input, form.req textarea { font: inherit; padding: 14px 16px; border: 1px solid var(--grey-3); border-radius: 10px; background: var(--white); color: var(--ink); }
form.req input:focus, form.req textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
form.req textarea { min-height: 140px; resize: vertical; }
.notice { padding: 16px 20px; border-radius: 10px; background: var(--grey-1); }

@media (max-width: 960px) {
  .grid, .tpl-grid, .files { grid-template-columns: repeat(2, 1fr); }
  .colours { grid-template-columns: 1fr 1fr; }
  .greys { grid-template-columns: repeat(4, 1fr); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 64px; }
  .top .logo img { height: 24px; }
  .top nav { gap: 16px; }
  .top nav a.req { display: none; }
  .hero .wrap { min-height: 0; padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 40px; }
  .hero .pattern { width: 70%; right: -30%; opacity: .45; }
  .page-head h1 { font-size: 34px; }
  section.block { padding: 64px 0; }
  .block h2 { font-size: 30px; }
  .grid { gap: 28px 12px; }
  .tile h3 { font-size: 17px; margin-top: 12px; }
  .tpl-grid { grid-template-columns: 1fr; gap: 12px; }
  .files { gap: 12px; }
  .colours { grid-template-columns: 1fr; }
  .request { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .request h2 { font-size: 22px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
}
