/* JEM Island Christmas Trees. A dusk evening at the lot: colors come from the
   painted sign, the green tent, and the night photos. */
@font-face { font-family: "Sue Ellen Francisco"; src: url("../fonts/sue-ellen-francisco.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --dusk-deep: #0a1a3a;
  --dusk: #0f2652;
  --dusk-soft: #223c68;
  --pine: #0e2e25;
  --tent: #174a3d;
  --green: #12654e;
  --red: #bd1e3c;
  --red-deep: #971630;
  --board: #f5f5ef;
  --tag: #fdfcf7;
  --twine: #b79468;
  --post: #c79a63;
  --bulb: #ffd27a;
  --wood: #4f331c;
  --chalk: #20241f;
  --chalk-text: #f3efe6;
  --ink: #1f2b26;
  --ink-soft: #4d5b54;
  --line: #d3d6cb;
  --paint: "Sue Ellen Francisco", "Bradley Hand", cursive;
  --text: "Bitter", Georgia, serif;
  --wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 1.0625rem/1.7 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .15em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--bulb); outline-offset: 2px; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--tag); padding: .5rem 1rem; }

/* Hand-painted headings. The stroke gives the thin font the body of a real brush. */
h2, h3, .paint { margin: 0 0 .35em; font-family: var(--paint); font-weight: 400; line-height: 1.12; -webkit-text-stroke: .025em currentColor; paint-order: stroke fill; }
h1 { margin: 0 0 .4em; font: 600 clamp(1.8rem, 4.4vw, 2.9rem)/1.2 var(--text); text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 6vw, 3.9rem); color: var(--green); }
h3 { font-size: 2.4rem; color: var(--red); }

