/* Sanborn Mills Farm, Workshops 2027: the catalogs' release (add_reveal.py, November 14, 2026).
   A linen well holding the catalogs' own covers, set like printed pieces on a table. A catalog that hasn't
   opened is its cover in grey, with a small white label (the museum-plate language of the catalog) giving its
   day. When it opens the cover comes up in colour, slowly, the way a print develops. Nothing else moves.
   Heritage red stays a lintel or a link. */

.rv { background: var(--linen); color: var(--iron); margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem); }
.rv .section-head { margin-bottom: 1.4rem; }
.rv-intro { max-width: 44rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.rv-intro .lede { margin-bottom: 0.6rem; }
.rv-what { margin: 0.9rem 0 0; color: var(--iron); max-width: 40rem; }
.rv-msg { margin: 1.4rem 0 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 5px solid var(--heritage); color: var(--black); }
.rv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rv [hidden] { display: none !important; }

.rv-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.8rem 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem 1.8rem; } }
@media (min-width: 1180px) { .rv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3rem clamp(1.4rem, 2.2vw, 2.4rem); } }
.rv-tile { display: flex; flex-direction: column; min-width: 0; }

/* the cover: a printed piece, 8.5 x 11 */
.rv-cover { position: relative; display: block; aspect-ratio: 17 / 22; background: #d6cab9; text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 18, 16, .18), 0 10px 24px -10px rgba(20, 18, 16, .35);
  transition: box-shadow 1.6s ease, transform 500ms cubic-bezier(.2, .7, .2, 1); }
.rv-cover > img, .rv-cover > .ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover;
  transition: filter 1.8s ease, opacity 1.8s ease; }
[data-state="locked"] > .rv-cover, [data-state="new"] > .rv-cover { box-shadow: 0 1px 2px rgba(20, 18, 16, .10); pointer-events: none; }
[data-state="locked"] > .rv-cover > img, [data-state="locked"] > .rv-cover > .ph,
[data-state="new"] > .rv-cover > img, [data-state="new"] > .rv-cover > .ph { filter: grayscale(1) contrast(.82) brightness(1.1); opacity: .5; }
a.rv-cover:hover { transform: translateY(-3px); }

/* the label on a cover that hasn't opened: white plate, red lintel, the day */
.rv-plate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78%, 11.5rem); background: var(--white); color: var(--black);
  padding: 1.05rem 0.8rem 0.95rem; text-align: center; display: grid; gap: 0.12rem; line-height: 1.15;
  box-shadow: 0 1px 2px rgba(20, 18, 16, .12); transition: opacity 700ms ease; }
.rv-plate::before { content: ""; justify-self: center; width: 2.2rem; height: 4px; background: var(--heritage); margin-bottom: 0.6rem; }
.rv-plate-k { font-style: italic; font-size: 0.82rem; color: #6a645c; }
.rv-plate-d { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 300; letter-spacing: -0.01em; }
.rv-plate-m { font-size: 0.9rem; color: var(--iron); }
[data-state="open"] > .rv-cover > .rv-plate, .is-developing > .rv-cover > .rv-plate { opacity: 0; visibility: hidden; transition: opacity 700ms ease, visibility 0s 700ms; }
.is-developing > .rv-cover > img, .is-developing > .rv-cover > .ph { filter: none !important; opacity: 1 !important; }
.is-developing > .rv-cover { box-shadow: 0 1px 2px rgba(20, 18, 16, .18), 0 10px 24px -10px rgba(20, 18, 16, .35) !important; }
.is-soon > .rv-cover { outline: 3px solid var(--heritage); outline-offset: 6px; }

/* words under each cover */
.rv-name { font-size: 1.2rem; line-height: 1.18; font-weight: 400; margin: 1.1rem 0 0; color: var(--black); }
.rv-name a { text-decoration: none; }
[data-state="locked"] .rv-name a, [data-state="new"] .rv-name a { pointer-events: none; }
.rv-count { margin: 0.25rem 0 0; color: #5d5750; font-size: 0.9rem; font-style: italic; }
.rv-when { margin: 0.3rem 0 0; color: var(--iron); font-size: 0.95rem; line-height: 1.4; }
/* the label on the cover already gives the day: under it, only the next one counts down (the words stay for screen readers) */
.rv-tile[data-state="locked"]:not(.is-next) .rv-when, .rv-tile[data-state="new"] .rv-when { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.rv-tile.is-next .rv-when { color: var(--black); }
.rv-tile[data-state="open"] .rv-when { display: none; }
.rv-tile[data-state="open"].is-newest .rv-when { display: block; color: var(--heritage); font-style: italic; }
.rv-actions { display: none; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.1rem; margin: 0.85rem 0 0; font-family: var(--sans); font-size: 0.92rem; line-height: 1.3; }
[data-state="open"] .rv-actions { display: flex; }
.rv-read { display: inline-block; background: var(--black); color: var(--white); text-decoration: none; padding: 0.62rem 0.95rem; }
.rv-read:hover { background: var(--heritage); color: var(--white); }
.rv-pdf { display: inline-block; padding: 0.55rem 0; color: var(--black); }
.rv-size { color: #5d5750; }

/* the complete catalog: one larger cover, under a black rule */
.rv-complete { display: grid; gap: 1.8rem clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--black); grid-template-columns: minmax(0, 1fr); }
.rv-complete > .rv-cover { width: min(100%, 17rem); }
@media (min-width: 760px) { .rv-complete { grid-template-columns: minmax(0, 17rem) minmax(0, 34rem); } }
@media (min-width: 1180px) { .rv-complete { grid-template-columns: minmax(0, 21rem) minmax(0, 36rem); } .rv-complete > .rv-cover { width: 100%; } }
.rv-complete .rv-name { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 1rem; }
.rv-complete .rv-blurb { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.42; color: var(--black); font-weight: 300; margin: 0 0 0.8rem; }
.rv-complete .rv-when { font-size: 1.05rem; margin: 0; }
.rv-complete[data-state="open"] .rv-when { display: none; }
.rv-complete .rv-actions { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 0.4rem; font-size: 1rem; }

/* reminder */
.rv-remind { position: relative; max-width: 42rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.6rem; border-top: 1px solid var(--black); }
.rv-remind-h { color: var(--black); }
.rv-remind-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rv-remind input[type="email"] { flex: 1 1 16rem; min-width: 0; padding: 0.78rem 0.9rem; border: 1px solid var(--iron); border-radius: 0;
  background: var(--white); color: var(--black); font: 400 1rem/1.3 var(--sans); }
.rv-remind input[type="email"]:focus-visible { outline: 2px solid var(--heritage); outline-offset: 1px; }
.rv-remind .btn { border: 0; cursor: pointer; }
.rv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-news { display: block; margin-top: 0.75rem; font-size: 0.95rem; }
.rv-remind-out { margin: 0.9rem 0 0; color: var(--black); }
.rv-remind-out.is-error { color: var(--heritage); }

/* links to what hasn't opened yet, anywhere in the catalog */
a.rv-locked { color: #a59e95; }
nav.disciplines a.rv-locked::after { content: " opens " attr(data-rv-day); font-style: italic; }
.rv-next-when { display: block; margin-top: 0.4rem; font-size: 1rem; font-style: italic; color: var(--stone); letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .rv-cover, .rv-cover > img, .rv-cover > .ph, .rv-plate { transition: none !important; }
  a.rv-cover:hover { transform: none; }
}
