/* ============================================
   PATINA -- Design System
   Personal site for Evan Garris
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --linen: #D8CEBB;
  --rust: #A34825;
  --iron: #2E1C12;
  --cc-max: 1200px;
  --cc-pad: max(36px, calc(50vw - 564px));
}

html {
  scroll-behavior: auto;
  background: var(--rust);
}

body {
  background: var(--linen);
  color: var(--iron);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--rust);
  color: var(--linen);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* --- Screen-reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Page Layout --- */
.page-wrap {
  min-height: calc(100vh - 8px);
  min-height: calc(100dvh - 8px);
  display: flex;
  flex-direction: column;
}

.page-wrap > main {
  flex: 1;
}

.home-main {
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */

/* Display: Space Grotesk Bold */
.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Animations --- */
@keyframes slide-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes clip-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes clip-in-vertical {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.home-evan.animate {
  animation: slide-down 300ms linear both;
}
.home-garris.animate {
  animation: slide-up 300ms linear both;
}
.home-rust-meta.animate {
  animation: fade-in 150ms linear 300ms both;
}

.page-title-animate {
  animation: clip-in 300ms linear 100ms both;
}

.resume-sidebar-title {
  animation: clip-in-vertical 300ms linear 100ms both;
}

/* --- Persistent Rust Footer --- */
.rust-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--rust);
  z-index: 100;
}

.rule {
  border: none;
  border-top: 3px solid var(--iron);
}

/* --- Compact Rust Header (interior pages) --- */
.header-bar {
  background: var(--rust);
  padding: 20px var(--cc-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bar .site-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

.header-bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-bar nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.45;
  text-decoration: none;
}

.header-bar nav a:hover {
  opacity: 0.8;
}

.header-bar nav a.active {
  font-weight: 700;
  opacity: 1;
}

.header-bar .pdf-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--linen);
  padding: 4px 12px;
  text-decoration: none;
  display: inline-block;
}

.header-bar .pdf-btn:hover {
  background: var(--linen);
  color: var(--rust);
}

/* ============================================
   HOME PAGE
   ============================================ */

/* Name hero */
.home-evan-wrap {
  overflow: hidden;
  padding: 28px var(--cc-pad) 0;
  position: relative;
  z-index: 2;
  margin-bottom: -24px;
}

.home-evan {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(64px, 12vw, 140px);
  text-transform: uppercase;
  letter-spacing: -6px;
  line-height: 0.8;
  color: var(--iron);
}

.home-rust-slab {
  background: var(--rust);
  padding: 30px var(--cc-pad) 20px;
}

.home-garris-wrap {
  overflow: hidden;
}

.home-garris {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(64px, 12vw, 140px);
  text-transform: uppercase;
  letter-spacing: -6px;
  line-height: 0.8;
  color: var(--linen);
}

.home-rust-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  opacity: 0;
}

.home-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.55;
}

.home-nav {
  display: flex;
  gap: 24px;
}

.home-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.55;
  text-decoration: none;
}

.home-nav a:hover {
  opacity: 1;
}

/* Bio section */
.home-bio {
  position: relative;
  padding: 36px 36px 0;
  padding-bottom: 108px;
  overflow: hidden;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.home-ghost {
  position: absolute;
  right: 36px;
  top: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(100px, 15vw, 180px);
  text-transform: uppercase;
  letter-spacing: -6px;
  line-height: 0.8;
  color: var(--iron);
  opacity: 0.05;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.home-bio-lead {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: 20px;
  color: var(--iron);
  max-width: 540px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.home-bio-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: var(--iron);
  opacity: 0.5;
  max-width: 540px;
  margin-top: 16px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* Footer bar -- fixed, home page only */
.home-footer {
  position: fixed;
  bottom: 8px;
  left: 0;
  width: 100%;
  background: var(--linen);
  z-index: 99;
  border-top: 3px solid var(--iron);
  padding: 14px var(--cc-pad) 14px;
}

.home-footer-inner {
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.home-footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--iron);
  text-decoration: none;
}

.home-footer-links a:hover {
  color: var(--rust);
}

.home-footer-links .contact-btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  border: 2px solid var(--iron);
  padding: 4px 12px;
  display: inline-block;
}

.home-footer-links .contact-btn:hover {
  background: var(--iron);
  color: var(--linen);
}

.home-footer-latest a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-footer-latest a:hover {
  text-decoration: underline;
}


/* ============================================
   WRITING PAGE
   ============================================ */

/* Featured essay */
.writing-featured {
  padding: 40px 36px 36px;
  border-bottom: 3px solid var(--iron);
  position: relative;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
}

.writing-featured a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.writing-ghost {
  position: absolute;
  left: 36px;
  top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 120px;
  text-transform: uppercase;
  letter-spacing: -4px;
  line-height: 0.8;
  color: var(--iron);
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
}

.writing-featured-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.writing-featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(26px, 5vw, 42px);
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.85;
  color: var(--iron);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.writing-featured-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: var(--iron);
  opacity: 0.5;
  max-width: 500px;
  margin-top: 10px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Writing list entries */
.wi {
  border-bottom: 3px solid var(--iron);
  padding: 18px 36px;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
}

.wi-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 0;
}

