/* Zosha Studios landing page (zosha.net): the wordmark and one arch per project. */

@font-face {
  font-family: 'Alegreya Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/alegreya-latin-wght.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/alegreya-sans-latin-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/alegreya-sans-latin-500.woff2) format('woff2');
}

:root {
  --font-serif: 'Alegreya Variable', Alegreya, Georgia, 'Times New Roman', serif;
  --font-sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bg: #e4e6e0;
  --ink: #18213f;
  --ink-muted: #4a5272;
  --line: rgba(24, 33, 63, 0.22);
  --focus: #1f3f8f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a30;
    --ink: #f2ebd8;
    --ink-muted: #b4b9cc;
    --line: rgba(242, 235, 216, 0.2);
    --focus: #e3c27a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }

.page {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 48px) 24px;
}

.wordmark { line-height: 0; }
.wordmark img { display: block; width: clamp(240px, 52vw, 460px); height: auto; margin-inline: auto; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(30px, 5vw, 60px);
}

.panel { display: block; text-decoration: none; color: inherit; }
.panel:focus-visible { outline: none; }

.arch {
  aspect-ratio: 400 / 520;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: 8px;
  background: #222;
  /* the one page-load moment: the arches open upward in turn */
  animation: open 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.projects li:nth-child(2) .arch { animation-delay: 130ms; }
.arch svg { width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel:hover .arch svg, .panel:focus-visible .arch svg { transform: scale(1.045); }
.panel:focus-visible .arch { outline: 3px solid var(--focus); }

.caption { margin-top: 26px; }
.title { font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; }
.panel:hover .title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.blurb {
  margin-top: 6px;
  max-width: 32ch;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.footer {
  padding: 28px 24px 34px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@keyframes open {
  from { clip-path: inset(100% -12px -12px -12px); }
  to { clip-path: inset(-12px); }
}

@media (max-width: 700px) {
  .projects { grid-template-columns: minmax(0, 340px); justify-content: center; gap: 52px; }
  .caption { text-align: center; }
  .blurb { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .arch { animation: none; }
  .arch svg { transition: none; }
}
