.home { background: var(--white); }
.home a:not(.btn) { color: inherit; }
.top { background: var(--blue); display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(18px, 5vw, 64px); }
.top .lockup { display: flex; text-decoration: none; }
.top .lockup .mono { height: 36px; } .top .lockup .word { height: 20px; }
.top .pill { text-decoration: none; }
.top .pill svg { color: var(--ink); width: 16px; height: 16px; }

.hero { min-height: calc(100dvh - 76px); background: var(--blue); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(30px, 6vw, 80px) clamp(18px, 5vw, 64px) clamp(60px, 9vw, 120px); }
.hero .words { max-width: 560px; justify-self: end; }
.hero .label { color: var(--ink); }
.hero h1 { font-size: clamp(26px, 4.2vw, 44px); letter-spacing: clamp(4px, .6vw, 7px); margin: 16px 0 22px; }
.hero .lede { color: var(--ink); font-size: clamp(17px, 1.5vw, 19px); margin-bottom: 30px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta .btn { text-decoration: none; }
.cta .quiet { font-style: italic; font-size: 15px; color: var(--ink); opacity: .75; }

/* a pile of prints, drawn in the house colours (no photographs on this page) */
.pile { position: relative; width: min(300px, 70vw); aspect-ratio: 3 / 4; justify-self: start; margin: 20px 30px; }
.print { position: absolute; inset: 0; background: #fff; padding: 8px; border-radius: 3px; box-shadow: 0 14px 34px rgba(27,35,18,.22); }
.print i { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.p1 { transform: rotate(7deg) translate(26px, 6px); } .p1 i { background: var(--olive); }
.p2 { transform: rotate(-6deg) translate(-22px, 4px); } .p2 i { background: var(--berry); }
.p3 i { background-color: var(--border); }
.print .plate { display: block; position: absolute; left: 8px; bottom: 30px; padding: 10px 18px 10px 14px; background: var(--berry); color: var(--white); }
.p2 .plate, .p1 .plate { background: var(--white); color: var(--ink); }
.print .plate em { display: block; font: italic 13px var(--h2); }
.print .plate strong { font: 600 22px/1.1 var(--title); letter-spacing: 4px; text-transform: uppercase; }
.dot { position: absolute; bottom: -26px; width: 52px; height: 52px; padding: 14px; border-radius: 50%; box-shadow: 0 6px 18px rgba(27,35,18,.22); }
.dot svg { width: 100%; height: 100%; display: block; }
.dot.pass { left: 16%; background: var(--white); color: var(--ink); }
.dot.fave { left: 50%; margin-left: -22px; width: 44px; height: 44px; padding: 11px; bottom: -22px; background: var(--white); color: var(--berry); }
.dot.love { right: 16%; background: var(--berry); color: var(--white); }
.p3 { animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .p3 { animation: none; } }

.steps { max-width: 1100px; margin: 0 auto; padding: clamp(50px, 7vw, 96px) clamp(18px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps article { border-top: 1px solid var(--green); padding-top: 20px; }
.num { font: 400 15px var(--caps); letter-spacing: 3px; color: var(--berry); }
.steps h2 { font-style: normal; font-family: var(--title); font-weight: 600; font-size: 17px; letter-spacing: 4px; text-transform: uppercase; margin: 10px 0 10px; }
.steps p { color: var(--text2); }

.quote { background: var(--olive); color: var(--white); text-align: center; padding: clamp(50px, 7vw, 90px) 24px; }
.quote img { width: 46px; margin-bottom: 22px; }
.quote p { font: italic 300 clamp(20px, 2.6vw, 28px)/1.5 var(--h2); color: var(--blue); }

.end { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 24px 50px; }
.end img { height: 20px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .words { justify-self: center; }
  .cta { justify-content: center; }
  .pile { justify-self: center; margin: 10px 0 20px; order: -1; width: min(220px, 56vw); }
  .steps { grid-template-columns: 1fr; }
}

/* sign-in page */
.signin { min-height: 100dvh; background: var(--blue); display: grid; place-items: center; padding: 24px; }
.signin form { background: var(--white); width: min(400px, 100%); padding: 40px 34px 34px; border-radius: 4px; box-shadow: 0 18px 50px rgba(27,35,18,.18); text-align: center; }
.signin .monogram { width: 54px; margin-bottom: 12px; }
.signin .wordmark { width: 150px; margin-bottom: 26px; }
.signin h1 { font-size: 17px; margin: 6px 0 24px; }
.signin label { display: block; text-align: left; margin-bottom: 16px; }
.signin label .label { display: block; margin-bottom: 6px; }
.signin input { width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); background: #FBFBF7; border: 1px solid var(--border); border-radius: 3px; }
.signin input:focus { outline: none; border-color: var(--ink); }
.signin .btn { width: 100%; margin-top: 8px; }
.signin .err { color: var(--berry); font-style: italic; font-size: 15px; min-height: 26px; margin-top: 12px; }
.signin .backhome { display: inline-block; margin-top: 6px; font-style: italic; font-size: 14px; color: var(--text2); }

/* ---- big centred logo above the heading; three layouts (body.lay-a | lay-b | lay-c) ---- */
.top { justify-content: flex-end; padding-bottom: 0; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: clamp(26px, 4vw, 44px); }
.brand .mono { width: clamp(84px, 9vw, 124px); }
.brand .word { width: clamp(230px, 26vw, 360px); }
.hero .words { text-align: center; justify-self: center; }
.hero { min-height: calc(100dvh - 68px); padding-top: clamp(10px, 2vw, 30px); }
/* a · Centred: logo, heading and text in one column, the pictures beneath */
.lay-a .hero { grid-template-columns: 1fr; justify-items: center; gap: clamp(30px, 4vw, 50px); }
.lay-a .hero .words { max-width: 720px; }
.lay-a .pile { justify-self: center; margin: 0 0 30px; width: min(250px, 60vw); order: 0; }
/* b · Side by side: words on the left, the pictures on the right */
.lay-b .hero .words { justify-self: end; max-width: 560px; }
.lay-b .pile { width: min(330px, 70vw); }
/* c · Gallery row: the three pictures laid out next to each other under the words */
.lay-c .hero { grid-template-columns: 1fr; justify-items: center; gap: clamp(30px, 4vw, 50px); }
.lay-c .hero .words { max-width: 720px; }
.lay-c .pile { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.4vw, 30px); width: 100%; max-width: 760px; aspect-ratio: auto; margin: 0 0 40px; order: 0; }
.lay-c .print { position: relative; inset: auto; flex: 1; max-width: 220px; aspect-ratio: 3 / 4; }
.lay-c .p2 { order: 1; transform: rotate(-4deg) translateY(10px); }
.lay-c .p3 { order: 2; transform: translateY(-14px); animation: none; flex: 1.15; max-width: 250px; }
.lay-c .p1 { order: 3; transform: rotate(4deg) translateY(10px); }
@media (max-width: 820px) {
  .lay-b .hero .words { justify-self: center; }
  .lay-b .pile { order: 0; width: min(230px, 58vw); margin: 0 0 30px; }
  .lay-a .pile, .lay-b .pile { justify-self: center; }
  .lay-c .print .plate strong { font-size: 13px; letter-spacing: 2px; } .lay-c .print .plate { padding: 6px 9px; bottom: 34px; }
  .lay-c .dot { transform: scale(.7); }
}

/* ---- the name on the home page (Mateo's pick G, 16 Nov 2026): "moodmatch" in lower-case italic with the small heart, cherry red, large;
   the heading under it a little smaller and further away ---- */
.hero .name { margin: 0; color: var(--berry); font: italic 400 clamp(40px, 5.4vw, 66px)/1.05 var(--h2); letter-spacing: .5px; }
.hero .name svg { width: .5em; height: .5em; margin-left: .18em; vertical-align: .22em; }
.hero h1 { font-size: clamp(15px, 1.9vw, 24px); letter-spacing: clamp(2px, .35vw, 4px); white-space: nowrap; margin: clamp(30px, 3.6vw, 46px) 0 22px; }   /* one line, always (Mateo, 16 Nov) */