.wi-ghost {
  position: absolute;
  left: 36px;
  top: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 72px;
  text-transform: uppercase;
  letter-spacing: -4px;
  line-height: 0.8;
  color: var(--iron);
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.wi-content {
  padding-left: 56px;
  position: relative;
  z-index: 2;
}

.wi-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(18px, 3vw, 26px);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--iron);
}

.wi-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  color: var(--iron);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  line-height: 1.6;
}

.wi-date {
  position: absolute;
  right: 36px;
  top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--iron);
  opacity: 0.2;
  text-transform: uppercase;
  z-index: 2;
}

@media (hover: hover) {
  .wi:hover .wi-bg {
    background: var(--rust);
  }
  .wi:hover .wi-ghost {
    color: var(--linen);
    opacity: 0.3;
  }
  .wi:hover .wi-title {
    color: var(--linen);
  }
  .wi:hover .wi-desc {
    max-height: 50px;
    opacity: 0.8;
    margin-top: 8px;
    color: var(--linen);
  }
  .wi:hover .wi-date {
    color: var(--linen);
    opacity: 0.7;
  }
}

.wi:last-child {
  margin-bottom: 80px;
}

/* ============================================
   RESUME PAGE
   ============================================ */

.resume-frame {
  position: relative;
}

.resume-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: max(0px, calc((100vw - var(--cc-max)) / 2 + clamp(120px, 15vw, 200px)));
  background: var(--rust);
  z-index: 0;
}

.resume-grid {
  display: grid;
  grid-template-columns: clamp(120px, 15vw, 200px) 1fr;
  min-height: calc(100vh - 61px - 8px);
  min-height: calc(100dvh - 61px - 8px);
  margin-bottom: -1px;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.resume-sidebar {
  background: var(--rust);
  padding: 0 20px;
}

.resume-sidebar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(48px, 7vw, 72px);
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.8;
  color: var(--linen);
  writing-mode: vertical-lr;
  position: sticky;
  top: 50vh;
  transform: rotate(180deg) translateY(50%);
  padding: 40px 0;
}

.resume-content {
  padding: 28px 36px 28px 28px;
}

.resume-company {
  padding-bottom: 28px;
}

.resume-company + .resume-company {
  border-top: 3px solid var(--iron);
  padding-top: 28px;
}

.resume-company-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--iron);
  opacity: 0.35;
  margin-top: 6px;
}

.resume-role-entry {
  margin-top: 20px;
}

.resume-role-entry + .resume-role-entry {
  border-top: 1px solid var(--iron);
  padding-top: 20px;
  opacity: 1;
}

.resume-role-entry + .resume-role-entry::before {
  display: none;
}

.resume-role {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--iron);
}

.resume-pill {
  display: inline-block;
  background: var(--rust);
  padding: 4px 12px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.resume-date-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--iron);
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.resume-desc p {
  margin-bottom: 14px;
}

.resume-desc p:last-child {
  margin-bottom: 0;
}

.resume-education {
  border-top: 3px solid var(--iron);
  padding-top: 22px;
  margin-top: 28px;
}

.resume-education-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.resume-school {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--iron);
}

.resume-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--iron);
  margin-top: 12px;
  max-width: 600px;
}

.resume-skills {
  border-top: 3px solid var(--iron);
  padding-top: 22px;
  margin-top: 22px;
}

.resume-skills-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.resume-skills-list {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--iron);
  line-height: 2;
  max-width: 600px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-frame {
  position: relative;
}

