/* Plak — shared frame. The frame is a quiet paper sleeve; the boldness lives in the record. */

:root {
  --paper: #f6f5f1;
  --paper-deep: #edebe4;
  --ink: #20242b;
  --graphite: #616873;
  --line: #dad7d0;
  --coral: #f06860;
  --coral-ink: #b8392f;
  --corn: #83a8e8;
  --sun: #f4c96c;
  --kraft: #c9a77c;
  --vinyl: #15161a;

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --glide: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* paper grain, like the app icon's stock */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--corn);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.display {
  font-size: clamp(2.75rem, 7.2vw, 6.4rem);
  letter-spacing: -0.034em;
  line-height: 0.92;
}

.title {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--graphite);
  max-width: 34ch;
}

.body {
  max-width: 44ch;
  color: var(--graphite);
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s var(--glide), box-shadow 0.4s var(--glide);
}
.nav.is-solid {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.07em;
  line-height: 1;
}
.brand .disc {
  width: 28px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a {
  text-decoration: none;
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--glide);
}
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after {
  transform: scaleX(1);
}
.nav .btn-store {
  --h: 42px;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn-store {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------ store button */

.btn-store {
  --h: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 22px 0 calc(var(--h) * 0.14);
  border-radius: 999px;
  background: var(--vinyl);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(21, 22, 26, 0.7);
  transition: transform 0.35s var(--glide), box-shadow 0.35s var(--glide);
  white-space: nowrap;
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(21, 22, 26, 0.75);
}
.btn-store:active {
  transform: translateY(0) scale(0.98);
}
.btn-store .disc {
  width: calc(var(--h) * 0.72);
  flex: none;
}
.btn-store:hover .disc-spin {
  animation-duration: 0.9s;
}
.btn-store span {
  display: grid;
  line-height: 1.05;
}
.btn-store small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.01em;
}
.btn-store b {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav .btn-store small {
  display: none;
}
.nav .btn-store b {
  font-size: 0.98rem;
}

.link {
  font-weight: 700;
  color: var(--coral-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ objects (see art.js) */

.disc {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  container-type: inline-size;
}
.disc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vinyl);
  box-shadow: 0 1.8cqw 4.4cqw rgba(27, 26, 23, 0.42);
}
.disc > svg,
.disc-spin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.disc-spin svg {
  width: 100%;
  height: 100%;
}
.disc.spin .disc-spin,
.btn-store .disc-spin,
.brand .disc-spin {
  animation: turn 1.8s linear infinite;
}
.brand .disc-spin {
  animation-duration: 6s;
}

.sleeve {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1.4%;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(60, 40, 18, 0.18), 0 14px 26px -12px rgba(60, 40, 18, 0.5);
}
.sleeve > div {
  position: absolute;
  inset: 0;
}
.sleeve svg {
  width: 100%;
  height: 100%;
}
.sleeve.spin .sleeve-spin {
  animation: turn 1.8s linear infinite;
}
.sleeve-stamp {
  inset: auto 2% 2% auto !important;
  width: 34%;
  height: 34%;
}

.cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1.2%;
  overflow: hidden;
  background: var(--paper-deep);
  container-type: inline-size;
}
.cover > * {
  position: absolute;
}
.cover-art,
.cover-wear {
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover-art svg {
  width: 100%;
  height: 100%;
}
.cover-head {
  left: 7%;
  right: 7%;
  top: 8%;
  font-weight: 800;
  font-size: 15cqw;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.cover-tag {
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3%;
  transform: rotate(-8deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  line-height: 1;
}
.cover-tag b {
  font-size: 4.2cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cover-tag small {
  font-size: 3cqw;
  opacity: 0.8;
  margin-top: 0.5cqw;
}
.cover-tag--tr {
  right: 4%;
  top: 4%;
}
.cover-tag--br {
  right: 4%;
  bottom: 4%;
}
.cover-tag--bl {
  left: 4%;
  bottom: 4%;
}
.cover-tag--tl {
  left: 4%;
  top: 4%;
}

@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}

/* ------------------------------------------------------------------ footer: the back of the sleeve */

.foot {
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 96px) 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.foot-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}
.foot-mark .stamp {
  width: 104px;
  flex: none;
}
.foot-word {
  font-weight: 800;
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  letter-spacing: -0.075em;
  line-height: 0.8;
}
.foot p {
  color: var(--graphite);
  font-size: 0.95rem;
}
.foot h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot ul a {
  text-decoration: none;
  font-weight: 600;
}
.foot ul a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-base {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--graphite);
  font-size: 0.88rem;
}
@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* placeholders the team still has to fill (legal name, address, e-mail…) */
mark.todo {
  background: color-mix(in srgb, var(--sun) 55%, transparent);
  color: inherit;
  padding: 0 0.25em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ------------------------------------------------------------------ document pages (gizlilik, kullanım, destek) */

.doc-head {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.doc-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}
.doc-head h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
}
.doc-head .meta {
  margin-top: 22px;
  color: var(--graphite);
  display: grid;
  gap: 2px;
  font-size: 0.98rem;
}
.doc-head .sleeve {
  width: clamp(120px, 16vw, 200px);
  transform: rotate(6deg);
}
@media (max-width: 640px) {
  .doc-head .wrap {
    grid-template-columns: 1fr;
  }
  .doc-head .sleeve {
    display: none;
  }
}

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 72px);
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  font-size: 0.94rem;
}
.toc h2 {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}
.toc a {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--graphite);
  line-height: 1.3;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc);
  font-weight: 700;
  color: var(--kraft);
}
.toc a:hover {
  background: var(--paper-deep);
  color: var(--ink);
}
.toc a.is-active {
  background: var(--ink);
  color: var(--paper);
}
.toc a.is-active::before {
  color: var(--sun);
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose .intro {
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  letter-spacing: -0.035em;
  margin-top: 2.4em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5em;
  align-items: baseline;
}
.prose h2 .n {
  color: var(--kraft);
  font-weight: 700;
  font-size: 0.8em;
  flex: none;
}
.prose h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-top: 1.9em;
}
.prose p,
.prose li {
  color: #3a3f47;
}
.prose strong {
  color: var(--ink);
}
.prose ul {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--coral);
}
.prose a {
  color: var(--coral-ink);
  text-underline-offset: 3px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-deep);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}
