/* Steven 'Swaz' Swersky — A Celebration Of Life
   Recreated from the original Wix site. Colors, type sizes and spacing
   follow the original; fonts are open substitutes (see README). */

:root {
  --orange: #d14200;        /* site title, section headings, active nav */
  --ink: #414141;           /* body text, rules, footer */
  --peach-30: rgba(240, 185, 160, 0.3); /* home left column */
  --cream: #fff2e6;         /* works page bands */
  --dash: #ae633f;          /* works dashed rules */
  --blue: #1d67cd;          /* timeline dotted line, "new" circle */
  --blue-22: rgba(29, 103, 205, 0.22); /* timeline left cards */
  --salmon: #ffcbaa;        /* timeline right cards */
  --star: #fec10b;          /* family-favorite star */
  --heart: #ff5700;
  --serif: 'Libre Baskerville', 'Baskerville', Georgia, serif;
  --sans: 'Nunito Sans', 'Avenir Next', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans2: 'Montserrat', 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --page: 980px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; }

.page { width: var(--page); max-width: 100%; margin: 0 auto; }

/* ---------- header ---------- */
.site-header { padding: 52px 16px 0; }
.site-header .inner {
  width: var(--page); max-width: 100%; margin: 0 auto;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 15px;
}
.site-title {
  display: inline-block;
  font-family: var(--serif);
  font-size: 45px;
  line-height: 1.23;
  color: var(--orange);
  text-decoration: none;
  margin: 0;
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.tagline {
  font-family: var(--sans); font-weight: 300;
  font-size: 26px; line-height: 1.2;
  margin: 0 0 0 107px;
  color: var(--ink);
}
.site-nav { display: flex; gap: 25px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 16px; line-height: 1.4; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }

main { padding-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); padding: 58px 16px; }
.site-footer iframe {
  display: block; width: 854px; max-width: 100%; height: 80px;
  margin: 0 auto; border: 0; border-radius: 12px;
}

/* ---------- shared type ---------- */
.h1 { font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 1.25; margin: 0; color: var(--ink); }
.lead { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--orange); margin: 0 0 12px; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: 1fr 1fr; }
.home-left { background: var(--peach-30); padding: 23px 0 60px 6px; }
.home-left .update {
  font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.25;
  color: var(--ink); margin: 0 0 29px 35px; max-width: 429px;
}
.home-left img.portrait { display: block; width: 502px; max-width: 100%; height: auto; position: relative; z-index: 1; }
.home-right { padding: 28px 0 90px 11px; max-width: 476px; }
.home-right h1 { font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 1.25; margin: 0; }
.home-right h2 { font-family: var(--sans); font-weight: 300; font-size: 20px; line-height: 1.4; margin: 22px 0 30px; }
.home-right p { font-size: 18px; line-height: 1.6; margin: 0 0 28.8px; max-width: 465px; }
.home-right p.dateline { font-size: 14px; font-style: italic; color: #777; margin: -20px 0 28px; }
.home-right p.spacer { margin: 0; height: 28.8px; }

/* ---------- timeline ---------- */
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 110px; padding: 47px 16px 0 61px; }
.timeline-head .soon { font-family: var(--sans2); font-size: 25px; margin: 0; }
.timeline { position: relative; margin: 50px auto 0; padding: 12px 0 10px; }
.timeline::before {
  content: ''; position: absolute; left: 472px; top: 12px; bottom: 135px;
  border-left: 5px dotted var(--blue);
}
.tl-card {
  position: relative; width: 356px; max-width: 100%;
  padding: 34px 23px; font-family: var(--sans2); font-weight: 400;
  font-size: 25px; line-height: 1.4; color: var(--ink);
}
.tl-card.avenir { font-family: var(--sans); font-weight: 300; }
.tl-card p { margin: 0 0 35px; }
.tl-card p:last-child { margin-bottom: 0; }
.tl-card.left { background: var(--blue-22); border-radius: 0 30px 0 30px; margin-left: 88px; }
.tl-card.right { background: var(--salmon); border-radius: 30px 0 20px 0; margin-left: 514px; }
.tl-card + .tl-card { margin-top: -6px; }
.tl-card.last { background: var(--blue-22); border-radius: 0 30px 0 30px; margin: 150px 0 0 312px; }
.tl-card .heart { width: 34px; height: 30px; fill: var(--heart); vertical-align: -4px; margin-left: 18px; }

