/* ================= Base ================= */
:root {
  --bg: #ffffff;
  --text-primary: #111111;
  --text-secondary: #555555;
  --border: #e7e7e9;
  --link-hover: #000000;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --text-primary: #f2f2f3;
    --text-secondary: #9a9aa0;
    --border: #2b2b2f;
    --link-hover: #ffffff;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

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

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

/* ================= Header ================= */
.profile-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 50px;
  gap: 15px;
}

.profile-info h1 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-info .tagline {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.profile-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sub-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 32px 0 20px;
}

.about-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ================= Entries ================= */
.entry {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.section .entry:first-of-type,
.entry + .gallery + .entry {
  border-top: 1px solid var(--border);
}

.entry-date {
  flex-shrink: 0;
  width: 96px;
  font-size: 14px;
  color: var(--text-secondary);
}

.entry-content {
  flex: 1;
  min-width: 0;
}

.entry-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}

.entry-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ================= Gallery (image grid) ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 0 16px 120px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--border);
}

@media (max-width: 480px) {
  .gallery {
    padding-left: 0;
  }
}

/* ================= Writing card ================= */
.write-card {
  margin-top: 12px;
  max-width: 320px;
}

.write-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--border);
}

.write-card-title {
  font-size: 14px;
  color: var(--text-primary);
}

.write-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ================= Contact ================= */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.contact-label {
  color: var(--text-secondary);
}

.contact-value {
  font-weight: 500;
}

/* ================= Footer ================= */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ================= Responsive ================= */
@media (max-width: 560px) {
  .container {
    padding: 40px 20px 72px;
  }

  .entry {
    flex-direction: column;
    gap: 4px;
  }

  .entry-date {
    width: auto;
  }
}
