/* Recreates the look of the original Squarespace "Aubrey" template. */
:root {
  --bg: #dbd2b5;
  --bar: #b5ae96;
  --bar-dark: #a39c84;
  --text: rgba(28, 28, 28, .9);
  --muted: #8a8a8a;
  --link: #a6a6a6;
  --rule: #d6d6d6;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .4px;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: #6e6e6e; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- announcement bar ---------- */
.announcement {
  position: relative;
  background: var(--bar);
  text-align: center;
  height: 48px;
  line-height: 48px;
  font-size: 15px;
  z-index: 20;
}
.announcement a { color: #fff; display: block; padding: 0 56px; }
.announcement-close {
  position: absolute; top: 0; right: 0;
  width: 48px; height: 48px;
  border: 0; background: var(--bar-dark); color: #fff;
  font-size: 22px; line-height: 48px; cursor: pointer;
}

/* ---------- header / nav ---------- */
.site-header { text-align: center; position: relative; z-index: 10; }

.main-nav ul {
  list-style: none; margin: 0; padding: 22px 16px 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 27px;
}
.main-nav a {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .85);
}
.main-nav a:hover, .main-nav a.active { color: #fff; font-weight: 700; }

.site-title {
  margin: 98px 0 70px;
  font-weight: 300;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: 0;
}
.site-title a { color: #fff; }

/* ---------- home cover ---------- */
body.home { background: #000; }
body.home .site-header { position: absolute; top: auto; left: 0; right: 0; }
body.home .announcement + .site-header { top: 48px; }
.cover {
  position: fixed; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.cover-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.cover-title {
  position: relative;
  margin: 10vh 0 0; padding: 0 24px;
  color: #fff; text-align: center;
  font-weight: 300; font-size: 80px; line-height: 1.1;
}

/* ---------- content card ---------- */
.card {
  background: #fff;
  width: 65%;
  margin: 0 auto 90px;
  padding: 75px 0;
}
.card-inner { width: 84%; margin: 0 auto; }
.card-inner p { margin: 0 0 1em; }
.card-inner hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0 50px; }
.center { text-align: center; }
.center p { margin: 0 0 .9em; }
.card h2 { font-weight: 400; font-size: 26px; letter-spacing: .5px; margin: 0 0 32px; }

/* ---------- photos ---------- */
.gallery figure { margin: 0 0 28px; }
.gallery figure:last-child { margin-bottom: 0; }
.gallery img { width: 100%; cursor: zoom-in; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 20, .95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; width: auto; }
.lightbox button {
  position: absolute; border: 0; background: none; color: #fff;
  font-size: 48px; line-height: 1; cursor: pointer; padding: 16px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 40px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- memories (blog post + comments) ---------- */
.card.post { padding: 0 0 75px; }
.post-header { text-align: center; padding: 85px 8% 40px; }
.post-title { margin: 0 0 12px !important; font-weight: 400; font-size: 30px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-image { width: 100%; margin-bottom: 60px; }

.memories-heading {
  font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); border-bottom: 1px solid var(--rule);
  padding-bottom: 12px; margin: 0 0 28px;
}

.memory-form { margin-bottom: 44px; }
.memory-form textarea, .memory-form input {
  width: 100%; font: inherit; font-size: 15px; letter-spacing: .2px;
  border: 1px solid #ccc; padding: 12px 14px; color: #222; background: #fff;
  border-radius: 0;
}
.memory-form textarea { resize: vertical; min-height: 120px; display: block; }
.memory-form textarea:focus, .memory-form input:focus { outline: 2px solid var(--bar); outline-offset: -1px; }
.form-row { display: flex; gap: 12px; margin-top: 12px; }
.form-row input { flex: 1; }
.memory-form button[type="submit"] {
  font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  background: #272727; color: #fff; border: 0; padding: 0 28px; cursor: pointer;
}
.memory-form button[type="submit"]:disabled { opacity: .5; cursor: default; }
.form-status { font-size: 14px; color: var(--muted); margin: 10px 0 0; min-height: 1.5em; }
.form-status.error { color: #b3261e; }
.replying-to { font-size: 14px; margin: 0 0 8px; }
.cancel-reply { font: inherit; font-size: 13px; background: none; border: 0; color: var(--link); cursor: pointer; text-decoration: underline; }
.hp { position: absolute; left: -9999px; }

.memories, .replies { list-style: none; margin: 0; padding: 0; }
.memory article { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid #eee; }
.memory header { margin-bottom: 6px; }
.memory-author { font-weight: 700; font-size: 15px; }
.memory time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.memory-body p { margin: 0 0 .7em; font-size: 15px; }
.memory-body p:last-child { margin-bottom: 0; }
.reply-btn {
  font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  background: none; border: 0; padding: 0; margin-top: 8px; color: var(--link); cursor: pointer;
}
.reply-btn:hover { color: #6e6e6e; }
.replies { padding-left: 32px; border-left: 2px solid #f0ece0; }
.replies:empty { display: none; }
.memory.is-new article { animation: flash 2s ease-out; }
@keyframes flash { from { background: #f6f1e0; } to { background: transparent; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .card { width: 92%; padding: 48px 0; }
  .card.post { padding: 0 0 48px; }
  .card-inner { width: 88%; }
  .site-title { font-size: 40px; margin: 60px 0 44px; padding: 0 16px; }
  .cover-title { font-size: 48px; }
  .post-header { padding: 56px 6% 28px; }
}
@media (max-width: 520px) {
  .main-nav ul { gap: 4px 16px; }
  .main-nav a { letter-spacing: 2px; font-size: 11px; }
  .announcement { font-size: 13px; }
  .form-row { flex-direction: column; }
  .memory-form button[type="submit"] { padding: 12px; }
  .replies { padding-left: 16px; }
}
