/* Fioreria Sole - concept site.
   The hero and the bouquet wheel are drawn in units of the 1280px Figma
   frame (--u), so they scale with the window; the other sections are
   ordinary centred layouts. Phones get their own stacked layout. */

:root {
  --cream: #f6efe8;
  --cream-deep: #f2e8dd;
  --cream-light: #f9f4ef;
  --violet: #a47698;
  --violet-deep: #7f5b76;
  --violet-pale: #f8e3f2;
  --violet-faint: #fdf6fb;
  --glow: rgba(239, 195, 228, 1);

  /* The design's fonts are Aloevera and ZT Nature. These are stand-ins. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --u: calc(min(100vw, 1600px) / 1280);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--violet);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet-deep);
  outline-offset: 3px;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Language switch ---------- */

.lang {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--violet);
  border-radius: 999px;
}

.lang__btn {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
}

.lang__btn[aria-pressed='true'] {
  background: var(--violet);
  color: var(--violet-faint);
}

/* ---------- Menu button and panel ---------- */

.menu {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 330px;
  height: 394px;
  pointer-events: none;
}

/* Closed, the panel is clipped to the 100px circle in its corner; opening
   it grows the circle until the whole card shows. */
.menu__panel {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--violet);
  clip-path: circle(50px at calc(100% - 50px) calc(100% - 50px));
  transition: clip-path 0.45s ease;
}

.menu.is-open .menu__panel {
  clip-path: circle(150% at calc(100% - 50px) calc(100% - 50px));
  pointer-events: auto;
}

.menu__links {
  list-style: none;
  padding-top: 39px;
  text-align: center;
}

.menu__links li {
  height: 76px;
}

.menu__links a,
.menu__brand {
  color: var(--cream-light);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1;
}

.menu__links a:hover,
.menu__brand:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.menu__links a:focus-visible,
.menu__brand:focus-visible,
.menu__toggle:focus-visible {
  outline-color: var(--cream-light);
}

.menu__brand {
  position: absolute;
  left: 22px;
  top: 328px;
}

.menu__toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.menu__toggle:focus-visible {
  outline-offset: -6px;
}

/* The bouquet glyph is a black drawing; turn it near-white and tilt it */
.menu__icon {
  width: 66px;
  height: 66px;
  filter: brightness(0) invert(0.98);
  transform: rotate(-30deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(853 * var(--u));
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(795 * var(--u));
  height: calc(853 * var(--u));
  max-width: none;
}

.hero__inner {
  position: relative;
  width: calc(1280 * var(--u));
  height: 100%;
  margin-inline: auto;
}

.hero__title {
  font-size: calc(61 * var(--u));
}

.hero__q,
.hero__a {
  position: absolute;
  white-space: pre;
}

.hero__q {
  left: calc(670 * var(--u));
  top: calc(64 * var(--u));
}

.hero__a {
  left: calc(898 * var(--u));
  top: calc(234 * var(--u));
}

.hero__tag {
  position: absolute;
  left: calc(795 * var(--u));
  top: calc(469 * var(--u));
  width: calc(472 * var(--u));
  font-family: var(--font-display);
  font-size: calc(49 * var(--u));
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1;
}

/* ---------- Bouquets ---------- */

.bouquets {
  --cx: calc(11 * var(--u));
  --cy: calc(354 * var(--u));
  --r: calc(271 * var(--u));
  --bw: calc(212 * var(--u));
  --bh: calc(283 * var(--u));

  position: relative;
  display: grid;
  grid-template-columns: calc(550 * var(--u)) minmax(0, 1fr);
  max-width: 1600px;
  min-height: calc(707 * var(--u));
  margin-inline: auto;
  overflow: hidden;
}

.wheel-area {
  position: relative;
}

.wheel__arc,
.wheel {
  position: absolute;
  left: calc(var(--cx) - var(--r));
  top: calc(var(--cy) - var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  max-width: none;
}

.wheel {
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.9s cubic-bezier(0.3, 0.1, 0.2, 1);
}

/* Each slot sits on the rim at angle --a (0 = three o'clock) with its
   flowers pointing away from the centre. */
.wheel__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bw);
  height: var(--bh);
  margin: calc(var(--bh) / -2) 0 0 calc(var(--bw) / -2);
  transform: rotate(calc(var(--a) + 90deg)) translateY(calc(var(--r) * -1));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.wheel__slot.is-near {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.wheel__slot::before {
  content: '';
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, var(--glow) 0%, rgba(239, 195, 228, 0.55) 40%, rgba(239, 195, 228, 0) 100%);
}

.wheel__slot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* This photo was shot lying on its side: stand it up */
.wheel__slot--wide img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bh);
  height: var(--bw);
  max-width: none;
  margin: calc(var(--bw) / -2) 0 0 calc(var(--bh) / -2);
  transform: rotate(-90deg);
}

