/* The cover's "Island of the month" card, three styles behind ?rolo= (js/rolo-options.js). Without the switch nothing
   here applies. Desktop only: css/hero-options.css hides the card on phones. */
html[data-rolo] {
  --ro-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the block: shrinks on short screens about its left middle, so placeRolo's centring still holds */
html[data-rolo] .hc-rolo { scale: var(--rs, 1); transform-origin: 0 50%; }
html[data-rolo] .hc-rolo__tab { position: relative; padding-bottom: 12px; }
html[data-rolo] .ro-timer { position: absolute; left: 2px; right: 2px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
html[data-rolo] .ro-timer i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9), #fff); box-shadow: 0 0 8px rgba(255, 255, 255, .6); transform-origin: 0 50%; transform: scaleX(0); }

/* today's cream index card, switched off */
html[data-rolo] .hc-rolo__card { display: block; padding: 0; gap: 0; border-radius: 0; background: none; box-shadow: none; --shade: 0; }
html[data-rolo] .hc-rolo__card::before, html[data-rolo] .hc-rolo__card::after { display: none; }
/* the light on a card as it turns: a darkening veil, driven by --shade */
html[data-rolo] .ro-light { position: absolute; inset: 0; z-index: 9; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(4, 30, 40, .55), rgba(4, 30, 40, .85)); opacity: var(--shade, 0); }
/* the soft shadow the card throws on the water */
html[data-rolo] .ro-shadow { position: absolute; z-index: 0; left: 6%; right: 6%; bottom: -16px; height: 34px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 46, 66, .42), rgba(6, 46, 66, 0)); filter: blur(6px); transform-origin: 50% 0; }

