:root {
  --bg: #fefefe;
  --bg-alt: #f7f5f2;
  --text: #292521;
  --text-muted: #7d766c;
  --accent: #e8622c;
  --accent-hover: #c94e1e;
  --border: #ece7e0;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

header.site-header h1 a {
  color: var(--text);
}

header.site-header h1 a:hover {
  color: var(--accent);
  text-decoration: none;
}

header.site-header p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

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

/* Index card grid — hand-drawn feel via wobble border + rotation on hover */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.work-card {
  display: block;
  border: 2px solid var(--text);
  border-radius: 14px 4px 14px 4px / 4px 14px 4px 14px;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  box-shadow: 5px 5px 0 var(--accent);
  transform: translate(-3px, -3px);
  text-decoration: none;
  color: var(--text);
}

.work-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--text);
}

.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card .thumb.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.work-card .card-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.work-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.work-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Work page */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

article h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 2rem;
}

article .intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

figure {
  margin: 0 0 2rem;
}

figure img {
  width: 100%;
  display: block;
  border: 2px solid var(--text);
  border-radius: 14px 4px 14px 4px / 4px 14px 4px 14px;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 2px solid var(--text);
  border-radius: 14px 4px 14px 4px / 4px 14px 4px 14px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 2px dashed var(--text);
  border-radius: 14px 4px 14px 4px / 4px 14px 4px 14px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

article section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px dotted var(--border);
  padding-top: 1.5rem;
  color: var(--accent);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

footer.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--text-muted);
}

footer.site-footer a:hover {
  color: var(--accent);
}
