/* garyaustin.org, rebuilt — reading styles for recovered 2001–2004 pages.
   Quieter than the memorial page it hangs off: this is a document, not a marker. */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

:root{
  --ink:#3a2418;
  --ink-soft:#5b3b26;
  --rule:rgba(90,58,37,.2);
  --paper:#f2e6d0;
  --paper-deep:#e6d5b8;
}

*{ box-sizing:border-box; }

html{ background:var(--paper-deep); -webkit-text-size-adjust:100%; }

body{
  margin:0;
  min-height:100svh;
  font-family:"EB Garamond", Georgia, "Times New Roman", serif;
  color:var(--ink);
  background:
    linear-gradient(to bottom, #e8d8bc 0%, var(--paper) 18%, var(--paper) 82%, #e2cfae 100%);
  -webkit-font-smoothing:antialiased;
}

/* ---- top bar back to the memorial page ---- */
.bar{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:1rem;
  max-width:46rem;
  margin:0 auto;
  padding:1.4rem 1.5rem .9rem;
  border-bottom:1px solid var(--rule);
  font-size:.74rem;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.bar a{ color:var(--ink-soft); text-decoration:none; opacity:.72; }
.bar a:hover{ opacity:1; text-decoration:underline; text-underline-offset:3px; }
.bar .home::before{ content:"\2190\00a0\00a0"; }

main{
  max-width:46rem;
  margin:0 auto;
  padding:clamp(2rem,6vh,3.5rem) 1.5rem 1rem;
}

.stamp{
  margin:0 0 .9rem;
  font-size:.72rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--ink-soft);
  opacity:.6;
}

h1{
  font-size:clamp(1.9rem,5.5vw,2.6rem);
  font-weight:400;
  line-height:1.15;
  margin:0 0 1.8rem;
  color:#2f1d13;
}

.intro{
  font-size:clamp(1.05rem,2.8vw,1.14rem);
  line-height:1.75;
  max-width:34rem;
  margin:0 0 2.4rem;
  text-wrap:pretty;
}

/* ---- index list ---- */
.toc{ list-style:none; margin:0 0 2.6rem; padding:0; max-width:34rem; }
.toc li{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:1rem;
  padding:.85rem 0;
  border-top:1px solid var(--rule);
}
.toc li:last-child{ border-bottom:1px solid var(--rule); }
.toc a{
  font-size:1.12rem;
  color:#2f1d13;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.toc a:hover{ border-bottom-color:var(--ink-soft); }
.toc span{
  flex:none;
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-soft);
  opacity:.55;
}

.note{
  max-width:34rem;
  font-size:.9rem;
  line-height:1.7;
  color:var(--ink-soft);
  opacity:.82;
  border-top:1px solid var(--rule);
  padding-top:1.2rem;
}

/* ---- the recovered document itself ---- */
.doc{
  font-size:1.03rem;
  line-height:1.75;
  color:var(--ink-soft);
  max-width:36rem;
}
.doc p{ margin:0 0 1.15rem; text-wrap:pretty; }
.doc h1, .doc h2, .doc h3, .doc h4{
  font-weight:400;
  font-size:1.2rem;
  line-height:1.3;
  color:#2f1d13;
  margin:2rem 0 .7rem;
}
/* the original pages repeat their own page title at the top; it is already in <h1> */
.doc > h1:first-child, .doc > h2:first-child, .doc > h3:first-child{ display:none; }
.doc a{ color:#6b3f22; text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:.5px; }
.doc a:hover{ color:#2f1d13; }
/* links whose destination died with the old web: shown, not offered */
.doc a:not([href]){ color:inherit; text-decoration:none; opacity:.5; }
.doc img{ max-width:100%; height:auto; display:block; margin:1.4rem 0; }
.doc hr{ border:0; height:1px; background:var(--rule); margin:2rem 0; }
.doc ul, .doc ol{ margin:0 0 1.15rem; padding-left:1.3rem; }
.doc li{ margin:.3rem 0; }
.doc b, .doc strong{ font-weight:500; color:#2f1d13; }
.doc blockquote{ margin:1.4rem 0; padding-left:1.1rem; border-left:1px solid var(--rule); font-style:italic; }
.doc center{ text-align:left; }

/* period tables (the hand-kept calendar) */
.doc table{
  border-collapse:collapse;
  width:100%;
  margin:1.4rem 0;
  font-size:.95rem;
}
.doc td, .doc th{
  padding:.5rem .7rem;
  border-top:1px solid var(--rule);
  text-align:left;
  vertical-align:top;
}
.doc th{ font-weight:500; color:#2f1d13; }
.doc table table{ margin:0; font-size:1em; }
.doc table table td{ border-top:0; padding:.15rem .4rem .15rem 0; }

/* an address that is no longer anybody's */
.doc .mail{ font-style:italic; opacity:.8; }
.doc [data-mail]::after{ content:attr(data-mail); color:var(--ink-soft); }

footer{
  max-width:46rem;
  margin:3rem auto 0;
  padding:1.3rem 1.5rem clamp(2.5rem,7vh,4rem);
  border-top:1px solid var(--rule);
  font-size:.78rem;
  line-height:1.7;
  color:var(--ink-soft);
  opacity:.75;
}
footer a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }

@media (max-width:30rem){
  .toc li{ flex-direction:column; gap:.2rem; }
}
