/* The homepage's working parts (loaded on the homepage only). Words on flat colour, 7:1 or better, 16 px or larger. */

/* ---- The house ------------------------------------------------------------------------------------------------------- */
.hs { background: var(--house); color: var(--milk); }
.hs__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hs__pic { grid-area: 2 / 1; display: block; min-width: 0; }
.hs__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1040; object-fit: cover; object-position: 50% 100%; }
.hs__lights { grid-area: 2 / 1; position: relative; isolation: isolate; opacity: 0; transition: opacity .45s ease; pointer-events: none; overflow: hidden; }
.hs__lights.on { opacity: 1; }
.hs__lights img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; max-width: none; }
.hs__lights.slide img { object-position: 84% 100%; }
.hs__lights .base { filter: brightness(.66) saturate(.92); }
.hs__lights .lamp { mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease; }
.hs__lights .lamp.on { opacity: 1; }
.hs__title { grid-area: 1 / 1; padding: 22px var(--gut) 4px; }
.hs__date { margin: 0 0 8px; font: 600 18px/1.4 var(--f-ui); color: var(--milk); }
.hs h1 { margin: 0; font: 800 37px/1.02 var(--f-disp); letter-spacing: -.02em; color: var(--milk); text-wrap: balance; }
.hs__zip { grid-area: 3 / 1; padding: 18px var(--gut) 22px; background: var(--house); }
.hs__zip label { display: block; margin: 0 0 8px; font: 700 20px/1.3 var(--f-ui); }
.hs__ziprow { display: flex; flex-wrap: wrap; gap: 10px; }
.hs__zip input { width: 7.2em; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font: 700 24px/1 var(--f-disp); letter-spacing: .04em; }
.hs__zip input::placeholder { color: #5A4D43; opacity: 1; font-weight: 500; }
.hs__zipnote { display: block; margin-top: 10px; font: 500 17px/1.4 var(--f-ui); }
.hs__zipnote a { color: var(--milk); }
/* A phone: the question and its box first, then the house with its tags in one row right under it, so that a tag, the rooms
   it lights and its note are on one screen. */
@media (max-width: 759px) {
	.hs__zip { grid-area: 2 / 1; padding-top: 14px; }
	.hs__pic, .hs__lights { grid-area: 3 / 1; }
	.js .hunt { padding-top: 12px; }
	.js .hunt__q { margin-bottom: 8px; font-size: 24px; }
	.js .hunt__tags { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
	.js .hunt__tag { flex: none; }
	.js .hunt__notes { margin-top: 8px; }
	.js .hunt__note { scroll-margin-bottom: 14px; }
}
@media (min-width: 760px) {
	.hs__pic img { aspect-ratio: 2280 / 1200; }
	.hs__title { grid-area: 2 / 1; z-index: 2; align-self: start; justify-self: start; padding: 2.6vw 0 0 max(var(--gut), calc((100% - var(--max)) / 2)); max-width: 34%; }
	.hs h1 { font-size: clamp(27px, 3.6vw, 60px); }
	.hs__date { font-size: clamp(17px, 1.35vw, 20px); }
}
@media (min-width: 1000px) {
	.hs__zip { grid-area: 2 / 1; z-index: 2; align-self: start; justify-self: end; padding: 3.1vw max(var(--gut), calc((100% - var(--max)) / 2)) 0 0; background: none; box-sizing: content-box; width: min(330px, 26%); }
}
@media (min-width: 1700px) {
	.hs__pic img, .hs__lights img { object-position: 50% 82%; }
	.hs__pic img { aspect-ratio: auto; height: max(900px, 40vw); }
	/* The house reaches the words' column here: the words stand above it, on the flat green. */
	.hs__title { grid-area: 1 / 1; max-width: none; padding: 40px max(var(--gut), calc((100% - var(--max)) / 2)) 0; }
}
/* Wider still, the house grows with the screen: the form moves out past the end of its roof. */
@media (min-width: 2000px) { .hs__zip { padding-right: max(var(--gut), calc((100% - max(1500px, 62vw)) / 2)); } }

/* ---- What are you hunting for: tags and notes ------------------------------------------------------------------------ */
.hunt { padding-top: 22px; padding-bottom: 30px; }
.hunt__q { margin: 0 0 14px; font: 800 29px/1.1 var(--f-disp); letter-spacing: -.012em; color: var(--milk); }
.hunt__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hunt__tag { min-height: 46px; padding: 10px 16px 10px 34px; border: 0; cursor: pointer; background: var(--manila); color: var(--ink); font: 700 18px/1.2 var(--f-ui); position: relative; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 calc(100% - 13px), 0 13px); }
.hunt__tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle, var(--house) 0 2.8px, var(--tomato-deep) 3.2px 5.6px, transparent 6px); }
.hunt__tag[aria-pressed="true"] { background: var(--sunflower); }
.hunt__tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.hunt__tag:focus-visible { outline-color: var(--ink); outline-offset: -5px; }
.hunt__notes { margin-top: 20px; display: grid; gap: 16px 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.hunt__note { padding-top: 12px; border-top: 2px solid var(--manila); }
.hunt__note h3 { margin: 0 0 6px; font: 700 22px/1.25 var(--f-disp); color: var(--milk); }
.hunt__note h3 span { font: 500 18px/1.25 var(--f-ui); }
.hunt__note p { margin: 0; font: 400 19px/1.55 var(--f-text); color: var(--milk); }
.hunt__note a, .hunt__more a { color: var(--milk); text-decoration-color: var(--sunflower); text-decoration-thickness: 2px; }
html:not(.js) .hunt__tags, html:not(.js) .hs__zip { display: none; }
.hunt__note .hunt__more { margin-top: 8px; font: 600 18px/1.4 var(--f-ui); }
.js .hunt__notes.one { grid-template-columns: minmax(0, 46em); }
.js .hunt__notes.one .hunt__note:not(.on) { display: none; }
/* A phone: the notes wait for a tag (the page without script shows them all). */
@media (max-width: 699px) { .js .hunt__notes:not(.one) { display: none; } .hunt__tags { gap: 9px; } .hunt__tag { padding: 10px 13px 10px 32px; } }
.hs__dated { display: inline-block; align-self: flex-start; margin-top: 10px; padding: 7px 11px 8px; background: var(--milk); color: var(--ink); font: 600 18px/1.3 var(--f-ui); }
.hs__dated b { font-weight: 800; }
