/* Devoted to Agape — site styles
   Colours and type are set once here, as variables. */
:root {
  --ink: #1A0F14;
  --wine: #A31F24;
  --band: #5A1A2B;
  --paper: #F6F1EB;
  --paper-deep: #ECE4DA;
  --line: #DCCFC2;
  --text: #2A1A1F;
  --text-soft: #4A363B;
  --muted: #6B5459;
  --gold: #C9A46A;
  --gold-soft: #E4C99A;
  --on-dark: #F6F1EB;
  --on-dark-soft: #D9CCCB;
  --on-dark-muted: #CDBFC0;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.on-paper :focus-visible { outline-color: var(--wine); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; background: var(--paper); color: var(--text);
  text-decoration: none; font-weight: 400;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 900px; }

/* Type */
.label {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  color: var(--gold);
}
.on-paper .label { color: var(--wine); }
.on-wine .label { color: var(--gold-soft); }
.display {
  font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.01em;
  font-size: clamp(50px, 8vw, 104px); text-wrap: balance;
}
.display em { font-weight: 300; }
.display-sm { font-size: clamp(48px, 7.4vw, 96px); line-height: 1; }
.heading {
  font-family: var(--serif); font-weight: 400; line-height: 1.08;
  font-size: clamp(36px, 4.6vw, 60px); text-wrap: balance;
}
.lede { font-size: 19px; color: var(--on-dark-soft); max-width: 30em; text-wrap: pretty; }
.prose { display: flex; flex-direction: column; gap: 22px; }
.prose p { text-wrap: pretty; }

/* Links and buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 34px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-wine { background: var(--wine); color: var(--paper); }
.btn-wine:hover { background: #B8323A; }
.btn-outline { border-color: var(--gold); color: var(--gold); font-weight: 400; }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-outline-soft { border-color: var(--gold-soft); color: var(--gold-soft); font-weight: 400; }
.btn-outline-soft:hover { background: var(--gold-soft); color: var(--wine); }
.btn-sm { padding: 14px 26px; font-size: 12px; }
.text-link {
  display: inline-block; padding: 12px 0;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: text-underline-offset .2s ease;
}
.text-link:hover { text-underline-offset: 10px; }
.on-paper .text-link { color: var(--wine); font-weight: 500; }
.pill {
  display: inline-block; padding: 13px 24px; border: 1px solid #B9A29A; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--muted);
}

/* Header */
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 40px; padding-top: 28px; padding-bottom: 28px;
}
.wordmark {
  font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: 0.02em;
  text-decoration: none; color: var(--on-dark); white-space: nowrap;
}
.wordmark em { font-weight: 300; }
.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
}
.nav-links a:not(.btn) {
  padding: 12px 0; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 calc(100% - 6px) / 0 1px;
  transition: background-size .3s ease;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background-size: 100% 1px; }
.nav-links .btn { padding: 13px 26px; }

.logo { display: inline-block; line-height: 0; }
.logo img { height: 84px; width: auto; }
.footer-brand .logo img { height: 120px; margin-left: -8px; }

/* Sections */
.dark { background: var(--ink); color: var(--on-dark); }
.on-paper { background: var(--paper); color: var(--text); }
.on-wine { background: var(--band); color: var(--on-dark); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 32px 96px; align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 24px; }

/* Photo frames: empty until a photo is set in the content files */
.frame { background: var(--paper-deep); border: 1px solid var(--line); overflow: hidden; }
.dark .frame { background: #24141B; border-color: rgba(201, 164, 106, 0.45); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-arch { border-radius: 999px 999px 0 0; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 72px; align-items: center; padding-top: 56px; padding-bottom: 104px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }
.hero-frame { width: min(100%, 460px); aspect-ratio: 46 / 60; justify-self: center; }
.page-hero {
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
  padding-top: 72px; padding-bottom: 112px;
}
.page-hero .lede { max-width: 32em; }
.page-hero-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 28px 96px; align-items: end; padding-top: 64px; padding-bottom: 96px;
}

