/* fatheranton.com */

@font-face {
  font-family: 'IvarText';
  src: url('/fonts/IvarText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IvarText';
  src: url('/fonts/IvarText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IvarText';
  src: url('/fonts/IvarText-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IvarText';
  src: url('/fonts/IvarText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatypeMono';
  src: url('/fonts/ABCDiatypeMono-Regular.woff2') format('woff2'),
       url('/fonts/ABCDiatypeMono-Regular.woff') format('woff'),
       url('/fonts/ABCDiatypeMono-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #111;
  --text: #eae7df;
  --text-bright: #f8f7f3;
  --text-secondary: #b5b2aa;
  --text-muted: #858279;
  --accent: #e87a2e;
  --rule: #2e2e2e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IvarText', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 540px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

/* ---- Type hierarchy ---- */

h1 {
  font-family: 'IvarText', Georgia, serif;
  font-weight: 400;
  color: var(--text-bright);
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-family: 'IvarText', Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--text-bright);
  margin-top: 32px;
  margin-bottom: 10px;
}

p { margin-bottom: 16px; }

strong, b { font-weight: 600; color: var(--text-bright); }

/* ---- Links ---- */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}

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

/* ---- Mono label ---- */

.label {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

/* ---- Lists ---- */

ul { list-style: none; padding: 0; }

ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

ul li a { color: var(--text); }

/* ==================== */
/*      HOMEPAGE        */
/* ==================== */

.home-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.home-name {
  font-size: 28px;
  margin-bottom: 0;
}

.home-intro {
  margin-top: 12px;
  margin-bottom: 36px;
}

.home-intro p {
  color: var(--text-secondary);
  font-size: 15px;
}

.home-section {
  margin-bottom: 36px;
}

.home-section ul li {
  font-size: 14px;
  margin-bottom: 4px;
}

.links-section ul li::before { display: none; }

.links-section ul li {
  padding-left: 0;
  margin-bottom: 4px;
}

.links-section a {
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
}

.links-section a:hover {
  border-color: var(--accent);
}

/* ==================== */
/*     BLOG INDEX       */
/* ==================== */

.back {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back:hover { color: var(--text-secondary); }

.blog-title {
  font-size: 28px;
  margin: 20px 0 36px;
}

.post-entry {
  margin-bottom: 24px;
}

.post-entry-title {
  font-family: 'IvarText', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.post-entry-title:hover {
  color: var(--accent) !important;
}

.post-entry .meta {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.post-entry .desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.45;
}

/* ==================== */
/*      BLOG POST       */
/* ==================== */

.post-title {
  font-size: 28px;
  margin: 20px 0 6px;
  line-height: 1.25;
}

.post-date {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.post-body { font-size: 16px; line-height: 1.55; }

.post-body h2 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.post-body blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-body code {
  font-family: 'ABCDiatypeMono', monospace;
  font-size: 14px;
  background: #1a1a1a;
  padding: 1px 5px;
  border-radius: 2px;
}

.post-body pre {
  background: #161616;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

.post-body ul { margin-bottom: 16px; }

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* ---- Responsive ---- */

@media (max-width: 520px) {
  main { padding: 48px 16px 72px; }
  h1, .home-name, .post-title, .blog-title { font-size: 24px; }
}
