/* flowgrammer.com — shared styles */

:root {
  --bg: #181915;
  --text: hsl(80, 15%, 92%);
  --text-muted: hsl(80, 8%, 65%);
  --accent: #9bcf00;
  --accent-hover: #8ae600;
  --border: hsl(80, 8%, 14%);
  --font-heading: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 42rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #181915;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0 0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star' fill='%23282a23' fill-opacity='0.2'%3E%3Cpath d='M20 10a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20 75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

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

@media (min-width: 48rem) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

/* —— Site header + social —— */

.site-header {
  display: flex;
  justify-content: center;
  padding-block: calc(var(--space-sm) * 1.1) calc(var(--space-xs) * 1.1);
}

@media (min-width: 48rem) {
  .site-header {
    padding-block: var(--space-lg) var(--space-lg);
  }
}

.site-header > * {
  width: min(62%, 15.5rem);
  flex-shrink: 0;
}

.site-header a {
  display: block;
  text-decoration: none;
}

.site-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 48rem) {
  .site-header > * {
    width: 100%;
  }

  .site-logo {
    max-height: 11rem;
  }
}

/* —— Social —— */

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

@media (min-width: 48rem) {
  .social {
    padding-bottom: var(--space-lg);
  }
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-btn:hover,
.social-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: hsl(84 100% 6% / 0.15);
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* —— Sections —— */

.section-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

/* —— Todo list —— */

.todo {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
}

.todo li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.todo-box {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2em;
  border: 1.5px solid var(--text-muted);
  border-radius: 0.2rem;
  pointer-events: none;
  position: relative;
}

.todo--done .todo-box {
  border-color: var(--accent);
  background: var(--accent);
}

.todo--done .todo-box::after {
  content: "";
  position: absolute;
  left: calc(0.2rem + 2px);
  top: 0.05rem;
  width: 0.35rem;
  height: 0.6rem;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.todo-label {
  flex: 1;
}

/* —— Video grid —— */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  overflow: hidden;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— Manifesto —— */

.manifesto {
  margin-bottom: var(--space-xl);
}

.manifesto p {
  margin: 0 0 var(--space-md);
}

.manifesto strong {
  font-weight: 600;
  color: var(--text);
}

/* —— CTA —— */

.cta {
  margin-bottom: var(--space-xl);
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  border: 1px solid hsl(80 10% 22%);
  border-radius: 0.5rem;
  background: hsl(80 8% 11%);
  box-shadow: 0 1px 0 hsl(80 15% 18% / 0.6) inset;
}

.cta-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Studios logo —— */

.studios-logo {
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0 auto var(--space-xl);
}

/* —— Footer —— */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer a {
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* —— Imprint page —— */

.page-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.prose {
  margin-bottom: var(--space-xl);
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}
