/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ===== VARIABLES ===== */
:root {
  --paper:  #faf8f5;
  --black:  #1c1917;
  --muted:  #6b6660;
  --red:    #a1382a;
  --white:  #ffffff;
  --glass-bg:   #f1eee7;
  --border:     #e5e0d6;
  --glass-blur: none;

  --font-serif:      'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-sans:       'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-sans-bold:  'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--paper);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 22.5px;
  line-height: 1.6;
  text-align: left;
}

.background { display: none; }

header, main, footer, section {
  position: relative;
  z-index: 10;
}

.content-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

main {
  min-height: 60vh;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* ===== LINKS ===== */
a {
  color: var(--black);
  text-decoration: none;
}
a:visited { color: var(--black); }
a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== HEADER ===== */
.sticky-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}

.sticky-header .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#home-link { text-decoration: none; }
#home-link:hover { text-decoration: none; }

/* Red is reserved for the site title only */
#site-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.01em;
  line-height: 1;
}
#site-title.active { color: var(--red); }

#main-nav {
  display: flex;
  align-items: center;
}

#contact-link {
  font-family: var(--font-sans-bold);
  font-size: 36px;
  font-weight: 600;
  color: var(--black);
  text-transform: lowercase;
}
#contact-link:hover,
#contact-link.active {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
/* h1: 46px  |  h2: 33px  |  h3: 26px  |  body: 22.5px */

h1,
.intro-header-align h1 {
  font-family: var(--font-sans-bold);
  font-size: 46px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
  text-align: left;
  line-height: 1.3;
}

h2 {
  font-family: var(--font-sans-bold);
  font-size: 33px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  margin-top: 24px;
  text-align: left;
}

h3 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 6px;
  margin-top: 16px;
}

p {
  font-size: 22.5px;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.6;
}

.intro-header-align { margin-top: 0; }

.inline-cartoon {
  height: 1em;
  vertical-align: middle;
  margin-right: 8px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-description p {
  font-size: 22.5px;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.6;
}
.hero-description strong { font-weight: 600; }

/* ===== HOME — about (left) / project tiles (right) ===== */
.home-columns {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.home-about {
  flex: 1 1 60%;
  min-width: 0;
}

.home-projects {
  flex: 1 1 40%;
  min-width: 0;
  position: sticky;
  top: 100px;
}

.project-tiles {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.project-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0 18px 16px;
  margin-left: -18px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.project-tiles .project-tile:first-child { border-top: 1px solid var(--border); }
.project-tile:hover { border-left-color: var(--red); }
.project-tile:hover .project-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--red);
}
.project-tile .project-title {
  font-family: var(--font-sans-bold);
  font-size: 22.5px;
  color: var(--black);
  font-weight: 600;
}
.project-tile .post-description {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .home-columns {
    flex-direction: column;
  }
  .home-projects {
    position: static;
    width: 100%;
  }
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

/* ===== BUTTONS & CTAs ===== */
.cta-area {
  margin-top: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.cta-secondary {
  font-size: 22.5px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cta-secondary:hover { color: var(--red); }

/* ===== POST LIST ===== */
.post-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.post-item {
  display: flex;
  flex-direction: column;
  padding: 18px 0 18px 16px;
  margin-left: -18px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.post-list .post-item:first-child { border-top: 1px solid var(--border); }
.post-item:hover { border-left-color: var(--red); }

.post-item .post-date {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-item a.post-title,
.post-item .post-title {
  font-family: var(--font-sans-bold);
  font-size: 22.5px;
  color: var(--black);
  font-weight: 600;
}
.post-item:hover a.post-title,
.post-item:hover .post-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--red);
}

.post-item .post-description {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.post-meta {
  font-family: var(--font-sans);
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin: 2px 0 4px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
.tag {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.footer-banner {
  margin-top: 32px;
  padding: 24px 0;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}
.icon-row a {
  font-size: 30px;
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
}
.icon-row a:visited { color: var(--black); }
.icon-row a:hover {
  color: var(--red);
  text-decoration: none;
}

.angst-tag {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--muted);
}
.sub-quote {
  font-size: 20px;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ===== FORMS ===== */
form {
  max-width: 100%;
  margin: 16px 0 0;
  text-align: left;
}
form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 22.5px;
  font-weight: 400;
  color: var(--black);
  margin-top: 16px;
  margin-bottom: 4px;
}
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: var(--glass-bg);
  font-family: var(--font-sans);
  font-size: 22.5px;
  color: var(--black);
}
form input::placeholder,
form textarea::placeholder {
  font-family: var(--font-sans);
  font-size: 22.5px;
  color: #a39c8f;
}
form input:focus,
form textarea:focus {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}
form textarea {
  resize: vertical;
  min-height: 120px;
}
form button {
  background: var(--black);
  color: var(--paper);
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 22.5px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
form button:hover {
  background-color: var(--red);
}

.resume-link {
  font-family: var(--font-sans);
  font-size: 22.5px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resume-link:hover { color: var(--red); }

/* ===== SELECTION ===== */
::selection { background: var(--black); color: var(--white); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #d3ccbe; }
::-webkit-scrollbar-thumb:hover { background: #b6ac98; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1, .intro-header-align h1      { font-size: 30px; }
  h2                               { font-size: 24px; }
  h3, .hero-subtitle               { font-size: 20px; }
  body, p                          { font-size: 18px; }
  .content-wrapper                 { padding: 0 24px; }
  .sticky-header                   { height: auto; padding: 16px 0; }
  #site-title                      { font-size: 30px; }
  #contact-link                    { font-size: 20px; }
  main                             { padding-top: 100px; }
}
