/* Minimalist, zero-clutter personal portfolio stylesheet */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e5e5e5;
  --link: #1a1a1a;
  --link-hover: #000000;
  --meta: #777777;
}

[data-theme="dark"] {
  --bg: #111111;
  --text: #e6e6e6;
  --muted: #999999;
  --border: #262626;
  --link: #ffffff;
  --link-hover: #cccccc;
  --meta: #888888;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --text: #e6e6e6;
    --muted: #999999;
    --border: #262626;
    --link: #ffffff;
    --link-hover: #cccccc;
    --meta: #888888;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* Header */
header {
  margin-bottom: 48px;
}

.header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#theme-btn {
  font-size: 12px;
  font-family: inherit;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}

#theme-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.bio {
  color: var(--muted);
  margin-bottom: 12px;
}

.links {
  font-size: 14px;
}

.links a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.sep {
  color: var(--muted);
  margin: 0 6px;
}

/* Sections */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.project {
  margin-bottom: 56px;
}

.project:last-child {
  margin-bottom: 0;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.meta {
  font-size: 12px;
  color: var(--meta);
}

.project p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.project p.note {
  font-style: italic;
  color: var(--text);
  margin-top: -4px;
  margin-bottom: 16px;
}

/* Media & Figures */
.media-block {
  margin: 16px 0 20px;
}

.media-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}

figcaption {
  font-size: 12px;
  color: var(--meta);
  margin-top: 6px;
  line-height: 1.4;
}

/* 3-column status grid for wrist screen tests */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}

@media (max-width: 520px) {
  .status-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.status-item {
  margin: 0;
}

.status-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Footer */
footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
