/* ============================================
   FONT PLACEHOLDERS
   Uncomment and edit if you're hosting your own
   font files (drop them in a /fonts folder).
   If you're using a Google Fonts <link> in
   index.html instead, you can skip this block —
   just make sure the font name below matches.
   ============================================ */

/*
@font-face {
  font-family: 'YourDisplayFont';
  src: url('fonts/your-display-font.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'YourMonoFont';
  src: url('fonts/your-mono-font.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YourBodyFont';
  src: url('fonts/your-body-font.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
*/

:root {
  /* ---- colors ---- */
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --muted: #888888;
  --embed-bg: #3c3c3c;
  --embed-text: #ffffff;

  /* ---- fonts ----
     Swap the font names in quotes for your own.
     Used for: username, post titles, big headings */
  --font-display: 'YourDisplayFont', Helvetica, Arial, sans-serif;
  /* Used for: badge, meta info, LINKS/EMBEDS labels, ADD/SAVE buttons, timestamps */
  --font-mono: 'YourMonoFont', 'Courier New', monospace;
  /* Used for: bio text, journal entry text */
  --font-body: 'YourBodyFont', Helvetica, Arial, sans-serif;

  /* ---- layout ---- */
  --sidebar-width: 340px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--ink);
}

/* ============================================
   PAGE GRID
   ============================================ */

.page {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.profile {
  position: relative;
}

.settings-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.profile-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 28px; /* leaves room for the gear icon */
}

.avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eeeeee; /* shows as a neutral box if the image is missing */
  flex-shrink: 0;
}

.username {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
}

.meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tagline {
  margin: 12px 0 8px;
}

.edit-bio {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
}

.edit-bio:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---- shared blocks: LINKS / EMBEDS ---- */

.block-label {
  margin: 0 0 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 10px;
}

.link-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}

.link-list li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.link-list li:first-child {
  border-top: 1px solid var(--line);
}

.link-list a {
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ---- "add" row used under LINKS and EMBEDS ---- */

.add-row {
  display: flex;
}

.add-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: none;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--paper);
  color: var(--ink);
}

.add-row input::placeholder {
  color: var(--muted);
}

.add-row button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  cursor: pointer;
}

.add-row button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---- embed card ---- */

.embed {
  background: var(--embed-bg);
  color: var(--embed-text);
  margin-bottom: 8px;
  line-height: 0; /* removes extra space below the iframe */
}

.embed iframe {
  display: block;
  border: none;
}

/* ============================================
   JOURNAL
   ============================================ */

.journal {
  min-width: 0;
}

.site-title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.entry {
  margin-bottom: 40px;
}

.entry-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.entry-title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.entry-body {
  font-family: var(--font-body);
  font-size: 14px;
}

.entry-body p {
  margin: 0 0 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
  }
}