@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #121215;
  --surface-2: #1a1a1e;
  --border: #25252a;
  --border-strong: #37373e;
  --text: #f3f3f4;
  --muted: #a0a0a8;
  --accent: #5b93ff;
  --btn: #2f6bed;
  --btn-hover: #4b80f2;
  --accent-soft: rgba(91, 147, 255, 0.12);
  --danger: #ff8080;
  --grid: rgba(255, 255, 255, 0.075);
  --header-bg: rgba(18, 18, 21, 0.82);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #efeff2;
  --border: #e3e3e8;
  --border-strong: #cdcdd5;
  --text: #0c0c0f;
  --muted: #5c5c66;
  --accent: #2563eb;
  --btn: #2563eb;
  --btn-hover: #1d4fd0;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --danger: #c92a2a;
  --grid: rgba(0, 0, 0, 0.085);
  --header-bg: rgba(255, 255, 255, 0.85);
}

:root {
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
  --nav-h: 92px;
  --radius: 8px;
  --ease: 180ms ease;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body,
a,
button,
.header-card,
.section,
.card,
.service,
.review,
.contact-panel,
.footer-card {
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
}

.header-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 10px 0 16px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a,
.nav-links button {
  display: block;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

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

.nav-links button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-btn:disabled:hover {
  color: var(--muted);
  background: transparent;
}

:root[data-theme="dark"] .icon-moon,
:root:not([data-theme]) .icon-moon,
:root[data-theme="light"] .icon-sun {
  display: none;
}

.menu-btn,
.nav-social {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-menu,
.menu-btn[aria-expanded="false"] .icon-close {
  display: none;
}

@media (pointer: coarse) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 799px) {
  .header-social {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-btn {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex: 0;
    padding: 4px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--ease), transform var(--ease), visibility 0s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.0625rem;
    text-align: left;
  }

  .nav-links li:last-child a,
  .nav-links li:last-child button {
    border-bottom: 0;
  }

  .nav-social {
    display: block;
  }

  .nav-social a,
  .nav-social button {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1rem;
  }

  .header-card {
    padding-left: 12px;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
}

.btn-primary:hover:not([disabled]) {
  background: var(--btn-hover);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  border-color: var(--border-strong);
  color: var(--danger);
}

.btn-danger:hover:not([disabled]) {
  border-color: var(--danger);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.arrow {
  display: inline-block;
  transition: transform var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 10vw, 112px) 0 clamp(72px, 11vw, 120px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-position: center top;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 85% at 50% 30%, #000 20%, transparent 75%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}

.rating-pill:hover {
  border-color: var(--accent);
}

.rating-pill .star {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-role {
  margin-top: 20px;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
  margin-top: 12px;
  color: var(--muted);
}

.hero-meta li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 14px;
  background: var(--border-strong);
  vertical-align: -2px;
}

.hero-quote {
  max-width: 28em;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  font-style: italic;
}

.hero .actions {
  justify-content: center;
  margin-top: 36px;
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid var(--border);
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 48px);
  text-align: center;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-panel .section-tag {
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.0625rem;
}

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

.about-text {
  max-width: 34em;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.chips li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Projects */

.project {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--ease), color var(--ease), background-color var(--ease), border-color var(--ease);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-category {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

.get-it {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.get-it::after {
  content: "";
  position: absolute;
  inset: 0;
}

.get-it:focus-visible {
  outline: none;
}

.get-it:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

@media (hover: hover) {
  .card:has(.get-it):hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
  }

  .card:has(.get-it):hover .arrow {
    transform: translateX(3px);
  }

  .card:has(.get-it):hover .card-media img {
    transform: scale(1.02);
  }
}

.docs-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.docs-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-row {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.project-row > .project {
  flex: 0 0 min(82%, 340px);
  scroll-snap-align: start;
}

@media (min-width: 960px) {
  .project-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 24px;
  align-items: start;
}

.page-head {
  padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 40px);
}

.page-head .section-title {
  margin-bottom: 0;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.projects-page {
  padding-bottom: clamp(64px, 10vw, 112px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.filter:hover {
  color: var(--text);
}

.filter[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.empty {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.service {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service h3 .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.service p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reviews */

.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 32px;
}

.review-score {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.review-count {
  color: var(--muted);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  line-height: 1;
}

.stars .off {
  color: var(--border-strong);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-media {
  display: flex;
  justify-content: center;
  margin: -16px -18px 4px;
  overflow: hidden;
  background: var(--surface-2);
}

.review-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review-name {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.review .stars {
  flex: 0 0 auto;
  font-size: 0.875rem;
}

.review-text {
  min-height: 2.8em;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8125rem;
}

.empty-card {
  padding: 36px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Forms and dialogs */

.dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dialog form,
.dialog-body {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 28px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  font-size: 1.5rem;
}

.dialog-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.925rem;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-weight: 400;
}

.field-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

input[type="text"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.star-input label {
  padding: 0 2px;
  color: var(--border-strong);
  font-size: 1.875rem;
  line-height: 1.2;
  cursor: pointer;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
  color: var(--accent);
}

.star-input input:focus-visible + label {
  outline: 2px solid var(--accent);
  border-radius: 6px;
}

.form-note {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-note.error {
  color: var(--danger);
}

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

/* Contact */

.contact-panel {
  padding: clamp(32px, 6vw, 64px) var(--gutter);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.contact-panel p {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-panel .actions {
  justify-content: center;
}

/* Staffing and 404 */

.notice {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 64px 0;
  text-align: center;
}

.notice::before {
  content: "";
  width: 40px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--accent);
}

.notice h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.notice p {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 1.25rem;
}

/* Footer */

.site-footer {
  padding: clamp(24px, 4vw, 40px) 0 32px;
}

.footer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-name {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.footer-slogan {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social .icon-btn {
  border: 1px solid var(--border-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-legal {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--text);
}

/* Legal pages */

.legal {
  max-width: 42em;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 10vw, 96px);
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal .updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 650;
}

.legal p,
.legal li {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25em;
  list-style: disc;
}

.legal a {
  color: var(--accent);
}

.legal a:hover {
  text-decoration: underline;
}

/* Admin */

.admin {
  padding: 32px 0 80px;
}

.admin-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-back:hover {
  color: var(--text);
}

.admin-card {
  width: min(420px, 100%);
  margin: 8vh auto 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-card form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin .filters {
  justify-content: flex-start;
  margin-bottom: 20px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-main {
  display: flex;
  flex: 1 1 320px;
  gap: 14px;
  min-width: 0;
}

.admin-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-sub {
  color: var(--muted);
  font-size: 0.875rem;
}

.admin-message {
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 55px;
  border-radius: 8px;
  background: var(--surface-2);
  object-fit: cover;
}

.badge {
  padding: 1px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.live {
  border-color: var(--accent);
  color: var(--accent);
}

.image-preview {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--surface-2);
  object-fit: cover;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .card:has(.get-it):hover,
  .card:has(.get-it):hover .card-media img,
  .card:has(.get-it):hover .arrow,
  .btn:hover .arrow {
    transform: none;
  }
}
