/* index.html */

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

html {
  background: #f4f1ea;
}

body {
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 17px;
  line-height: 1.5;
  color: #111;
  background: #f4f1ea;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 96px 24px;
}

a {
  color: #111;
  text-decoration: none;
  border-bottom: 2px solid #111;
  padding: 0 2px;
  font-weight: 700;
}

a:hover {
  background: #111;
  color: #f4f1ea;
}

main {
  display: block;
}

/* ============ NAME BLOCK ============ */

.hero {
  border: 4px solid #111;
  padding: 24px 28px 28px 28px;
  background: #f4f1ea;
  box-shadow: 12px 12px 0 0 #111;
  margin-bottom: 48px;
  position: relative;
}

.hero::before {
  content: "~/index.html";
  position: absolute;
  top: -14px;
  left: 24px;
  background: #f4f1ea;
  padding: 0 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-family: "Arial Black", "Helvetica", sans-serif;
  font-size: clamp(40px, 8vw, 100px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant: small-caps;
  font-weight: 900;
  word-break: break-word;
  margin-bottom: 12px;
}

.hero h1 span.and {
  display: inline-block;
  transform: rotate(-6deg);
  font-size: 0.55em;
  vertical-align: middle;
  padding: 0 12px;
  font-style: italic;
  font-weight: 400;
}

.hero .subtitle {
  font-size: 18px;
  border-top: 2px solid #111;
  padding-top: 12px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero .subtitle em {
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
}

/* ============ SECTION STRUCTURE ============ */

section {
  margin-bottom: 48px;
  border: 4px solid #111;
  background: #f4f1ea;
  position: relative;
}

section h2 {
  font-family: "Arial Black", Helvetica, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #111;
  color: #f4f1ea;
  padding: 10px 20px;
  border-bottom: 4px solid #111;
}

section .body {
  padding: 24px 28px;
}

section p + p {
  margin-top: 16px;
}

/* ============ TREE / SITEMAP ============ */

.tree {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  color: #555;
}

.tree a {
  color: #111;
  font-weight: 700;
  border-bottom: none;
  padding: 0;
}

.tree a:hover {
  background: #111;
  color: #f4f1ea;
}

.tree .c {
  color: #888;
  font-weight: 400;
}

/* ============ VITA ============ */

#vita .body p {
  font-size: 18px;
  max-width: 62ch;
}

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

#contact {
  background: #ffd84d;
  box-shadow: 12px 12px 0 0 #111;
}

#contact h2 {
  background: #111;
  color: #ffd84d;
}

#contact strong {
  display: inline-block;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid #111;
  padding-bottom: 2px;
  margin-bottom: 8px;
}

#contact .body p {
  font-size: 16px;
}

#contact span {
  display: inline;
}

#contact a {
  border-bottom-width: 2px;
}

#contact a:hover {
  background: #111;
  color: #ffd84d;
}

/* ============ LINK GRID (bottom callouts) ============ */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-bottom: 48px;
  border: 4px solid #111;
  background: #111;
}

.link-grid a {
  display: block;
  padding: 24px 20px;
  background: #f4f1ea;
  color: #111;
  border: none;
  border-right: 4px solid #111;
  border-bottom: 4px solid #111;
  font-family: "Arial Black", Helvetica, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.link-grid a:last-child {
  border-right: 4px solid #111;
}

.link-grid a:hover {
  background: #ff5a1f;
  color: #111;
}

.link-grid a .arrow {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-top: 8px;
}

/* ============ FOOTER ============ */

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid #111;
  font-size: 9px;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
}

footer a {
  color: #111;
  border-bottom-width: 1px;
  border-bottom-style: none;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 640px) {
  body {
    padding: 16px 14px 64px 14px;
  }
  .hero {
    box-shadow: 6px 6px 0 0 #111;
    padding: 20px;
  }
  #contact {
    box-shadow: 6px 6px 0 0 #111;
  }
  section h2 {
    font-size: 22px;
  }
  .link-grid a {
    font-size: 18px;
  }
}