.wheel__slot:not(.is-current):hover img {
  transform: scale(1.05);
}

.wheel__slot--wide:not(.is-current):hover img {
  transform: rotate(-90deg) scale(1.05);
}

.wheel__slot.is-current {
  cursor: default;
}

.bouquet {
  padding: calc(77 * var(--u)) calc(23 * var(--u)) calc(60 * var(--u)) 0;
  font-size: max(15px, calc(20 * var(--u)));
  font-weight: 400;
  line-height: 2;
  transition: opacity 0.3s ease;
}

.bouquet.is-changing {
  opacity: 0;
}

.bouquet__name {
  margin-bottom: 0.15em;
  font-size: max(24px, calc(31 * var(--u)));
}

.bouquet__quote {
  max-width: calc(600 * var(--u));
}

.bouquet__list {
  padding-left: 30px;
}

.bouquet__list li::marker {
  font-size: 0.7em;
}

/* ---------- Section titles ---------- */

.section-title {
  color: var(--violet-deep);
  font-size: 61px;
  text-align: center;
}

/* ---------- Workshops ---------- */

.workshops {
  padding-top: 57px;
}

/* The stage is as tall as the large poster. Every poster is laid out at
   that large size and scaled down while it waits at a side, so its inner
   proportions never change. */
.posters {
  --side: 0.662;
  --offset: 37.2%;

  position: relative;
  width: min(1186px, calc(100% - 94px));
  aspect-ratio: 1186 / 648;
  margin: 57px auto 0;
  touch-action: pan-y;
}

.poster {
  position: absolute;
  left: 50%;
  top: 0;
  width: 38.7%;
  aspect-ratio: 459 / 648;
  overflow: hidden;
  transform: translateX(-50%);
  transition: transform 0.7s cubic-bezier(0.3, 0.1, 0.2, 1), opacity 0.35s ease;
  z-index: 2;
  user-select: none;
  border: 2px solid rgba(127, 91, 118, 0.84);
  background: var(--cream-deep);
  color: var(--violet-deep);
  container-type: inline-size;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1;
}

.poster > * {
  position: absolute;
}

/* Waiting at the left or right: smaller, and clickable to bring forward */
.poster.is-left,
.poster.is-right {
  z-index: 1;
  cursor: pointer;
}

.poster.is-left {
  transform: translateX(calc(-50% - var(--offset) / 0.387)) scale(var(--side));
}

.poster.is-right {
  transform: translateX(calc(-50% + var(--offset) / 0.387)) scale(var(--side));
}

/* The one crossing from one side to the other slips behind and fades */
.poster.is-crossing {
  z-index: 0;
  opacity: 0;
}

.posters__nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.posters__arrow {
  width: 50px;
  height: 50px;
  transition: opacity 0.2s;
}

.posters__arrow:hover {
  opacity: 0.7;
}

.posters__arrow--prev img {
  transform: rotate(-90deg);
}

.posters__arrow--next img {
  transform: rotate(90deg);
}

.poster img {
  max-width: none;
  object-fit: cover;
}

.poster b {
  font-weight: inherit;
}

/* Centre poster: 459 x 648 in the design */
.poster--bloom .poster__word {
  left: 8.71%;
  top: 5.25%;
  font-size: 13.29cqw;
}

.poster--bloom .poster__top {
  left: 50.11%;
  top: 2.93%;
  width: 45.53%;
  height: 14.2%;
}

.poster--bloom .poster__name {
  left: 4.58%;
  right: 4.36%;
  top: 21.91%;
  font-size: 5.45cqw;
  text-align: right;
}

.poster--bloom .poster__name b {
  font-size: 8.5cqw;
}

.poster--bloom .poster__photo {
  left: 4.58%;
  top: 31.94%;
  width: 91.06%;
  height: 65.13%;
}