.contact-frame::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: max(0px, calc((100vw - var(--cc-max)) / 2 + clamp(180px, 18vw, 240px)));
  background: var(--rust);
  z-index: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr clamp(180px, 18vw, 240px);
  align-items: stretch;
  min-height: calc(100vh - 61px);
  min-height: calc(100dvh - 61px);
  margin-bottom: -8px;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.contact-form-area {
  padding: 28px 28px 40px 36px;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(42px, 9vw, 86px);
  text-transform: uppercase;
  letter-spacing: -3px;
  line-height: 0.85;
  color: var(--rust);
  margin-bottom: 28px;
}

.contact-form {
  max-width: 700px;
}

.contact-field {
  margin-bottom: 24px;
}

.contact-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.contact-field input {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--iron);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--iron);
  padding-bottom: 10px;
  border-radius: 0;
}

.contact-field input::placeholder {
  text-transform: uppercase;
  opacity: 0.12;
  color: var(--iron);
}

.contact-field input:focus {
  border-bottom-color: var(--rust);
}

.contact-field input:focus::placeholder {
  opacity: 0.2;
}

.contact-field textarea {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--iron);
  background: transparent;
  border: 3px solid var(--iron);
  padding: 14px;
  min-height: clamp(100px, 18vh, 160px);
  resize: vertical;
  border-radius: 0;
}

.contact-field textarea::placeholder {
  text-transform: uppercase;
  opacity: 0.12;
  color: var(--iron);
}

.contact-field textarea:focus {
  border-color: var(--rust);
}

.contact-field textarea:focus::placeholder {
  opacity: 0.2;
}

.contact-field:focus-within label {
  opacity: 1;
}

.contact-send {
  display: inline-block;
  background: var(--rust);
  color: var(--linen);
  border: none;
  padding: 12px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 0;
  margin-top: 8px;
}

.contact-send:hover {
  background: var(--iron);
}

.contact-sidebar {
  background: var(--rust);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-direct-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--linen);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-bottom: 14px;
}

.contact-direct-links a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--linen);
  margin-bottom: 8px;
  text-decoration: none;
}

.contact-direct-links a:hover {
  text-decoration: underline;
}

.contact-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--linen);
  opacity: 0.35;
  line-height: 1.5;
}

/* Validation error state */
.field-error input {
  border-bottom-color: var(--rust);
}

.field-error textarea {
  border-color: var(--rust);
}

.field-error label {
  opacity: 1;
}

/* Success state */
.form-success {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rust);
  padding: 40px 0;
}

/* Error state */
.form-error {
  padding: 40px 0;
}

.form-error-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 12px;
}

.form-error-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
}

.form-error-link:hover {
  text-decoration: underline;
}

/* ============================================
   404 PAGE
   ============================================ */

.error-wrapper {
  min-height: calc(100vh - 61px - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  text-align: center;
}

.error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(120px, 25vw, 240px);
  text-transform: uppercase;
  letter-spacing: -6px;
  line-height: 0.8;
  color: var(--rust);
}

.error-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--iron);
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.4;
  margin-top: 16px;
}

.error-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  margin-top: 28px;
}

.error-link:hover {
  text-decoration: underline;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-main {
  min-height: calc(100vh - 60px - 8px);
  min-height: calc(100dvh - 60px - 8px);
  display: flex;
  flex-direction: column;
  max-width: var(--cc-max);
  margin-left: auto;
  margin-right: auto;
}

.article-ghost-number {
  position: absolute;
  left: 0;
  top: -20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(140px, 20vw, 220px);
  font-weight: 700;
  color: var(--iron);
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -6px;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.article-header {
  padding: 40px 36px 0;
  position: relative;
  overflow: hidden;
}

.article-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  display: inline-block;
}

.article-back:hover {
  text-decoration: underline;
}

.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--iron);
  opacity: 0.25;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 12px 0 20px;
}

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(32px, 6vw, 56px);
  text-transform: uppercase;
  letter-spacing: -3px;
  line-height: 0.9;
  color: var(--iron);
  max-width: 520px;
}

.article-subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--rust);
  max-width: 460px;
  line-height: 1.5;
  margin-top: 16px;
}

.article-threshold {
  margin: 28px 36px 0;
  border: none;
  border-top: 6px solid var(--rust);
}

.article-body {
  padding: 28px 36px 0;
  max-width: 540px;
  flex: 1;
}

.article-body p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--iron);
  margin-bottom: 20px;
}

.article-body p:first-of-type strong:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--rust);
  max-width: 440px;
  margin: 32px 0 24px;
}

.article-body blockquote {
  border-left: 6px solid var(--rust);
  padding-left: 24px;
  margin: 32px 0;
}

.article-body blockquote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--iron);
  margin-bottom: 0;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--iron);
}