/* ---------- works ---------- */
.works-intro { padding: 57px 0 44px 53px; }
.works-intro .h1 { margin-bottom: 22px; }
.works-intro p { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--orange); margin: 0 0 12px; }
.icon { display: inline-block; vertical-align: -2px; }
.icon.star { fill: var(--star); }
.icon.circle { fill: var(--blue); }
.works-intro .icon { width: 17px; height: 16px; margin: 0 8px; }
.works-section { padding: 41px 0 28px; }
.works-section.cream { background: var(--cream); }
.works-section .page { padding: 0 16px; }
.works-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25;
  color: var(--orange); text-align: center; margin: 0 0 42px;
}
.work-item { display: flex; align-items: flex-end; gap: 17px; padding-left: 42px; margin-bottom: 42px; }
.work-item .t {
  width: 744px; max-width: 100%;
  border-bottom: 1px dashed var(--dash); padding-bottom: 20px;
  font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.25; margin: 0;
  display: flex; align-items: center; gap: 14px;
}
.work-item .icon.star { width: 27px; height: 26px; }
.work-item .icon.circle { width: 20px; height: 20px; }
.work-item .pdf { display: block; flex: none; margin-bottom: -23px; line-height: 0; }
.work-item .pdf img { width: 39px; height: 45px; display: block; }
.work-item .pdf:hover img { opacity: 0.75; }

/* ---------- memories ---------- */
.memories-intro { padding: 50px 16px 36px 51px; }
.memories-intro .h1 { margin-bottom: 30px; }
.memories-intro p { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--orange); margin: 0 0 14px; max-width: 700px; }
.memories-intro p u { text-decoration: underline; }
.memories-outro { padding: 36px 16px 50px 51px; }
.memories-outro p { font-family: var(--serif); font-size: 26px; color: var(--orange); margin: 0; }

