@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body { margin: 0; padding: 0; background: #ffffff; }
body { font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #000; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
::selection { background: #000; color: #fff; }

.page { background: #fff; color: #0a0a0a; min-height: 100vh; }

.header { background: #000; color: #fff; padding: 44px 56px 0; position: relative; }
.header-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; max-width: 1000px; margin: 0 auto; }
.header-brand { display: flex; flex-direction: column; gap: 18px; }
.header-title { color: #fff; font-size: 132px; line-height: 0.82; font-weight: 600; letter-spacing: -0.05em; text-decoration: none; }
.header-title:hover { text-decoration: none; color: #fff; }
.header-subtitle { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 400; color: #8f8f8f; max-width: 22ch; }
.header-nav { display: flex; gap: 28px; padding-top: 12px; align-items: center; }
.header-nav-sep { color: #555; font-size: 20px; user-select: none; }
.header-nav a { color: #8f8f8f; font-size: 20px; font-weight: 400; text-decoration: none; }
.header-nav a:hover { color: #fff; text-decoration: none; }
.header-spacer { height: 52px; }

.hero-gradient { background: linear-gradient(180deg, #c9c9c9 0px, #d6d6d6 130px, #ebebeb 250px, #fff 340px); background-repeat: no-repeat; }
.hero-image-wrap { width: 100%; line-height: 0; margin-top: -2px; }
.hero-image { display: block; width: 100%; height: auto; }

/* Latest entry on index */
.latest-entry { max-width: 1000px; margin: 0 auto; padding: 56px 56px 0; }
.latest-entry-inner { border-bottom: 1px solid #d8d8d8; padding-bottom: 64px; }
.latest-entry-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.latest-entry-day { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.latest-entry-date { font-size: 22px; color: #8f8f8f; }
.latest-entry-title { margin: 0 0 40px; font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; text-wrap: pretty; }
.latest-entry-mood { margin: 0 0 32px; font-size: 18px; font-style: italic; color: #8f8f8f; }
.latest-entry-divider { width: 80px; height: 3px; background: #0a0a0a; margin-bottom: 40px; }
.latest-entry-body p { margin: 0 0 28px; font-size: 22px; line-height: 1.55; font-weight: 400; letter-spacing: -0.01em; text-wrap: pretty; }
.latest-entry-link { display: inline-block; margin-top: 16px; font-size: 20px; font-weight: 500; color: #8f8f8f; }

.index-main { max-width: 1000px; margin: 0 auto; padding: 56px 56px 160px; }
.index-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #0a0a0a; padding-bottom: 22px; margin-bottom: 6px; }
.index-heading { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.index-count { font-size: 26px; color: #8f8f8f; font-weight: 400; }

.entry-row { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: baseline; padding: 22px 18px; border-bottom: 1px solid #d8d8d8; color: #0a0a0a; text-decoration: none; }
.entry-row:hover { background: #c9c9c9; text-decoration: none; }
.entry-day { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: inherit; font-variant-numeric: tabular-nums; }
.entry-title { font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; color: inherit; text-wrap: pretty; }
.entry-date { font-size: 16px; color: inherit; opacity: 0.55; text-align: right; }

.index-footer-note { margin: 96px 0 0; font-size: 26px; color: #8f8f8f; line-height: 1.4; }

.entry-main { max-width: 1000px; margin: 0 auto; padding: 56px 56px 160px; }
.entry-back { display: inline-block; font-size: 24px; font-weight: 500; color: #8f8f8f; margin-bottom: 64px; text-decoration: none; }
.entry-page-day { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin-top: 64px; margin-bottom: 44px; }
.entry-page-title { margin: 0 0 56px; font-size: 76px; line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; text-wrap: pretty; }
.entry-mood { margin: 0 0 40px; font-size: 20px; font-style: italic; color: #8f8f8f; }
.entry-divider { width: 120px; height: 4px; background: #0a0a0a; margin-bottom: 56px; }
.entry-body p { margin: 0 0 38px; font-size: 26px; line-height: 1.55; font-weight: 400; letter-spacing: -0.01em; text-wrap: pretty; }

.entry-nav { display: flex; justify-content: space-between; gap: 40px; border-top: 3px solid #0a0a0a; margin-top: 96px; padding-top: 36px; }
.entry-nav a { font-size: 28px; font-weight: 500; max-width: 20ch; line-height: 1.2; }
.entry-nav-next { text-align: right; }

.footer { background: #000; color: #6e6e6e; padding: 64px 56px; font-size: 24px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; gap: 40px; text-align: center; }

/* Admin */
.admin-body { font-family: Archivo, sans-serif; background: #f5f5f5; margin: 0; padding: 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.admin-header h1 { margin: 0; font-size: 28px; font-weight: 600; }
.admin-header a { font-size: 16px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-table th { text-align: left; padding: 14px 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #888; border-bottom: 2px solid #eee; }
.admin-table td { padding: 14px 18px; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.admin-table tr:hover { background: #fafafa; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-published { background: #e8f5e9; color: #2e7d32; }
.badge-draft { background: #fff3e0; color: #e65100; }
.badge-prologue { background: #e3f2fd; color: #1565c0; }

.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #333; color: #fff; text-decoration: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-outline { background: transparent; border: 1px solid #ddd; color: #333; }
.btn-outline:hover { border-color: #999; text-decoration: none; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #b71c1c; text-decoration: none; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #333; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; font-family: inherit; box-sizing: border-box; }
.form-group textarea { min-height: 300px; line-height: 1.6; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: 18px; height: 18px; }
.form-check label { font-size: 15px; font-weight: 400; margin: 0; }

.admin-card { background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 800px; }
.admin-actions { display: flex; gap: 8px; }

@media (max-width: 768px) {
  .header { padding: 20px 16px 0; }
  .header-inner { flex-direction: column; gap: 16px; }
  .header-title { font-size: 48px; }
  .header-subtitle { font-size: 16px; }
  .header-nav { padding-top: 4px; }
  .header-nav a { font-size: 16px; }
  .header-spacer { height: 24px; }

  .latest-entry { padding: 32px 16px 0; }
  .latest-entry-meta { flex-direction: column; gap: 4px; }
  .latest-entry-day { font-size: 24px; }
  .latest-entry-date { font-size: 16px; }
  .latest-entry-title { font-size: 32px; margin-bottom: 24px; }
  .latest-entry-body p { font-size: 17px; margin-bottom: 20px; }
  .latest-entry-link { font-size: 16px; }
  .latest-entry-inner { padding-bottom: 40px; }

  .index-main { padding: 32px 16px 60px; }
  .index-header { flex-direction: column; gap: 6px; }
  .index-heading { font-size: 24px; }
  .index-count { font-size: 18px; }
  .index-footer-note { margin-top: 48px; font-size: 18px; }

  .entry-row { grid-template-columns: 1fr; gap: 2px; padding: 16px 8px; }
  .entry-day { font-size: 18px; }
  .entry-title { font-size: 18px; }

  .entry-main { padding: 32px 16px 60px; }
  .entry-back { font-size: 16px; margin-bottom: 32px; }
  .entry-page-day { font-size: 24px; margin-top: 32px; margin-bottom: 24px; }
  .entry-page-title { font-size: 32px; margin-bottom: 32px; }
  .entry-mood { font-size: 16px; }
  .entry-divider { margin-bottom: 32px; }
  .entry-body p { font-size: 17px; margin-bottom: 24px; }
  .entry-nav { margin-top: 48px; padding-top: 24px; flex-direction: column; gap: 16px; }
  .entry-nav a { font-size: 16px; max-width: none; }
  .entry-nav-next { text-align: left; }

  .footer { padding: 32px 16px; font-size: 16px; }

  .admin-body { padding: 16px; }
  .admin-table th, .admin-table td { padding: 10px 12px; font-size: 13px; }
  .admin-actions { flex-wrap: wrap; }
}
