:root {
  --navy: #07182f;
  --ink: #132a42;
  --gold: #98713a;
  --rule: #ad8b529a;
  --cream: #fff8eb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --menu-width: 264px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: Inter, Arial, sans-serif; }
[hidden] { display: none !important; }
:where(button, a):focus-visible { outline: 2px solid #306294; outline-offset: 2px; }
.phototur-menu-frame { position: fixed; z-index: 2; inset: 0 auto 0 0; width: var(--menu-width); height: 100%; border: 0; background: var(--navy); }
.home-desktop { margin-left: var(--menu-width); }
.home-paper {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  container-type: size;
}
.home-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-image: url("img/home/papel-rasgado-otimizado.jpg") 164 0 84 0 fill / min(10.25cqw, 16cqh) 0 min(5.25cqw, 9cqh) 0 / 0 stretch;
  pointer-events: none;
}
.home-topline, .home-content { position: relative; width: 84%; max-width: 1480px; margin-inline: auto; }
.home-topline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding-top: min(6.7cqw, 11cqh); }
.home-topline > a { justify-self: start; }
.home-motto { margin: 0; text-align: center; font-size: clamp(8px, .94cqw, 13px); letter-spacing: .18em; }
.home-content {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(9px, 2cqh, 21px) clamp(12px, 2cqw, 28px);
  min-height: 0;
  padding-top: clamp(7px, 1.25cqh, 15px);
  padding-bottom: clamp(25px, 5.6cqh, 66px);
}
.home-section { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 5px;
  min-height: clamp(28px, 4.6cqh, 47px);
  margin-bottom: clamp(4px, .85cqh, 10px);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
}
.section-title { margin: 0; color: var(--navy); font: italic 700 clamp(17px, min(2.65cqw, 4.4cqh), 43px)/1 var(--serif); }
.home-featured .section-title { font-size: clamp(20px, min(3.1cqw, 4.8cqh), 48px); }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.drops-link span { color: var(--gold); font: 600 .46em/1 Inter, sans-serif; vertical-align: .25em; }
.text-link { color: var(--ink); font: 600 clamp(10px, .96cqw, 14px)/1.2 Inter, sans-serif; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: .18em; }
.section-status { margin: 4px 0; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.carousel-controls { display: flex; flex: none; gap: clamp(3px, .43cqw, 7px); }
.carousel-controls button, .shuffle-button { border: 1px solid var(--rule); color: var(--navy); cursor: pointer; background: linear-gradient(#fffaf0, #efe0c5); }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: clamp(24px, 4.1cqh, 39px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0 0 .08em;
  font: 500 clamp(19px, 3.6cqh, 31px)/1 Inter, sans-serif;
}
.carousel-controls button:hover, .shuffle-button:hover { background: #e8d2a8; }
.home-recent .carousel-controls button, .home-featured .carousel-controls button {
  border-color: #a38252;
  background: linear-gradient(140deg, #254564, #0c223b);
  color: #fff4df;
}
.home-recent .carousel-controls button:hover, .home-featured .carousel-controls button:hover { background: #315979; }
.shuffle-button {
  min-height: clamp(23px, 3.7cqh, 34px);
  border-radius: 99px;
  padding: 2px .75em;
  white-space: nowrap;
  font: 600 clamp(9px, 1cqw, 13px)/1 Inter, sans-serif;
}
.shuffle-button span { margin-left: .15em; color: #785224; }

.carousel-window { position: relative; flex: 1; min-width: 0; min-height: 0; container-type: size; overflow: clip; isolation: isolate; }
.carousel-panel { position: absolute; inset: 0; }
.carousel-panel[inert] { pointer-events: none; }
.featured-gallery { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.featured-window::before {
  content: "";
  position: absolute;
  inset: 2px 3% 2px;
  border-block: 1px solid #ac86503c;
  background: radial-gradient(ellipse at center, #fff7e7a6, transparent 74%);
  pointer-events: none;
}
.featured-panel { display: grid; place-items: center; }
.featured-card {
  --caption: clamp(26px, 10cqh, 36px);
  --photo: max(1px, min(calc(100cqh - var(--caption) - 14px), calc((100cqw - 26px) / var(--cover-ratio, 1.5))));
  position: relative;
  display: grid;
  grid-template-rows: var(--photo) var(--caption);
  width: calc(var(--cover-ratio, 1.5) * var(--photo) + 12px);
  padding: 5px 5px 0;
  border: 1px solid #fffaf1;
  background: var(--cream);
  box-shadow: 0 3px 8px #39271653;
  color: var(--navy);
  text-decoration: none;
}
.featured-card::before, .featured-card::after { content: ""; position: absolute; width: 10%; height: 15%; pointer-events: none; }
.featured-card::before { top: -3px; left: -3px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.featured-card::after { right: -3px; bottom: -3px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.featured-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding-inline: 4px;
  font: italic 700 clamp(16px, min(5.2cqw, 8.8cqh), 30px)/1 var(--serif);
}
.featured-caption strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-caption span { color: #7e5927; font: 600 .62em/1 Inter, sans-serif; }
.featured-card:hover strong { text-decoration: underline; text-underline-offset: .13em; }
.featured-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  flex: none;
  gap: 5px;
  min-height: clamp(30px, 5.6cqh, 54px);
}
.featured-footer .carousel-controls { justify-self: end; }
.featured-dots { display: flex; gap: 4px; max-width: 32cqw; padding: 3px; overflow: auto; }
.featured-dots button {
  display: grid;
  flex: none;
  width: clamp(23px, 3.65cqw, 52px);
  height: clamp(19px, 3.9cqh, 39px);
  padding: 2px;
  border: 1px solid #aa895b9e;
  border-radius: 2px;
  background: var(--cream);
  cursor: pointer;
}
.featured-dots img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.featured-dots button:hover, .featured-dots button[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.photo-frame { display: block; min-width: 0; min-height: 0; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album-card { min-width: 0; min-height: 0; color: var(--navy); text-decoration: none; }
.album-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font: italic 700 clamp(13px, 2.3cqh, 22px)/1 var(--serif);
}
.album-card:hover .album-name { text-decoration: underline; text-underline-offset: .14em; }


.home-topline, .home-content { width: 86%; }
.home-content {
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr)) minmax(0, .99fr);
  gap: clamp(7px, 1.55cqh, 16px) clamp(12px, 1.7cqw, 24px);
}
.home-featured { grid-area: 1 / 1 / 3 / 2; }
.home-recent { grid-area: 1 / 2; }
.home-inspiration { grid-area: 2 / 2; }
.home-explore { grid-area: 3 / 1; }
.home-drops { grid-area: 3 / 2; }
.section-head { margin-bottom: 4px; }
.section-title { font-size: clamp(17px, min(2.65cqw, 4.05cqh), 42px); }

.featured-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(66px, 8.1cqw, 122px);
  min-height: 0;
  border: 1px solid #ac8a577c;
  border-radius: 3px;
  padding: 5px;
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, #8c673117 17px 18px),
    repeating-linear-gradient(90deg, transparent 0 17px, #8c673112 17px 18px),
    linear-gradient(135deg, #f4e4c6, #e8cfa6 70%, #ead6b3);
  box-shadow: 0 3px 7px #3b2b2130, inset 0 0 0 3px #fff6e285;
}
.featured-window { align-self: stretch; }
.featured-window::before {
  inset: 4% 4% 5%;
  background: #fff8eb70;
  border: 1px solid #b796624a;
  transform: rotate(-2deg);
  box-shadow: 0 2px 4px #4d321927;
}
.featured-card {
  --caption: clamp(27px, 10cqh, 40px);
  --photo: max(1px, min(calc(100cqh - var(--caption) - 16px), calc((100cqw - 26px) / var(--cover-ratio, 1.5))));
  box-shadow: 0 5px 11px #39271655;
}
.featured-caption {
  margin-inline: -5px;
  padding-inline: 9px;
  border-top: 1px solid #9b783f3d;
  background: linear-gradient(100deg, #f0dfc2, #fff7e8);
}
.featured-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(5px, 1.12cqh, 12px);
  min-width: 0;
  min-height: 0;
  padding: 5px clamp(3px, .6cqw, 8px);
  border-left: 1px solid #aa865d82;
  background: linear-gradient(90deg, #a3783c18, #fff6e670);
}
.featured-footer > a {
  order: 3;
  font-size: clamp(9px, .87cqw, 13px);
  text-align: center;
  white-space: normal;
}
.featured-footer .carousel-controls {
  order: 2;
  justify-content: center;
}
.featured-footer .carousel-controls button { width: clamp(22px, min(2.5cqw, 4.1cqh), 35px); }
.featured-dots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(4px, .85cqh, 9px);
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 3px;
  overflow: auto;
}
.featured-dots button {
  width: 100%;
  height: clamp(19px, 5.55cqh, 57px);
  border-color: #aa8854b0;
  background: #fff8e9;
}
.featured-dots button[aria-current="true"] { outline: 1px solid #95703a; outline-offset: 1px; }
.featured-dots img { background: #ede0c8; }

.home-recent .carousel-window, .home-inspiration .carousel-window, .home-explore .carousel-window, .home-drops .carousel-window {
  border: 1px solid #b38d538a;
  border-radius: 3px;
  background: linear-gradient(135deg, #fff6e6b8, #f0dcba75);
  box-shadow: inset 0 0 0 3px #fff8ec85, 0 2px 3px #39281619;
}
.home-inspiration .carousel-window { background: linear-gradient(135deg, #f8ecd8d9, #e8d0a78a); }
.home-explore .carousel-window {
  background:
    repeating-linear-gradient(90deg, #98744250 0 5px, transparent 5px 12px) center 3px / 98% 2px no-repeat,
    repeating-linear-gradient(90deg, #98744250 0 5px, transparent 5px 12px) center calc(100% - 3px) / 98% 2px no-repeat,
    linear-gradient(125deg, #ecd7b2, #fff6e5 72%, #ebd5af);
}
.home-drops .carousel-window { background: linear-gradient(145deg, #f5e6ce, #fff7e7b5); }
.photo-strip {
  --pad: clamp(5px, 1.05cqw, 11px);
  --gap: clamp(6px, 2.65cqw, 13px);
  --caption: clamp(21px, 16.3cqh, 30px);
  --trim: 6px;
  --width-fit: calc((100cqw - 2 * var(--pad) - var(--card-count) * var(--trim) - (var(--card-count) - 1) * var(--gap)) / var(--total-ratio));
  --photo: max(1px, min(calc(100cqh - var(--caption) - 2 * var(--pad) - 4px), var(--width-fit)));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: var(--pad);
}
.home-recent .photo-strip, .home-inspiration .photo-strip {
  --photo: max(1px, min(calc(100cqh - var(--caption) - 2 * var(--pad) - 4px), var(--width-fit), calc((100cqw - 2 * var(--pad) - 2 * var(--trim) - var(--gap)) / 3.52)));
}
.photo-strip .album-card {
  display: grid;
  flex: 0 0 calc(var(--cover-ratio, 1.5) * var(--photo) + var(--trim));
  grid-template-rows: var(--photo) var(--caption);
  padding: 2px 2px 0;
  border: 1px solid #fffcf2;
  background: linear-gradient(#fff9ee 72%, #f6e7ce);
  box-shadow: 0 2px 5px #4b351f40;
}
.photo-strip .album-card:hover { border-color: var(--gold); }
.photo-strip .album-name {
  align-self: center;
  margin-inline: 2px;
  max-height: var(--caption);
  text-align: center;
  font-size: clamp(13px, min(4.55cqw, 12cqh), 20px);
}
.photo-strip .long-name { font-size: clamp(12px, min(4.3cqw, 10.8cqh), 18px); }
.home-explore .shuffle-button {
  background: linear-gradient(140deg, #254564, #0c223b);
  border-color: #a38252;
  color: #fff4df;
}
.home-explore .shuffle-button:hover { background: #315979; }
.home-explore .shuffle-button span { color: #edc784; }
@container (max-width: 930px) {
  .home-topline, .home-content { width: 88%; }
  .home-content { gap: 8px 10px; }
  .section-title { font-size: clamp(15px, 2.6cqw, 25px); }
  .home-featured .section-title { font-size: clamp(17px, 3.25cqw, 34px); }
  .carousel-controls button { width: clamp(20px, 3.3cqw, 30px); }
}
@container (max-width: 720px) {
  .featured-gallery { padding: 3px; }
  .home-explore .shuffle-button { font-size: 9px; }
  .featured-footer { padding-inline: 2px; }
}