.article-body a {
  color: var(--rust);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-footer {
  margin: 36px 36px 0;
  border-top: 3px solid var(--iron);
  padding-top: 20px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: auto;
}

.article-byline-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.article-byline-role,
.article-byline-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--iron);
  opacity: 0.35;
  margin-top: 2px;
}

.article-next {
  text-align: right;
}

.article-next-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.article-next-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--iron);
  text-decoration: none;
  display: block;
}

.article-next-title:hover {
  color: var(--rust);
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .header-bar,
  .home-rust-slab,
  .home-nav,
  .rust-footer,
  .resume-sidebar,
  .contact-sidebar,
  .article-back,
  nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .home-evan,
  .home-bio-lead,
  .home-bio-body,
  .resume-role,
  .resume-desc,
  .article-title,
  .article-body p {
    color: black;
  }
}

/* ============================================
   RESPONSIVE -- Tablet / Mobile (< 768px)
   ============================================ */

@media (max-width: 767px) {
  /* Global */
  .header-bar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-bar nav {
    gap: 14px;
  }

  .header-bar nav a {
    font-size: 10px;
  }

  /* Home */
  .home-evan-wrap {
    padding: 20px 20px 0;
    margin-bottom: -16px;
  }

  .home-rust-slab {
    padding: 20px 20px 16px;
  }

  .home-rust-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .home-bio {
    padding: 28px 20px 140px;
  }

  .home-ghost {
    font-size: 80px;
    right: 20px;
  }

  .home-footer-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .home-footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Writing */
  .writing-featured {
    padding: 24px 20px 28px;
  }

  .writing-ghost {
    left: 20px;
  }

  .wi {
    padding: 14px 20px;
  }

  .wi-ghost {
    font-size: 48px;
    left: 20px;
  }

  .wi-content {
    padding-left: 40px;
  }

  .wi-title {
    padding-right: 70px;
  }

  .wi-date {
    right: 20px;
    font-size: 10px;
  }

  .wi:last-child {
    margin-bottom: 40px;
  }

  /* Resume */
  .resume-frame::before {
    display: none;
  }

  .resume-grid {
    display: block;
  }

  .resume-sidebar {
    padding: 16px 20px;
    display: block;
  }

  .resume-sidebar-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 38px;
  }

  .resume-content {
    padding: 20px 20px;
  }

  /* Contact */
  .contact-frame::after {
    display: none;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: -8px;
  }

  .contact-form-area {
    padding: 20px 20px 28px;
  }

  .contact-sidebar {
    padding: 20px 20px;
    gap: 20px;
    flex: 1;
  }

  /* Article */
  .article-header {
    padding: 28px 20px 0;
  }

  .article-threshold {
    margin: 28px 20px 0;
  }

  .article-body {
    padding: 28px 20px 0;
    max-width: 100%;
  }

  .article-footer {
    margin: 28px 20px 0;
    flex-direction: column;
    gap: 20px;
  }

  .article-next {
    text-align: left;
  }
}

/* ============================================
   RESPONSIVE -- Small Phone (< 480px)
   ============================================ */

@media (max-width: 479px) {
  .home-evan-wrap {
    padding: 16px 16px 0;
    margin-bottom: -12px;
  }

  .home-rust-slab {
    padding: 16px 16px 14px;
  }

  .header-bar {
    padding: 14px 16px;
  }

  .home-bio {
    padding: 24px 16px 140px;
  }

  .writing-featured {
    padding: 20px 16px 24px;
  }


  .wi {
    padding: 14px 16px;
  }

  .wi-content {
    padding-left: 36px;
  }

  .wi-ghost {
    font-size: 40px;
    left: 16px;
  }

  .wi-date {
    right: 16px;
  }

  .resume-sidebar {
    padding: 14px 16px;
  }

  .resume-content {
    padding: 16px;
  }

  .contact-form-area {
    padding: 16px;
  }

  .contact-sidebar {
    padding: 16px;
  }

  .contact-field input {
    font-size: 16px;
  }

  .article-header {
    padding: 24px 16px 0;
  }

  .article-threshold {
    margin: 24px 16px 0;
  }

  .article-body {
    padding: 24px 16px 0;
  }

  .article-footer {
    margin: 24px 16px 0;
  }
}

/* ============================================
   RESPONSIVE -- Touch Devices (no hover)
   ============================================ */

@media (hover: none) {
  .wi-desc {
    max-height: none;
    overflow: visible;
    opacity: 0.5;
    margin-top: 8px;
  }
}