.table-wrap {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
}
.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.prose td:first-child {
  font-weight: 650;
  color: var(--ink);
  width: 26%;
}
.callout {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 1px 0 var(--line), 0 18px 34px -26px rgba(27, 26, 23, 0.45);
}

/* ------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ support */

.doc-head .lede {
  margin-top: 22px;
  max-width: 40ch;
}
.help {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 72px);
}
.ask {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 24px;
  background: var(--vinyl);
  color: var(--paper);
}
.ask h2 {
  font-size: 1.7rem;
}
.ask p {
  color: rgba(246, 245, 241, 0.74);
  font-size: 0.97rem;
}
.ask a[data-email] {
  color: var(--sun);
  font-weight: 700;
  font-size: 1.08rem;
  word-break: break-all;
}
.ask mark.todo {
  color: var(--ink);
}
.ask ul {
  margin: 0;
  padding-left: 1.1em;
  color: rgba(246, 245, 241, 0.74);
  font-size: 0.95rem;
  display: grid;
  gap: 4px;
}
.ask .disc {
  width: 56px;
}
@media (max-width: 900px) {
  .help {
    grid-template-columns: 1fr;
  }
  .ask {
    position: static;
    order: 2;
  }
}

.faq-group + .faq-group {
  margin-top: clamp(40px, 5vw, 64px);
}
.faq-group > h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--paper-deep);
  transition: transform 0.4s var(--glide), background-color 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--sun);
}
.faq summary:hover {
  color: var(--coral-ink);
}
.faq .a {
  padding: 0 44px 24px 0;
  color: #3a3f47;
  max-width: 66ch;
  display: grid;
  gap: 0.8em;
}
.faq .a ol,
.faq .a ul {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 4px;
}
.faq details[open] .a {
  animation: open 0.45s var(--glide);
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
