/* Tilda Bogue Farm — album */

:root {
  --paper: #DED2BA;
  --paper-2: #CFC0A2;
  --ink: #1C1A17;
  --ink-soft: #4A443B;
  --ink-faint: #6E6557;
  --brick: #7E3320;
  --rule: #B3A184;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.3; margin: 0 0 .9rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p { margin: 0 0 1.15rem; }
a { color: var(--brick); }

.type {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.6rem; }
.column { max-width: 700px; }
.center { text-align: center; }

/* ---------- masthead ---------- */

.masthead {
  text-align: center;
  padding: 3.2rem 1.6rem 1.6rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}
.masthead .name {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.masthead .place { margin-top: .9rem; display: block; }

nav.rows {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
nav.rows .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .75rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
nav.rows a {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav.rows a:hover { color: var(--ink); border-bottom-color: var(--ink); }
nav.rows a.active { color: var(--brick); border-bottom-color: var(--brick); }

.banner {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  padding: .6rem 1.6rem;
}
.banner a { color: var(--brick); }

/* ---------- page opener ---------- */

.opener { padding: 3.2rem 0 1rem; }
.opener .type { display: block; margin-bottom: .8rem; }
.opener p.stand {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 620px;
  margin: .6rem 0 0;
}

hr.thin { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
hr.short { border: 0; border-top: 1px solid var(--ink); width: 56px; margin: 1.6rem 0; }

section { padding: 2.6rem 0; }

/* ---------- plates (photographs) ---------- */

figure.plate { margin: 0; }
figure.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--rule);
}
figure.plate figcaption {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .78rem;
  color: var(--ink-faint);
  padding-top: .6rem;
  line-height: 1.5;
}

figure.plate.feature {
  max-width: 660px;
  margin: 2.4rem auto 1rem;
}
figure.plate.feature img { padding: 16px; }
figure.plate.feature figcaption { text-align: center; padding-top: .9rem; font-size: .82rem; }
figure.plate.feature.wide { max-width: 100%; }

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.spread.wide-left { grid-template-columns: 1.15fr .85fr; }
.spread.wide-right { grid-template-columns: .85fr 1.15fr; }
.spread.flip .prose { order: 2; }

.snapshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--rule);
}

/* ---------- lists, tables, notes ---------- */

ul.plainlist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
ul.plainlist li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .97rem;
}
ul.plainlist li:first-child { border-top: 1px solid var(--rule); }

table.ledger { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .97rem; }
table.ledger th, table.ledger td { padding: .7rem .2rem; text-align: left; border-bottom: 1px solid var(--rule); }
table.ledger th {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--ink);
}
table.ledger td:last-child { text-align: right; white-space: nowrap; }

.note {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.4rem 0;
  margin: 2.2rem 0;
}
.note p:last-child { margin-bottom: 0; }

.dated { margin-bottom: 2.2rem; }
.dated .when { display: block; margin-bottom: .3rem; }

.paper-item {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.paper-item:first-of-type { border-top: 1px solid var(--rule); }
.paper-item .grow { flex: 1; }
.paper-item .grow p { margin: .15rem 0 0; font-size: .9rem; color: var(--ink-soft); }

a.link {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
  text-decoration: none;
  border-bottom: 1px solid var(--brick);
  padding-bottom: 2px;
  white-space: nowrap;
}
a.link:hover { color: var(--ink); border-bottom-color: var(--ink); }
a.link + a.link { margin-left: 1.4rem; }

form.ask { margin-top: 1.6rem; max-width: 520px; }
form.ask label {
  display: block;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.2rem 0 .3rem;
}
form.ask input, form.ask select, form.ask textarea {
  width: 100%;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
}
form.ask textarea { min-height: 120px; resize: vertical; border: 1px solid var(--ink); padding: .6rem; }
form.ask input:focus, form.ask textarea:focus, form.ask select:focus { outline: none; border-color: var(--brick); }
form.ask button {
  margin-top: 1.6rem;
  background: transparent;
  border: 1px solid var(--ink);
  padding: .6rem 1.6rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
form.ask button:hover { background: var(--ink); color: var(--paper); }

.pending {
  background: #F0E7CF;
  border-bottom: 1px solid #C4A94F;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .8rem;
  color: #6B5514;
  padding: 0 .25rem;
}

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem; margin-top: 1.4rem; }
.details .when { display: block; margin-bottom: .25rem; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--ink);
  margin-top: 3rem;
  padding: 2.6rem 0 2.4rem;
  font-size: .93rem;
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.2rem; }
.foot-grid h4 {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin: 0 0 .7rem;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .35rem; }
.foot-grid a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-grid a:hover { border-bottom-color: var(--ink); }
.foot-note {
  border-top: 1px solid var(--rule);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- walking into the barn (home page only) ---------- */

html { background: #1C1A17; }
body.photo-bg { background: transparent; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}
.backdrop.hay img { object-position: center 58%; }
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,16,13,.60) 0%, rgba(18,16,13,.18) 38%, rgba(18,16,13,.70) 100%);
}

body.photo-bg .banner {
  background: rgba(18,16,13,.55);
  border-bottom-color: rgba(255,255,255,.18);
}
body.photo-bg .banner .type { color: #D8CCB5; }
body.photo-bg .banner a { color: #E7C88E; }

body.photo-bg .masthead {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
body.photo-bg .masthead .name { color: #F7F0E3; text-shadow: 0 2px 20px rgba(0,0,0,.65); }
body.photo-bg .masthead .place { color: #D8CCB5; }

body.photo-bg nav.rows {
  background: rgba(18,16,13,.62);
  border-bottom-color: rgba(255,255,255,.2);
}
body.photo-bg nav.rows a { color: #E3DAC8; }
body.photo-bg nav.rows a:hover { color: #fff; border-bottom-color: #fff; }
body.photo-bg nav.rows a.active { color: #E7C88E; border-bottom-color: #E7C88E; }

.threshold {
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.6rem 3rem;
}
.threshold p {
  margin: 0;
  max-width: 620px;
  color: #F3EADA;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.02rem, 2.1vw, 1.4rem);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0,0,0,.75);
}

.threshold.short { min-height: 30vh; align-items: center; }

.sheet {
  background: rgba(222, 210, 186, .96);
  border-top: 1px solid var(--ink);
}

@media (max-width: 800px) {
  body { font-size: 18px; }
  .spread, .spread.wide-left, .spread.wide-right { grid-template-columns: 1fr; gap: 1.8rem; }
  .spread.flip .prose { order: 0; }
  nav.rows .inner { gap: 1rem; }
  a.link + a.link { margin-left: 0; display: inline-block; margin-top: .8rem; }
  .threshold { min-height: 56vh; padding: 2.5rem 1.6rem 2rem; }
  .backdrop img { object-position: center 40%; }
}
