/* Studio Paper v1 — Made for Greatness Labs
   Tokens + production stylesheet. */

/* ---------------------------------------------------------------- tokens */

:root {
  --paper: #f6f1e8;
  --paper-elevated: #fffbf5;
  --ink: #141311;
  --ink-muted: #5c574f;
  --line: #e2d9c8;
  --copper: #b8844f;
  --copper-soft: #c9a06a;
  --focus: #141311;

  --max: 1120px;
  --pad: 24px;
  --radius: 10px;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-display: clamp(2.75rem, 7.2vw, 4.5rem);
  --step-h1: clamp(1.875rem, 4.2vw, 2.75rem);
  --step-h2: clamp(1.25rem, 2.2vw, 1.5rem);
  --step-body: clamp(0.9375rem, 1.05vw, 1rem);
  --step-caption: 0.6875rem;

  --section-y: 64px;
}

@media (min-width: 640px) {
  :root {
    --pad: 32px;
    --section-y: 88px;
  }
}

@media (min-width: 960px) {
  :root {
    --pad: 40px;
    --section-y: 112px;
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

.section {
  border-top: 1px solid var(--line);
  padding-block: var(--section-y);
  scroll-margin-top: 72px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: var(--step-caption);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-display);
  line-height: 1.04;
  letter-spacing: -0.021em;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-h1);
  line-height: 1.12;
  letter-spacing: -0.017em;
}

.lede {
  color: var(--ink-muted);
  max-width: 34rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}

.wordmark__tag {
  font-family: var(--font-ui);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 140ms ease;
}

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

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: clamp(56px, 11vw, 132px) clamp(64px, 12vw, 148px);
}

.hero__headline {
  max-width: 21ch;
}

.hero__lede {
  margin-top: 28px;
}

.button {
  display: inline-block;
  margin-top: 34px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper-elevated);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.button:hover {
  background: var(--paper-elevated);
  color: var(--ink);
}

/* ------------------------------------------------------------------ apps */

.apps__title {
  max-width: 24ch;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

@media (min-width: 640px) {
  .card {
    padding: 28px;
  }
}

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

.card__icon {
  flex: none;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.card__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card__eyebrow {
  margin: 0 0 6px;
  font-size: var(--step-caption);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.card__line {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.card__points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.card__points li {
  border-top: 1px solid var(--line);
  padding-block: 12px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.card__link {
  margin-top: 22px;
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease;
}

.card__link:hover {
  color: var(--copper);
}

.card__link-arrow {
  display: inline-block;
  margin-left: 0.15em;
  transition: transform 140ms ease;
}

.card__link:hover .card__link-arrow {
  transform: translateX(2px);
}

/* ------------------------------------------------------------------- who */

.who__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .who__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.who__title {
  max-width: 16ch;
}

.who__body {
  color: var(--ink-muted);
  max-width: 36rem;
}

/* --------------------------------------------------------------- contact */

.contact__email {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.014em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 140ms ease;
}

.contact__email:hover {
  text-decoration-color: var(--copper);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ------------------------------------------------------------- a11y prefs */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