.poster--bloom .poster__when {
  left: 8.71%;
  top: 36.88%;
  color: var(--violet-pale);
  font-size: 5.45cqw;
}

.poster--bloom .poster__handle {
  right: 6.1%;
  top: 47.99%;
  color: var(--violet-pale);
  font-size: 5.45cqw;
}

/* Left poster: 304 x 429 */
.poster--mothers .poster__brand {
  left: 8.71%;
  top: 5.25%;
  font-size: 6.58cqw;
}

.poster--mothers .poster__photo {
  left: 4.58%;
  top: 14.81%;
  width: 91.06%;
  height: 82.26%;
}

.poster--mothers .poster__name {
  right: 2.83%;
  top: 4.17%;
  font-size: 5.26cqw;
  text-align: right;
}

.poster--mothers .poster__name b {
  font-size: 8.22cqw;
}

.poster--mothers .poster__circle {
  left: 47.6%;
  top: 40.1%;
  width: 64.62%;
  height: 45.58%;
  object-fit: fill;
}

.poster--mothers .poster__bouquet {
  left: 71.9%;
  top: 51.9%;
  width: 75.4%;
  height: 59%;
  transform: translate(-50%, -50%) rotate(-25.8deg);
}

/* Right poster: 303 x 429 */
.poster--spring .poster__brand {
  left: 2.61%;
  top: 4.17%;
  font-size: 8.25cqw;
}

.poster--spring .poster__name {
  right: 2.61%;
  top: 4.17%;
  font-size: 6.6cqw;
  text-align: right;
}

.poster--spring .poster__name b {
  font-size: 8.25cqw;
}

.poster--spring .poster__left {
  left: 3.92%;
  top: 18.83%;
  width: 37.47%;
  height: 53.39%;
}

.poster--spring .poster__right {
  left: 49.78%;
  top: 18.83%;
  width: 44.66%;
  height: 65.89%;
  object-fit: fill;
}

.poster--spring .poster__oval {
  left: 11.76%;
  top: 58.49%;
  width: 46.41%;
  height: 26.23%;
  object-fit: fill;
}

