/*
Theme Name: Rob Grasska
Theme URI: https://robgrasska.com
Author: Rob Grasska
Description: A one-screen personal landing page (photo, name, three links, contact form) plus a Mammoth Lakes studios page. No dependencies, self-hosted fonts, form handled by WordPress.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: robgrasska
*/

/* ============ Fonts (bundled) ============ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ============ Tokens ============ */
:root {
  --rg-bg: #f5f6f7; --rg-ink: #16202a; --rg-mute: #6b7684; --rg-line: #dfe3e8; --rg-card: #ffffff;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rg-bg); color: var(--rg-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

/* ============ Landing (front page) ============ */
.rg-landing { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; }
.admin-bar .rg-landing { min-height: calc(100vh - 32px); }
.rg-landing .col { width: 100%; max-width: 380px; text-align: center; }
.rg-landing .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; display: block; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(16,24,40,.12); }
.rg-landing h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.rg-landing .sub { margin-top: 4px; font-size: 13px; color: var(--rg-mute); }
.rg-landing .stack { margin-top: 24px; display: grid; gap: 10px; }
.rg-landing footer { margin-top: 26px; font-size: 11.5px; color: #98a2ad; }

.btn { display: block; width: 100%; background: var(--rg-card); border: 1px solid var(--rg-line); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--rg-ink); box-shadow: 0 1px 2px rgba(16,24,40,.04); cursor: pointer; text-align: center; line-height: 1.3; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,24,40,.08); border-color: #cfd5dc; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--rg-ink); outline-offset: 2px; }
.btn.dark { background: var(--rg-ink); color: #fff; border-color: var(--rg-ink); }
.btn.dark:hover { box-shadow: 0 6px 18px rgba(22,32,42,.25); }

/* ============ Contact dialog ============ */
.rg-dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--rg-card); color: var(--rg-ink); box-shadow: 0 24px 60px rgba(16,24,40,.25); }
.rg-dialog::backdrop { background: rgba(16,24,40,.45); backdrop-filter: blur(2px); }
.rg-dialog .dlg { padding: 24px 24px 22px; }
.rg-dialog .dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rg-dialog h2 { font-size: 18px; font-weight: 600; }
.rg-dialog .hint { font-size: 13px; color: var(--rg-mute); margin-bottom: 16px; }
.rg-dialog .x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--rg-mute); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.rg-dialog .x:hover { background: var(--rg-bg); color: var(--rg-ink); }
.rg-dialog label { display: block; font-size: 12.5px; font-weight: 500; color: #3b4652; margin: 12px 0 6px; }
.rg-dialog input, .rg-dialog textarea { width: 100%; font-size: 15px; padding: 11px 12px; border: 1px solid var(--rg-line); border-radius: 10px; background: #fff; color: var(--rg-ink); }
.rg-dialog input:focus, .rg-dialog textarea:focus { outline: 2px solid var(--rg-ink); outline-offset: 0; border-color: var(--rg-ink); }
.rg-dialog textarea { min-height: 120px; resize: vertical; }
.rg-dialog .hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
.rg-dialog .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.rg-dialog .send { background: var(--rg-ink); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
.rg-dialog .send[disabled] { opacity: .6; cursor: default; }
.rg-dialog .status { font-size: 13px; color: var(--rg-mute); min-height: 1.2em; }
.rg-dialog .status.err { color: #b42318; }
.rg-dialog .done { text-align: center; padding: 18px 0 6px; }
.rg-dialog .done h2 { margin-bottom: 6px; }
.rg-dialog .done p { color: var(--rg-mute); font-size: 14px; }
.rg-dialog .cf-turnstile { margin-top: 14px; }

/* ============ Studios page ============ */
.rg-studios { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px 24px 56px; }
.rg-studios .back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--rg-mute); margin-bottom: 26px; }
.rg-studios .back:hover { color: var(--rg-ink); }
.rg-studios h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.rg-studios .sub { margin-top: 6px; font-size: 14px; color: var(--rg-mute); }
.rg-studios .intro { margin-top: 14px; font-size: 15px; color: #3a4552; }
.rg-studios .intro p { margin: 0 0 10px; }
.rg-studios .cards { margin-top: 24px; display: grid; gap: 16px; }
.rg-studios .card { background: var(--rg-card); border: 1px solid var(--rg-line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .15s ease, transform .15s ease; }
.rg-studios .card:hover { box-shadow: 0 8px 24px rgba(16,24,40,.10); transform: translateY(-1px); }
.rg-studios .photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e6eaef; }
.rg-studios .body { padding: 14px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rg-studios .body h2 { font-size: 16px; font-weight: 600; }
.rg-studios .body p { margin-top: 3px; font-size: 13px; color: var(--rg-mute); }
.rg-studios .go { flex: none; background: var(--rg-ink); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rg-studios .go:hover { box-shadow: 0 4px 14px rgba(22,32,42,.22); }
.rg-studios footer { margin-top: 30px; font-size: 11.5px; color: #98a2ad; }

/* ============ Generic page (anything else you add) ============ */
.rg-page { width: 100%; max-width: 640px; margin: 0 auto; padding: 40px 24px 56px; }
.rg-page .back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--rg-mute); margin-bottom: 26px; }
.rg-page h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.rg-page .entry { font-size: 16px; }
.rg-page .entry p { margin: 0 0 14px; }
.rg-page .entry a { text-decoration: underline; }
.rg-page footer { margin-top: 30px; font-size: 11.5px; color: #98a2ad; }

/* ============ Small screens ============ */
@media (max-width: 480px) {
  .rg-studios, .rg-page { padding: 28px 16px 48px; }
  .rg-studios .body { flex-direction: column; align-items: stretch; }
  .rg-studios .go { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .rg-studios .card { transition: none; }
}