.comments { width: 898px; max-width: calc(100% - 32px); margin: 0 auto; background: #fff8f2; border: 1px solid #f3b78f; border-radius: 6px; padding: 18px; }
.comments .compose { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.comments .compose .avatar, .comment .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e3e3e3; display: grid; place-items: center; overflow: hidden; }
.comments .compose .avatar svg, .comment .avatar svg { width: 24px; height: 24px; fill: #fff; }
.comments .compose textarea {
  flex: 1; min-height: 44px; border: 1px solid #f3b78f; border-radius: 4px; background: #fff;
  font: inherit; font-size: 15px; padding: 11px 12px; color: var(--ink); resize: vertical;
}
.comments .compose textarea:disabled { background: #fff; color: #9a9a9a; }
.comments .notice { font-size: 13px; color: #8a6a55; margin: -8px 0 18px 52px; }
.comments .compose-fields { flex: 1; min-width: 0; }
.comments .compose-fields textarea { width: 100%; }
.compose-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.compose-row input { flex: 1 1 150px; height: 38px; border: 1px solid #f3b78f; border-radius: 4px; background: #fff; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.compose-row button { height: 38px; padding: 0 18px; background: var(--orange); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.compose-row button.cancel { background: transparent; color: #8a6a55; padding: 0 8px; }
.compose-row button:disabled { opacity: .5; cursor: default; }
.compose[data-state="loading"] { opacity: .6; }
.compose textarea:disabled, .compose input:disabled { background: #f7f7f7; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compose-row.name-row input { flex: 0 1 320px; }
.compose-question { font-size: 15px; margin: 16px 0 0; color: var(--ink); }
.compose-question + .compose-row { margin-top: 8px; }
.compose-question strong { font-weight: 700; }
.compose-hint { font-size: 13px; color: #8a6a55; margin: 8px 0 0; }
.compose-error { font-size: 13px; color: #b00020; margin: 8px 0 0; }
.comment .actions { margin: 4px 0 2px; }
.comment .actions button { background: none; border: 0; color: var(--orange); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.comment .actions button:hover { text-decoration: underline; }
.comment .reply-form { margin: 8px 0 10px; }
.comment .reply-form .compose-fields textarea { min-height: 60px; }
.comment.is-new { outline: 2px solid var(--orange); outline-offset: 2px; }
.comment { display: flex; gap: 12px; align-items: flex-start; background: #fce2c8; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.comment .body { flex: 1; min-width: 0; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.45; color: #2e2e2e; }
.comment .body p { margin: 0 0 10px; white-space: pre-wrap; }
.comment .body p:last-of-type { margin-bottom: 8px; }
.comment .attachment { margin: 4px 0 10px; }
.comment .attachment img { display: block; max-height: 400px; max-width: 100%; width: auto; border-radius: 4px; }
.comment .meta { font-size: 13px; color: #555; }
.comment .meta b { font-weight: 700; color: #2e2e2e; }
.comment .meta .likes { margin-left: 10px; }
.replies { margin: 10px 0 0; padding: 0; list-style: none; }
.replies .comment { background: #fff; padding: 12px 14px; margin-bottom: 10px; }
.replies .comment:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */
.gallery-intro { padding: 50px 16px 22px 51px; }
.gallery-intro .h1 { margin-bottom: 20px; }
.gallery-intro p { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--orange); margin: 0 0 14px; max-width: 700px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 10px; }
.gallery a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; z-index: 100; }
.lightbox.open { display: block; }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); object-fit: contain; }
.lightbox button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 36px; line-height: 1;
  width: 56px; height: 72px; cursor: pointer; border-radius: 6px;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .prev { left: 12px; }
.lightbox .next { right: 12px; }
.lightbox .close { top: 12px; right: 12px; transform: none; width: 44px; height: 44px; font-size: 26px; }
.lightbox .count { position: absolute; left: 16px; bottom: 14px; color: #ddd; font-size: 14px; }

/* ---------- contact ---------- */
.contact { padding: 33px 16px 60px 53px; max-width: 900px; }
.contact .h1 { color: var(--orange); margin-bottom: 36px; }
.contact p { font-size: 21px; line-height: 1.75; margin: 0 0 36px; max-width: 825px; }
.contact p.note { font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .timeline::before { left: calc(50% - 18px); }
  .tl-card.left { margin-left: 0; }
  .tl-card.right { margin-left: auto; margin-right: 0; }
  .tl-card.last { margin-left: auto; margin-right: auto; }
  .timeline { padding-left: 16px; padding-right: 16px; }
  .work-item .t { width: auto; flex: 1; }
}
@media (max-width: 760px) {
  .site-header { padding-top: 28px; }
  .site-title { font-size: 34px; }
  .site-header .row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 8px; }
  .tagline { margin-left: 0; font-size: 22px; }
  .site-nav { justify-content: flex-start; gap: 16px 20px; }
  .home { grid-template-columns: 1fr; }
  .home-left { padding: 20px 16px 24px; }
  .home-left .update { margin-left: 0; }
  .home-left img.portrait { width: 100%; }
  .home-right { padding: 24px 16px 40px; max-width: none; }
  .timeline-head { padding-left: 16px; gap: 8px 40px; }
  .timeline::before { left: 16px; }
  .tl-card { width: auto; font-size: 20px; }
  .tl-card.left, .tl-card.right, .tl-card.last { margin-left: 44px; margin-right: 0; }
  .tl-card + .tl-card { margin-top: 18px; }
  .tl-card.last { margin-top: 60px; }
  .timeline::before { bottom: 0; }
  .works-intro, .memories-intro, .gallery-intro, .memories-outro { padding-left: 16px; }
  .works-intro p, .memories-intro p, .gallery-intro p { font-size: 18px; }
  .work-item { padding-left: 0; }
  .work-item .t { font-size: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .contact { padding-left: 16px; }
  .contact p { font-size: 18px; line-height: 1.5; }
  .comments { padding: 12px; }
  .comment { padding: 12px; gap: 8px; }
  .comments .compose .avatar, .comment .avatar { width: 30px; height: 30px; }
  .comments .compose .avatar svg, .comment .avatar svg { width: 18px; height: 18px; }
  .replies .comment { padding: 10px; margin-left: -8px; }
  .comments .notice { margin-left: 0; }
  .site-footer { padding: 32px 16px; }
}