/* ---------- 01 Postcard ---------- */
html[data-rolo="postcard"] .hc-rolo { width: 318px; }
html[data-rolo="postcard"] .hc-rolo__win { height: 192px; perspective: 1100px; }
html[data-rolo="postcard"] .hc-rolo__card { inset: 0 auto auto 0; width: 300px; height: 192px; rotate: -1.6deg; }
.rp {
  position: absolute; inset: 0; border-radius: 4px; padding: 8px;
  background: var(--ro-grain), linear-gradient(160deg, #fffefa, #fbf5e8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(120, 95, 55, .12) inset, 0 2px 3px rgba(8, 40, 60, .16), 0 16px 34px rgba(6, 40, 66, .26);
}
.rp__photo {
  position: absolute; inset: 8px; border-radius: 2px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -70px 60px -30px rgba(4, 34, 46, .62);
}
/* a faint gloss across the print */
.rp__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 44%, rgba(255, 255, 255, 0) 56%); }
.rp__kind { position: absolute; left: 22px; bottom: 50px; font: 400 14px/1 var(--hand); color: #FFE3C4; text-shadow: 0 1px 8px rgba(4, 30, 45, .6); }
.rp__name { position: absolute; left: 20px; bottom: 24px; font: italic 800 31px/1 var(--display); letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 14px rgba(4, 30, 45, .45); }
.rp__meta { position: absolute; left: 22px; bottom: 15px; font: 500 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.rp__stamp { position: absolute; right: 2px; top: -8px; width: 70px; height: 82px; rotate: 5deg; z-index: 2; }
.rp__stamp .pstamp { inset: 0; --r: 3px; filter: drop-shadow(0 3px 5px rgba(8, 40, 60, .3)); }
.rp__stamp .pstamp__in { background: var(--c); color: #fff; outline-color: rgba(255, 255, 255, .75); padding: 6px 4px; }
.rp__stamp .pstamp__price { font-size: 17px; font-style: normal; font-weight: 800; letter-spacing: -.02em; }
.rp__stamp .pstamp__top, .rp__stamp .pstamp__bot { font-size: 6.5px; letter-spacing: .12em; }
.rp__pm { position: absolute; right: 40px; top: 26px; width: 124px; z-index: 3; rotate: -9deg; }
.rp__pm .pm { color: #0F3B40; opacity: .62; mix-blend-mode: multiply; }

/* ---------- 02 Rotary file ---------- */
html[data-rolo="spindle"] .hc-rolo { width: 384px; }
html[data-rolo="spindle"] .hc-rolo__win { height: 196px; perspective: 900px; }
html[data-rolo="spindle"] .hc-rolo__card { inset: auto 0 14px 0; height: 132px; }
.rs { position: absolute; inset: 0; }
html[data-rolo="spindle"] .hc-rolo__card { filter: drop-shadow(0 3px 4px rgba(8, 40, 60, .14)) drop-shadow(0 16px 24px rgba(6, 40, 66, .2)); }
.rs__paper {
  position: absolute; inset: 0; border-radius: 10px 10px 6px 6px;
  background: var(--ro-grain), repeating-linear-gradient(180deg, transparent 0 23px, rgba(52, 120, 160, .1) 23px 24px) 0 42px / 100% calc(100% - 42px) no-repeat, linear-gradient(180deg, #fffdf6, #f7efdf);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 -1px 0 rgba(120, 95, 55, .14) inset;
  /* the two slots that grip the spindle */
  -webkit-mask: radial-gradient(9px 7px at 26% 100%, transparent 98%, #000), radial-gradient(9px 7px at 74% 100%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask: radial-gradient(9px 7px at 26% 100%, transparent 98%, #000), radial-gradient(9px 7px at 74% 100%, transparent 98%, #000);
  mask-composite: intersect;
}
/* the red rule under the head, like an index card */
.rs__paper::before { content: ""; position: absolute; left: 0; right: 0; top: 41px; height: 1px; background: rgba(236, 92, 88, .35); }
/* the coloured index tab that sticks up above the card, a different place on every card so all four show in the stack */
.rs__tabk { position: absolute; left: var(--x); top: -17px; height: 19px; padding: 0 10px; border-radius: 6px 6px 0 0; background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); display: flex; align-items: center; filter: brightness(calc(1 - var(--shade, 0) * .7)); }
.rs__tabk i { font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.rs__body { position: absolute; inset: 0; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; }
.rs__photo { width: 96px; height: 96px; padding: 4px; background: #fff; border-radius: 4px; rotate: -2.5deg; box-shadow: 0 2px 6px rgba(8, 40, 60, .22); }
.rs__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.rs__txt { display: grid; gap: 6px; min-width: 0; }
.rs__kind { font: 700 12px/1 var(--body); letter-spacing: .02em; color: color-mix(in srgb, var(--c) 72%, #0F3B40); }
.rs__name { font: 800 33px/1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.rs__meta { font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(15, 59, 64, .68); }
.rs__no { position: absolute; right: 14px; top: 12px; font: 500 9px/1 var(--mono); letter-spacing: .16em; color: rgba(15, 59, 64, .42); }
.rs .ro-light { border-radius: 10px 10px 6px 6px; }
/* the steel spindle the cards sit on, with a knob at each end */
.rs-rail { position: absolute; z-index: 20; left: -16px; right: -16px; bottom: 9px; height: 8px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #fbfdfd 0%, #c9d3d6 35%, #7f8f94 70%, #b7c3c6 100%); box-shadow: 0 3px 6px rgba(6, 40, 60, .3); }
.rs-rail::before, .rs-rail::after { content: ""; position: absolute; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #d4dde0 30%, #7a8b90 75%, #5d6d72 100%); box-shadow: 0 3px 6px rgba(6, 40, 60, .35); }
.rs-rail::before { left: -6px; } .rs-rail::after { right: -6px; }
html[data-rolo="spindle"] .ro-shadow { bottom: -6px; z-index: 0; }

/* ---------- 03 Luggage tag ---------- */
html[data-rolo="tag"] .hc-rolo { width: 392px; }
html[data-rolo="tag"] .hc-rolo__tab > span:first-child::before { background: #d9b26a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), inset 0 0 0 2px rgba(120, 80, 20, .35); }
html[data-rolo="tag"] .hc-rolo__win { height: 160px; perspective: 1000px; }
html[data-rolo="tag"] .hc-rolo__card { inset: 8px 0 auto 0; height: 146px; }
.rt {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 118px; align-items: stretch;
  border-radius: 6px 12px 12px 6px; padding: 0 9px 0 52px;
  background: var(--ro-grain), linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, #fdf8ec) 0 44px, #fdf8ec 44px);
  /* the cut corners at the string end, and the hole the string goes through */
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  -webkit-mask: radial-gradient(circle 7px at 27px 50%, transparent 97%, #000); mask: radial-gradient(circle 7px at 27px 50%, transparent 97%, #000);
  animation: rt-sway 3.4s ease-in-out infinite alternate; transform-origin: 27px 50%;
}
html[data-rolo="tag"] .hc-rolo__card { filter: drop-shadow(0 3px 4px rgba(8, 40, 60, .18)) drop-shadow(0 14px 22px rgba(6, 40, 66, .24)); }
@keyframes rt-sway { from { rotate: -1.1deg; } to { rotate: 1.3deg; } }
/* the colour stripe along the top, like an airline tag */
.rt::before { content: ""; position: absolute; left: 44px; right: 0; top: 0; height: 7px; background: var(--c); }
/* a perforation between the tag and the photo stub */
.rt::after { content: ""; position: absolute; top: 14px; bottom: 14px; right: 126px; border-left: 2px dotted rgba(15, 59, 64, .22); }
.rt__hole { position: absolute; left: 13px; top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, transparent 6.5px, #e2c27c 7px, #f7e2a8 9px, #c9a258 12px, rgba(160, 120, 50, .5) 13.5px, transparent 14px); }
.rt__main { display: grid; align-content: center; gap: 4px; padding: 12px 0 8px; min-width: 0; }
.rt__to { font: 500 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(15, 59, 64, .5); }
.rt__code { font: 800 44px/.9 var(--display); letter-spacing: -.03em; color: var(--ink); }
.rt__name { font: 700 13px/1.1 var(--body); color: var(--ink); white-space: nowrap; }
.rt__name em { font: 400 12px/1 var(--hand); color: color-mix(in srgb, var(--c) 70%, #0F3B40); margin-left: 4px; }
.rt__row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
/* a thermometer: the bulb in the island's colour, the column up to its heat on a 20 to 35 degree scale */
.rt__gauge { position: relative; width: 96px; height: 6px; border-radius: 3px; background: rgba(15, 59, 64, .12); margin-left: 6px; }
.rt__gauge::before { content: ""; position: absolute; left: -7px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .15); }
.rt__gauge i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k) * 100%); border-radius: 3px; background: var(--c); }
.rt__deg { font: 800 14px/1 var(--display); color: var(--ink); }
.rt__meta { font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(15, 59, 64, .62); white-space: nowrap; }
.rt__photo { margin: 9px 0; border-radius: 4px 8px 8px 4px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.rt .ro-light { border-radius: inherit; }
/* the string, from the little brass grommet on the tab line down through the tag's hole */
.rt-string { position: absolute; z-index: 5; left: 0; top: -24px; width: 60px; height: 120px; overflow: visible; pointer-events: none; }
.rt-string path { fill: none; stroke: #f4ead6; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 1px 1.5px rgba(6, 40, 60, .45)); }
html[data-rolo="tag"] .ro-shadow { bottom: -18px; left: 14%; right: 4%; }

@media (prefers-reduced-motion: reduce) { .rt { animation: none; } }
