:root {
  --ink: #1a1a1a;
  --paper: #faf9f6;
  --accent: #2c6e49;
  --accent-dark: #1f4d33;
  --muted: #6b6b6b;
  --border: #e2e0da;
  --max-width: 1100px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

/* Top tab nav */
header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
}
.tabs {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabs a {
  display: inline-block;
  padding: 20px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tabs a:hover,
.tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
  text-align: center;
}
.hero h3 {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
.hero .accent { color: var(--accent); }

/* Rotating art carousel — cross-fades whatever images are in /gallery */
.carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  max-height: 640px;
  overflow: hidden;
  background: var(--ink);
}
.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.carousel img.visible {
  opacity: 1;
}

/* Smaller page header used on sub-pages */
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}
.page-hero p.eyebrow {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--muted);
  font-size: 1rem;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  scroll-margin-top: 88px;
}
#offerings { padding-top: 24px; }
section + section { border-top: 1px solid var(--border); }
section h2 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

/* Grid system */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
  .tabs a { padding: 16px 10px; font-size: 0.85rem; }
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Offering cards that link out */
a.card.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.card.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
a.card.link-card .cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Pricing tiers */
.tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}
.tier .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0;
}
.tier h3 {
  margin: 0;
  font-size: 1rem;
}
.tier p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Forms */
form.commission-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 0;
  font: inherit;
}
/* honeypot field, hidden from real visitors */
.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.file-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

button.submit-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
button.submit-btn:hover { background: var(--accent-dark); }
button.submit-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 6px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: #e6f4ea;
  color: var(--accent-dark);
  border: 1px solid #b7ddc3;
}
.form-status.error {
  background: #fbeaea;
  color: #a33a3a;
  border: 1px solid #eec3c3;
}

/* Redbubble embed */
.redbubble-embed {
  display: flex;
  justify-content: center;
}

/* Updates / devlog */
.updates-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.update-entry {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.update-entry .update-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.update-entry h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.update-entry p {
  margin: 0;
  color: var(--muted);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
footer a { color: var(--muted); }
