/* Grace and Gladness: shared styles for every page. */
:root {
  --paper: #FAF8EC;
  --paper-2: #F3E9D2;
  --ink: #3A2A1C;
  --ink-soft: #6A5741;
  --grace: #4E5B2A;
  --grace-dark: #353F1B;
  --glad: #9A4A1E;
  --line: #D9C9A6;
  --gold: #EBCB86;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --paper-rgb: 250,248,236;
  --ink-rgb: 58,42,28;
  --veil-rgb: 36,27,18;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.55;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--grace); }
a:hover { color: var(--grace-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--glad); outline-offset: 3px; border-radius: 2px; }
.grace { color: var(--grace); }
.glad { color: var(--glad); }
.wordmark { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark i { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  background: var(--grace); color: var(--paper);
  font: inherit; font-weight: 600; font-size: 20px; letter-spacing: .01em;
  text-decoration: none;
  padding: 10px 28px;
  border: 0; border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px rgba(var(--ink-rgb),.22);
  transition: background .2s ease;
}
.btn:hover { background: var(--grace-dark); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--grace); box-shadow: inset 0 0 0 1.5px var(--grace); }
.btn.quiet:hover { background: var(--grace); color: var(--paper); }

/* ---------- Page header used on inner pages ---------- */
.banner {
  position: relative;
  height: clamp(220px, 30vw, 340px);
  z-index: 5;
  background: #D8C9A6 url('road-watercolor.jpg') 50% 78% / cover no-repeat;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(var(--paper-rgb),.92) 0%, rgba(var(--paper-rgb),.5) 34%, rgba(var(--paper-rgb),0) 62%, rgba(var(--paper-rgb),0) 78%, var(--paper) 100%);
}
.topbar {
  position: relative; z-index: 2;
  padding: 18px clamp(20px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px;
}
.topbar .wordmark { font-size: 22px; padding: 8px 0; }
.menu { display: flex; flex-wrap: wrap; gap: 0 30px; font-size: 18px; }
.menu a { color: var(--ink); text-decoration: none; padding: 11px 0; border-bottom: 1.5px solid transparent; }
.menu a:hover { color: var(--grace); border-bottom-color: currentColor; }
.menu a[aria-current="page"] { color: var(--grace); border-bottom-color: var(--grace); }

/* ---------- Inner page body ---------- */
.page { max-width: 1240px; padding: 40px clamp(20px, 5vw, 72px) 112px; position: relative; z-index: 2; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--glad); }
.title { margin-top: 8px; font-weight: 600; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.01em; max-width: 16em; text-wrap: balance; }
.lede { margin-top: 20px; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.45; max-width: 32em; color: var(--ink); text-wrap: pretty; }
.rule { height: 1px; background: var(--line); border: 0; margin: 48px 0; }
.prose p + p { margin-top: 14px; }
.prose { max-width: 36em; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 72px);
  font-size: 17px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; text-align: center;
}
.foot .wordmark { font-size: 20px; }
.foot span { text-wrap: balance; }

/* ---------- Arrival motion, once per load ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; } .rise.d4 { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } .btn { transition: none; } }

@media (max-width: 720px) {
  body { font-size: 19px; }
  .topbar { padding: 12px 20px; justify-content: center; }
  .menu { justify-content: center; gap: 0 18px; font-size: 17px; }
  .topbar .menu a { padding: 6px 0 3px; }
  .topbar .menu { row-gap: 10px; }
  .page { padding: 28px 20px 80px; }
  .banner { height: 200px; background-position: 30% 78%; }
}
@media (max-width: 720px) {
  .banner { height: 230px; }
  .banner::after { background: linear-gradient(to bottom, var(--paper) 0%, rgba(var(--paper-rgb),.94) 46%, rgba(var(--paper-rgb),0) 72%, rgba(var(--paper-rgb),0) 84%, var(--paper) 100%); }
}

/* ---------- Menu pictures: each main menu item shows where it leads (mouse only) ---------- */
.menu .item { position: relative; }
.peek {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; width: 252px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--paper); border-radius: 6px; padding: 10px 10px 12px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(var(--ink-rgb), .18);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.peek img {
  display: block; width: 100%; height: 136px; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.peek span { display: block; margin: 6px 6px 0; font-size: 16px; line-height: 1.3; color: var(--ink-soft); }
@media (hover: hover) {
  .menu .item:hover .peek, .menu .item:focus-within .peek {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
}
.menu .item:last-child .peek { left: auto; right: -8px; transform: translate(0, 6px); }
@media (hover: hover) {
  .menu .item:last-child:hover .peek, .menu .item:last-child:focus-within .peek { transform: none; }
}

/* ---------- Buttons with an arrow: the arrow moves a little on hover ---------- */
.btn .arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .peek, .btn .arrow { transition: none; } }
@media (hover: none), (max-width: 720px) { .peek { display: none; } }

/* Links that end with an arrow: the arrow moves a little on hover, like the button's. */
.more { font-weight: 600; color: var(--grace); }
.more .arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
a:hover .more .arrow, a:focus-visible .more .arrow { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .more .arrow { transition: none; } }
h1, h2, h3 { text-wrap: balance; }