/* Header */
.site-header { background: var(--dusk-deep); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding-block: .45rem; }
.brand { font: 400 1.7rem/1.5 var(--paint); -webkit-text-stroke: .02em currentColor; text-decoration: none; color: #fff; }
.brand:hover { color: var(--bulb); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-nav a { padding-block: .3rem; font-size: 1rem; font-weight: 500; text-decoration: none; color: #fff; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bulb); }

/* Lights on a wire, shared by every dusk banner */
.lights { position: absolute; inset: 0 0 auto; height: 70px; background: url("../img/string-lights.svg") repeat-x center top / 220px 70px; }

/* Hero: the sign, planted in the treeline */
.scene { position: relative; overflow: hidden; padding: clamp(4.25rem, 8vw, 5.5rem) 0 0; background: linear-gradient(var(--dusk-deep), var(--dusk) 55%, var(--dusk-soft)); }
.sign { position: relative; z-index: 1; width: min(100% - 2rem, 58rem); margin-inline: auto; padding: clamp(.9rem, 2.5vw, 1.75rem) clamp(.5rem, 2.5vw, 2rem) clamp(.6rem, 1.5vw, 1rem); background: var(--board); border-radius: 2px; transform: rotate(-.5deg); box-shadow: 0 0 90px rgba(255, 210, 122, .32), 0 8px 18px rgba(3, 8, 22, .5); }
.sign-text { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: clamp(.15rem, 1.5vw, 1rem); }
.sign-text img { width: 100%; max-width: 7.5rem; justify-self: center; }
.sign-name { text-align: center; line-height: 1.12; font-family: var(--paint); font-size: clamp(2.45rem, 10.4vw, 6.25rem); white-space: nowrap; -webkit-text-stroke: .022em currentColor; }
.sign-name span { display: block; }
.sign-jem { color: var(--red); }
.sign-trees { color: var(--green); }
.sign-flourish { width: min(62%, 24rem); margin: clamp(.1rem, 1vw, .5rem) auto 0; }
.posts { position: relative; height: clamp(5rem, 11vw, 8rem); margin-top: -.5rem; }
.posts::before, .posts::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(.7rem, 1.5vw, 1.1rem); background: linear-gradient(90deg, var(--post), #e0bd8d 45%, #9c7141); }
.posts::before { left: calc(50% - min(50% - 1rem, 29rem) + 9%); }
.posts::after { right: calc(50% - min(50% - 1rem, 29rem) + 9%); }
.treeline { position: absolute; inset: auto 0 0; height: clamp(4.25rem, 9vw, 6.5rem); background: url("../img/treeline.svg") repeat-x center bottom / auto 100%; }

.ground { padding-block: 1.25rem clamp(3rem, 7vw, 4.5rem); background: var(--pine); color: var(--chalk-text); }
.ground h1 { max-width: 28em; margin-inline: auto; color: #fff; text-align: center; }
.ground .lede { max-width: 36rem; margin: 0 auto 2.25rem; text-align: center; }

/* Lot cards: the paper tags tied to each tree */
.tags { display: grid; gap: 1.75rem; max-width: 52rem; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.tag-wrap { filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .35)); transform: rotate(-.8deg); }
.tag-wrap:nth-child(2) { transform: rotate(.7deg); }
.tag { position: relative; height: 100%; padding: 3rem 1.75rem 1.75rem; background: var(--tag); color: var(--ink); clip-path: polygon(14% 0, 86% 0, 100% 6%, 100% 100%, 0 100%, 0 6%); }
.tag::before { content: ""; position: absolute; top: 1rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 3px var(--twine); }
.tag-page .tag::before { background: var(--board); }
.tag h2 { margin-bottom: .3em; font-size: 2.75rem; line-height: 1.2; color: var(--red); }
.tag h2 a { color: inherit; text-decoration: none; }
.note { color: var(--ink-soft); }
.hours { margin-bottom: 1rem; font-weight: 600; }
.tag address + .hours { margin-top: .75rem; }
.tag .note { margin: 0; }
.tag .note + .hours { margin-top: .75rem; }
.tag .text-link { margin: .85rem 0 0; }
.season { margin: 2.25rem 0 0; font-family: var(--paint); font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.2; color: var(--bulb); text-align: center; -webkit-text-stroke: .02em currentColor; }

.button { display: inline-block; padding: .65rem 1.2rem; border-radius: 3px; background: var(--red); color: #fff; font-weight: 600; line-height: 1.3; text-decoration: none; }
.button:hover { background: var(--red-deep); color: #fff; }
.text-link { font-weight: 600; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.prose { max-width: 42rem; }
.prose .text-link:last-child { margin-bottom: 0; }

/* The A-frame chalkboard from the lot */
.chalkboard { width: 100%; max-width: 25rem; margin-inline: auto; padding: 1.75rem 1.5rem 1.25rem; background: radial-gradient(circle at 42% 28%, #30352f, var(--chalk) 72%); border: 15px solid var(--wood); border-radius: 2px; color: var(--chalk-text); text-align: center; box-shadow: 0 10px 18px rgba(20, 20, 12, .3); }
.chalkboard p { margin: 0; font-family: var(--paint); line-height: 1.1; }
.chalk-christmas { font-size: 3.6rem; color: #ff7468; -webkit-text-stroke: .02em currentColor; }
.chalk-trees { font-size: 3.9rem; color: #8fe08a; -webkit-text-stroke: .02em currentColor; }
.chalkboard img { width: 78%; margin-inline: auto; }
.chalkboard ul { list-style: none; margin: .9rem 0 .35rem; padding: 0; font: 400 1.85rem/1.2 var(--paint); }
.chalkboard li { padding-block: .35rem; border-bottom: 2px solid rgba(243, 239, 230, .4); }
.chalk-wreaths { font-size: 2.3rem; color: #ff8d7f; }

.lot-strip { width: 100%; height: clamp(13rem, 30vw, 25rem); object-fit: cover; object-position: center 34%; }

/* Tent-green section */
.tent { background: var(--tent); color: var(--chalk-text); }
.tent h2 { color: #fff; }
.tent a, .banner a { color: var(--bulb); }
.tent a:hover, .banner a:hover { color: #fff; }
.photo { width: 100%; box-shadow: 0 8px 18px rgba(5, 15, 10, .35); }

/* Questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: .9rem; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: -.1rem; }

/* Interior banners */
.banner { position: relative; overflow: hidden; padding: 4.5rem 0 clamp(4.5rem, 9vw, 6.5rem); background: linear-gradient(var(--dusk-deep), var(--dusk) 60%, var(--dusk-soft)); color: var(--chalk-text); }
.banner h1 { margin-bottom: .2em; font-family: var(--paint); font-size: clamp(3rem, 8vw, 5.25rem); font-weight: 400; line-height: 1.1; color: #fff; -webkit-text-stroke: .022em currentColor; }
.banner .lede { position: relative; z-index: 1; max-width: 38rem; margin-bottom: 0; font-size: 1.15rem; }
.tag-page { max-width: 28rem; width: 100%; margin-inline: auto; }
.tag .button-row { margin: 1rem 0 0; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .85rem; }
.steps li::marker { color: var(--red); font-weight: 600; }

/* Footer */
.site-footer { padding-block: 3rem 2rem; background: var(--dusk-deep); color: var(--chalk-text); font-size: 1rem; }
.site-footer a { color: var(--bulb); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid p { margin-bottom: .35rem; }
.footer-name { font-size: 2.1rem; color: #fff; }
.fine { margin: 2rem 0 0; color: #b3bdd0; font-size: .9rem; }

/* Thumb-reach directions on phones, where "near me" searches happen */
.mobile-bar { display: none; }
@media (max-width: 40rem) {
  body { padding-bottom: 3.75rem; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; background: var(--dusk-deep); box-shadow: 0 -2px 10px rgba(0, 0, 0, .35); }
  .mobile-bar a { padding: .55rem .25rem; color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
  .mobile-bar small { display: block; color: var(--bulb); font-weight: 400; font-size: .8rem; }
  .sign-text { grid-template-columns: 1.6rem minmax(0, auto) 1.6rem; }
  .sign-name { font-size: 11vw; }
}
