:root {
  color-scheme: light;
  --ink: #1e2530;
  --muted: #5f6977;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #e7ded3;
  --coral: #ef765f;
  --coral-dark: #bf4938;
  --teal: #277c78;
  --yellow: #f4c95d;
  --blue: #4077b8;
  --shadow: 0 20px 50px rgba(68, 53, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(231, 222, 211, 0.78);
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 58px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  font-size: 12px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 44px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.primary:hover {
  background: #1f6663;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover {
  border-color: #d6c7b8;
  background: #ffffff;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(68, 53, 38, 0.08);
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(68, 53, 38, 0.12);
}

.app-kind {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.app-content p:not(.app-kind) {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.sub-link {
  display: inline-block;
  margin-left: 14px;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.studio-copy p:last-child,
.support-section p {
  color: var(--muted);
  font-size: 17px;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.studio-stats div {
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.studio-stats dt {
  color: var(--teal);
  font-size: 32px;
  font-weight: 900;
}

.studio-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.support-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.support-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.support-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.support-panel a {
  color: var(--teal);
  font-weight: 800;
}

.updates-hero,
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 34px;
}

.updates-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.updates-hero h1,
.admin-intro h1 {
  max-width: 820px;
}

.admin-shortcut {
  flex: 0 0 auto;
}

.update-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.filter-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.filter-tab {
  min-width: 70px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-tab.active,
.filter-tab:hover {
  color: #ffffff;
  background: var(--teal);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.92)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(68, 53, 38, 0.1);
}

.news-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
}

.news-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(68, 53, 38, 0.12);
}

.news-app,
.news-date {
  margin: 0;
}

.news-app {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.news-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.news-card-body {
  padding: 8px 20px 0;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--coral-dark);
  background: #fff0e6;
  font-size: 13px;
  font-weight: 900;
}

.news-card h3 {
  margin-top: 16px;
  font-size: 26px;
}

.news-card-body p {
  margin: 0;
  color: var(--muted);
}

.news-points {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 22px 20px 24px;
  color: var(--ink);
  list-style: none;
}

.news-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.news-points li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.admin-intro {
  max-width: 840px;
}

.admin-intro p {
  color: var(--muted);
  font-size: 17px;
}

.admin-note {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin: 20px 0 0;
  padding: 18px 18px 18px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.admin-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.data-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf9;
  font:
    13px/1.5 Consolas,
    "Courier New",
    monospace;
  resize: vertical;
}

.admin-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.admin-form,
.admin-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(68, 53, 38, 0.08);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.admin-preview {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.compact-preview {
  min-height: 360px;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.saved-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.saved-item strong,
.saved-item span {
  display: block;
}

.saved-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item span {
  color: var(--muted);
  font-size: 13px;
}

.saved-item button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--coral-dark);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 18px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .studio-section,
  .support-section,
  .updates-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .updates-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .update-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    align-self: flex-start;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding: 44px 20px 32px;
  }

  .updates-hero,
  .admin-shell {
    padding: 44px 20px 28px;
  }

  .section {
    padding: 56px 20px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .app-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-actions,
  .button,
  .admin-actions {
    width: 100%;
  }

  .sub-link {
    display: block;
    margin: 10px 0 0;
  }

  .saved-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .saved-item button {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