/* Layouts used while a section has no photo */
.hero-solo { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 72px; padding-bottom: 128px; }
.hero-solo .hero-copy { align-items: center; max-width: 900px; }
.hero-solo .hero-actions { justify-content: center; }
.meaning-solo { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.meaning-solo .prose { align-items: center; }

/* Agape definition */
.definition { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.agape-word { font-family: var(--serif); font-style: italic; font-weight: 300; line-height: 1; font-size: clamp(64px, 9vw, 120px); }
.definition-text { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; max-width: 24em; text-wrap: balance; }

/* Experience cards (home) */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px 40px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 28px; border-top: 1px solid var(--wine); }
.card:has(.frame) { padding-top: 0; border-top: 0; }
.card .frame { width: 100%; aspect-ratio: 4 / 5; }
.card-date { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--wine); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.card-text { color: var(--text-soft); }
.card-meta { font-size: 15px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; padding-bottom: var(--section); }
.gallery .frame { height: clamp(260px, 30vw, 380px); }

/* Experience rows (experiences page) */
.rows { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.row-date { flex: 0 0 108px; display: flex; flex-direction: column; gap: 4px; color: var(--wine); }
.row-day { font-family: var(--serif); font-weight: 300; font-size: 76px; line-height: 0.9; }
.row-month { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
.row .frame { flex: 0 0 260px; height: 210px; }
.row-body { flex: 3 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.row-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.08; }
.row-action { flex: 0 0 auto; }

/* Our Story */
.meaning { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px 96px; align-items: center; }
.meaning .frame { width: min(100%, 420px); aspect-ratio: 42 / 54; justify-self: center; }
.meaning-def { font-family: var(--serif); font-size: 28px; line-height: 1.35; text-wrap: pretty; }
.mission { display: flex; flex-direction: column; gap: 32px; max-width: 960px; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.mission-lead { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.25; text-wrap: pretty; }
.mission-sub { font-size: 19px; color: #EBDCD9; max-width: 38em; text-wrap: pretty; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px 56px; margin-top: 64px; }
.value { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--wine); }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.value p { color: var(--text-soft); }
.closing { display: flex; justify-content: center; margin-top: 72px; }

/* Call-out band */
.band { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.band-text { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; text-wrap: balance; }

/* Footer */
.footer { padding-top: 80px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; flex: 1 1 280px; }
.footer-brand .wordmark { font-size: 34px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; font-size: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; color: var(--on-dark-muted); margin-bottom: 8px; }
.footer-col a { text-decoration: none; padding: 9px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col span { padding: 9px 0; }
.footer-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(246, 238, 232, 0.18); font-size: 14px; color: var(--on-dark-muted); }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; padding-top: 72px; padding-bottom: 112px; }

/* Gentle entrance for the opening of each page */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .24s; }
  .rise-4 { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link, .nav-links a { transition: none; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-top: 20px; padding-bottom: 12px; }
  .logo img { height: 60px; }
  .footer-brand .logo img { height: 100px; }
  .hero-solo { padding-top: 48px; padding-bottom: 88px; }
  .nav-links { gap: 4px 28px; }
  .nav-links .btn { display: none; }
  .hero { padding-top: 32px; padding-bottom: 72px; gap: 48px; }
  .page-hero { padding-top: 48px; padding-bottom: 80px; }
  .page-hero-split { padding-top: 40px; padding-bottom: 72px; }
  .lede { font-size: 18px; }
  .btn { padding: 17px 28px; }
  .section-head { margin-bottom: 40px; }
  .row { padding: 40px 0; gap: 24px; }
  .row-date { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 12px; }
  .row-day { font-size: 60px; }
  .row .frame { flex: 1 1 100%; }
  .footer-cols { gap: 32px 56px; }
}