.poster--spring .poster__handle {
  left: 0;
  right: 0;
  top: 90.4%;
  font-size: 11.6cqw;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Our flowers ---------- */

.flowers {
  padding-top: 238px;
}

.flowers__stage {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 114px auto 0;
  padding: 0 55px 0 34px;
}

.flowers__arrow {
  flex: none;
  width: 50px;
  height: 50px;
  margin-top: 235px;
  transition: opacity 0.2s;
}

.flowers__arrow:hover {
  opacity: 0.7;
}

/* The design's arrow points up; turn it left, and mirror it for right */
.flowers__arrow--prev img {
  transform: rotate(-90deg);
}

.flowers__arrow--next {
  margin-left: 35px;
}

.flowers__arrow--next img {
  transform: rotate(90deg);
}

.flowers__image {
  flex: 0 1 422px;
  min-width: 0;
  aspect-ratio: 422 / 519;
  margin-left: 43px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.flowers__copy {
  flex: 0 1 500px;
  min-width: 0;
  margin-left: 91px;
  padding-top: 33px;
  transition: opacity 0.3s ease;
}

.flowers.is-changing .flowers__image,
.flowers.is-changing .flowers__copy {
  opacity: 0;
}

.flowers__name {
  color: var(--violet-deep);
  font-size: 31px;
}

.flowers__text {
  margin-top: 36px;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.5;
}

/* ---------- Come visit us ---------- */

.visit {
  padding-top: 129px;
  text-align: center;
}

.visit__title {
  color: var(--violet-deep);
  font-size: 49px;
}

.visit__media {
  display: grid;
  grid-template-columns: 396fr 466fr;
  max-width: 862px;
  margin: 17px auto 45px;
}

.visit__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit__map {
  aspect-ratio: 1;
}

.visit__line {
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
}

.visit__line + .visit__line {
  margin-top: 7px;
}

.visit__line a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */

.footer {
  display: grid;
  place-items: center;
  min-height: 94px;
  margin-top: 63px;
  padding: 0 24px;
  background: var(--violet);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
  text-align: center;
}

/* ---------- Concept badge ---------- */

.concept {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--violet-deep);
  color: var(--violet-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.concept:hover {
  background: var(--violet);
}

/* ---------- Narrower desktops and tablets ---------- */

@media (max-width: 1180px) {
  .section-title {
    font-size: clamp(40px, 5.2vw, 61px);
  }

  .posters {
    width: calc(100% - 48px);
  }

  .flowers {
    padding-top: 150px;
  }

  .flowers__stage {
    margin-top: 72px;
    padding: 0 24px;
  }

  .flowers__image {
    margin-left: 24px;
  }

  .flowers__copy {
    margin-left: 40px;
    padding-top: 12px;
  }

  .flowers__arrow--next {
    margin-left: 24px;
  }

  .flowers__text {
    margin-top: 20px;
    line-height: 2.1;
  }

  .visit {
    padding-inline: 24px;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .lang {
    top: 12px;
    right: 12px;
    background: var(--cream);
  }

  /* Hero: photo first, the words underneath */
  .hero {
    height: auto;
    padding-bottom: 40px;
  }

  .hero__photo {
    position: static;
    width: 100%;
    height: auto;
  }

  .hero__inner {
    width: auto;
    height: auto;
    padding: 28px 24px 0;
  }

  .hero__title {
    display: grid;
    gap: 14px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero__q,
  .hero__a {
    position: static;
    white-space: normal;
  }

  .hero__a {
    justify-self: end;
  }

  .hero__tag {
    position: static;
    width: auto;
    margin-top: 28px;
    font-size: clamp(25px, 7.4vw, 32px);
    line-height: 1.1;
  }

  /* Bouquets: a smaller wheel on top, the description below */
  .bouquets {
    --cx: -30px;
    --cy: 200px;
    --r: 170px;
    --bw: 132px;
    --bh: 176px;

    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .wheel-area {
    height: 400px;
  }

  .bouquet {
    padding: 8px 24px 0;
    line-height: 1.8;
  }

  .bouquet__quote {
    max-width: none;
  }

  .workshops {
    padding-top: 72px;
  }

  /* One poster fills most of the width; the other two peek in at the edges */
  .posters {
    --side: 0.7;
    --offset: 58%;

    width: 100%;
    aspect-ratio: 375 / 370;
    margin-top: 32px;
    overflow: hidden;
  }

  .poster {
    width: 66%;
  }

  .poster.is-left {
    transform: translateX(calc(-50% - var(--offset) / 0.66)) scale(var(--side));
  }

  .poster.is-right {
    transform: translateX(calc(-50% + var(--offset) / 0.66)) scale(var(--side));
  }

  .posters__nav {
    margin-top: 20px;
  }

  .flowers {
    padding-top: 96px;
  }

  .flowers__stage {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 0 8px;
    margin-top: 32px;
    padding: 0 16px;
  }

  .flowers__arrow {
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .flowers__arrow--prev {
    grid-column: 1;
  }

  .flowers__arrow--next {
    grid-column: 3;
  }

  .flowers__image {
    grid-row: 1;
    grid-column: 2;
    width: 100%;
    margin: 0;
  }

  .flowers__copy {
    grid-column: 1 / -1;
    margin: 0;
    padding: 20px 8px 0;
  }

  .flowers__name {
    font-size: 27px;
  }

  .flowers__text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.9;
  }

  .visit {
    padding: 96px 16px 0;
  }

  .visit__title {
    font-size: 38px;
  }

  .visit__media {
    grid-template-columns: minmax(0, 1fr);
    margin: 24px auto 32px;
  }

  .visit__shop {
    aspect-ratio: 4 / 3;
  }

  .visit__line {
    font-size: 17px;
  }

  .footer {
    margin-top: 48px;
    padding-bottom: 88px;
    padding-top: 20px;
    font-size: 16px;
  }

  /* Smaller menu button so it covers less of a small screen */
  .menu {
    right: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
  }

  .menu__toggle {
    width: 76px;
    height: 76px;
  }

  .menu__panel {
    clip-path: circle(38px at calc(100% - 38px) calc(100% - 38px));
  }

  .menu.is-open .menu__panel {
    clip-path: circle(150% at calc(100% - 38px) calc(100% - 38px));
  }

  .menu__icon {
    width: 50px;
    height: 50px;
  }

  .menu__brand {
    font-size: 26px;
    top: 338px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wheel,
  .wheel__slot,
  .poster,
  .bouquet,
  .menu__panel,
  .flowers__image,
  .flowers__copy {
    transition: none;
  }
}
