/* I Spilt It — main stylesheet */
/* Noto Serif 500 + Noto Sans 300 loaded via <link> in each page's <head> */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222222;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --accent-hover: #ffc04a;
  --danger: #e55;
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: 'Noto Sans', sans-serif;
  --radius: 6px;
  --max-width: 900px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ── Typography ── */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header .logo a {
  color: inherit;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.footer-brand img {
  width: 2.75rem;
  height: auto;
  display: block;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.footer-brand:hover img { opacity: 1; }

.footer-copy {
  font-family: 'Noto Sans', serif;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  text-decoration: none;
}
.footer-copy:hover { opacity: 0.8; color: var(--text-muted); text-decoration: none; }
.footer-sep { color: var(--text-muted); opacity: 0.3; font-size: 0.7rem; margin: 0 0.2rem; }

.artist-header h1 {
  font-family: 'Noto Serif', serif;
  font-weight: 500;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-danger:hover {
  border-color: var(--danger);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

/* ── Form elements ── */

input[type="text"],
input[type="url"],
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field {
  margin-bottom: 1.2rem;
}

/* ── Timestamp display ── */

.timestamp {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Utility ── */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

/* ── Status / alerts ── */

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(220, 50, 50, 0.12);
  border: 1px solid rgba(220, 50, 50, 0.3);
  color: #f87;
}

.alert-success {
  background: rgba(50, 200, 100, 0.12);
  border: 1px solid rgba(50, 200, 100, 0.3);
  color: #6f8;
}

/* ── Edit link (viewer) ── */
.edit-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.edit-link:hover { opacity: 1; color: var(--accent); }

/* ── Mobile: hide "with Google" label on sign-in buttons ── */
@media (max-width: 560px) {
  .g-label-full { display: none; }
}
