﻿@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #4b5563;
  --card: #f5f5f7;
  --line: #e5e7eb;
  --brand: #ff2d55;
  --brand-strong: #be123c;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.nav a {
  margin-left: 18px;
  color: var(--muted);
  font-weight: 500;
}

.hero {
  padding: 60px 0 30px;
  animation: fadeUp 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

main h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  font-size: 1.1rem;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.search-bar input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 40px 0 18px;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.media-block {
  margin-top: 10px;
}

.media-lede {
  color: var(--muted);
  margin: -6px 0 18px;
}

.cover-strip {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
  margin-bottom: 24px;
}

.cover-copy {
  display: grid;
  gap: 6px;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.cover-card {
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cover-card img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-strip {
  display: grid;
  gap: 12px;
}

.shot-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.shot-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.shot-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.shot-card img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.app-card {
  display: grid;
  gap: 12px;
  position: relative;
  padding: 20px;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.app-card__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 120px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-letter {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--muted);
}

.card h3 {
  margin: 12px 0 6px;
}

.card .app-card__body h3 {
  margin: 0;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card .badge {
  align-self: start;
  justify-self: start;
  background: rgba(255,255,255,0.9);
}

.app-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: calc(1.45em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: calc(1.25em * 2 + 1.45em * 3 + 6px);
}

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

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.app-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
}

.app-hero .icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.app-hero .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tag-list a {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.form input,
.form textarea,
.form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

.notice {
  padding: 12px 14px;
  background: #fff3f6;
  border: 1px solid #ffd6e0;
  border-radius: 10px;
  margin-bottom: 16px;
}

.test-card .form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.test-card .test-choice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-card .test-choice input {
  margin: 0;
}

.admin-media-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-media-thumb--wide {
  width: 200px;
  height: 112px;
  border-radius: 18px;
}

.admin-media-thumb--tall {
  width: 100px;
  height: 168px;
  border-radius: 20px;
}

.admin-nav a {
  margin-right: 12px;
  font-weight: 600;
}

.fade-up {
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }
  .cover-strip {
    grid-template-columns: 1fr;
  }
  .shot-row {
    grid-auto-columns: minmax(140px, 180px);
  }
  .app-hero {
    grid-template-columns: 1fr;
  }
  .search-bar {
    flex-direction: column;
  }
  .latest-posts .card:nth-child(n+7) {
    display: none;
  }
}


