/* Professional accomplishments portfolio - shared styles */
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #e8e6e3;
  --text-muted: #9a9691;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --border: #2a2a2a;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: font-family: 'Century Gothic', 'CenturyGothic', 'Apple Gothic', sans-serif;
  --space: 0.75rem;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.site-header {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

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

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

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--space) * 1.5);
}

/* Landing / index */
.hero {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36ch;
  margin: 0 auto 1rem;
}

.accomplishment-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  padding-bottom: 2rem;
}

.accomplishment-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

@media (min-width: 600px) {
  .accomplishment-card {
    flex-direction: row;
    align-items: center;
  }
}

.accomplishment-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.accomplishment-card .thumb {
  flex-shrink: 0;
  width: auto;
  max-width: 150px;
  aspect-ratio: unset;
  background: var(--border);
  overflow: visible;
}

.accomplishment-card .thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  display: block;
}

.accomplishment-card .meta {
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  flex: 1;
}

.accomplishment-card h3 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
  color: var(--text);
}

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

/* Detail page */
.page-header {
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 0.25rem;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.screenshot-section {
  padding: 1rem 0;
}

.screenshot-section h2 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.screenshot-section figure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 600px) {
  .screenshot-section figure {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
}

.screenshot-section figure:last-child {
  margin-bottom: 0;
}

.screenshot-section figure img {
  flex-shrink: 0;
  width: 120px;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
}

@media (min-width: 600px) {
  .screenshot-section figure img {
    width: 160px;
  }
}

.screenshot-section figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

/* Footer */
.site-footer {
  padding: 1rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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