/* Toile Château (LOCAL DRAFT 2026-11-14) — the engraving layer over the gatefold engine. Scoped to html[data-gf="toile"] / .tc-on.
   --accent = the engraver's ink (Delft blue / sepia / sage / toile red), --tc-wash = the soft tint, --ink = text. site/toile/toile.js */
html[data-gf="toile"] { --tc-script: 'Pinyon Script', 'Snell Roundhand', cursive; --tc-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif; }
html[data-gf="toile"] body { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
/* ── the hero layer ── */
.tc-on .hero { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.tc { position: absolute; inset: 0; z-index: 6; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--ink);
  background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.tc.open, .tc.done { pointer-events: none; cursor: default; }
.tc-k { position: absolute; left: 6%; right: 6%; text-align: center; font: 600 12.5px/1.3 var(--tc-serif); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transition: opacity 1s ease .1s; }
.tc.ready .tc-k { opacity: .95; }
/* the closed cartouche + the monogram set in its oval; on the tap they fade away, a breath larger */
.tc-cart, .tc-mono { position: absolute; opacity: 0; transition: opacity 1.1s ease .15s; }
.tc-cart canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tc.ready .tc-cart, .tc.ready .tc-mono { opacity: 1; }
.tc-mono { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent); pointer-events: none; }
.tc-m { font: 400 var(--mono, 54px)/1.15 var(--tc-script); white-space: nowrap; padding: 0 .1em; }
.tc-m .amp, .tc-names.one .amp, .tc-rm .amp { font: italic 400 .6em/1 var(--tc-serif); margin: 0 .22em; opacity: .9; }
.tc-names .l.amp .t { font: italic 400 1em/1.05 var(--tc-serif); }
.tc-md { font: 600 11.5px/1 var(--tc-serif); letter-spacing: .3em; padding-left: .3em; color: var(--accent); opacity: .9; }
.tc.open .tc-cart, .tc.open .tc-mono { opacity: 0; transform: scale(1.035); transition: opacity .55s cubic-bezier(.4, 0, .6, 1), transform .9s cubic-bezier(.3, .6, .3, 1); }
.tc.instant .tc-cart, .tc.instant .tc-mono { transition: none; }
/* the landscape: the wash under the ink (fades in after the engraving), the finished lines, the lines being cut */
.tc-scene { position: absolute; pointer-events: none; }
.tc-scene canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tc-scene .tc-wash { opacity: 0; transition: opacity 1.4s ease; }
.tc.washed .tc-wash { opacity: 1; }
.tc.instant .tc-wash { transition: none; }
/* the names: script, written in by a soft wipe, line by line */
.tc-names { position: absolute; left: 0; right: 0; text-align: center; font: 400 56px/1.12 var(--tc-script); color: var(--accent); pointer-events: none; }
.tc-names .l { display: block; white-space: nowrap; }
.tc-names .l.amp { font-size: .6em; line-height: 1.05; }
.tc-names .t { display: inline-block; padding: 0 .18em; -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; opacity: 0; }
.tc-names .l.w .t { animation: tcWrite .95s cubic-bezier(.45, .1, .35, 1) both; }
@keyframes tcWrite { 0% { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 100% { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }
.tc.instant .tc-names .t { animation: none; opacity: 1; -webkit-mask: none; mask: none; }
.tc-meas { position: absolute; left: -9999px; top: 0; visibility: hidden; white-space: nowrap; font: 400 100px/1 var(--tc-script); padding: 0 .18em; }
.tc-date { position: absolute; left: 6%; right: 6%; text-align: center; font: 500 21px/1.25 var(--tc-serif); letter-spacing: .04em; color: var(--accent); opacity: 0;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; }
.tc.dated .tc-date { animation: tcWrite .75s cubic-bezier(.45, .1, .35, 1) both; }
.tc-where { position: absolute; left: 7%; right: 7%; text-align: center; font: 600 12px/1.6 var(--tc-serif); letter-spacing: .28em; padding-left: .28em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); text-wrap: balance; }
.tc-where .sep { font-style: normal; }
.tc-where.two .sep { display: block; height: 0; overflow: hidden; }
.tc.placed .tc-where { opacity: .9; transform: none; }
.tc.instant .tc-date { animation: none; opacity: 1; -webkit-mask: none; mask: none; }
.tc.instant .tc-where { transition: none; }
/* the tap hint: spaced small caps between two hairlines that breathe */
.tc-hint { position: absolute; left: 50%; bottom: calc(8% + env(safe-area-inset-bottom) * .5); transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 10px 6px; color: var(--accent); cursor: pointer; opacity: 0; transition: opacity .9s ease .8s; white-space: nowrap; }
.tc-hint span { font: 600 12.5px/1 var(--tc-serif); letter-spacing: .36em; padding-left: .36em; text-transform: uppercase; }
.tc-hl { display: block; width: 28px; height: 1px; background: currentColor; opacity: .6; transform-origin: 100% 50%; animation: tcHl 3s ease-in-out 1.6s infinite; }
.tc-hl:last-child { transform-origin: 0 50%; }
@keyframes tcHl { 0%, 100% { transform: scaleX(.45); opacity: .35; } 50% { transform: scaleX(1); opacity: .75; } }
.tc.ready .tc-hint { opacity: 1; }
.tc.open .tc-hint { opacity: 0; transition: opacity .25s; }
.tc-on .hero .cue { z-index: 8; color: var(--accent); }
.tc-on .hero .hn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .tc-hl { animation: none; } }

/* ── pages: one sheet of cream etching paper; Cormorant small caps + italic, Pinyon Script headings; vignettes engrave in ── */
.tc-on #content { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
.tc-on #content .sec, .tc-on #content .sec.foot { background: transparent; color: var(--ink); }
.tc-on .sec .kicker { font: 600 12.5px/1.4 var(--tc-serif); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--accent); }
/* line-height 1.15 → 1.22 (small fixes 2026-11-20): at 320 px "Gifts & / Registry" wrapped with only 0.075 em of ink between the
   lines; 1.22 keeps ≥ 0.12 em (measured EN + ES, Chromium + WebKit) */
.tc-on .sec h2.script { font: 400 clamp(40px, 12vw, 58px)/1.22 var(--tc-script); color: var(--accent); letter-spacing: 0; text-transform: none; margin-top: 6px; text-wrap: balance; }
.tc-on h2.script::after { display: none; }
.tc-on .sec h2.script[data-reveal], .tc-on .names-big[data-reveal] { transform: none; opacity: 1; transition: none;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; }
.tc-on .sec h2.script[data-reveal].in, .tc-on .names-big[data-reveal].in { animation: tcWrite 1s cubic-bezier(.45, .1, .35, 1) .1s both; }
.tc-on .names-big { font: 400 clamp(42px, 12.5vw, 66px)/1.15 var(--tc-script); color: var(--accent); }
.tc-on .names-big .amp { font: italic 400 .52em/1 var(--tc-serif); margin: 0 .2em; display: inline-block; }
.tc-on .sec p { font: 400 19px/1.6 var(--tc-serif); color: var(--ink); }
.tc-on .dateline span { border-top-width: .5px; border-bottom-width: .5px; border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.tc-on .dateline span { font: 600 12px/1.3 var(--tc-serif); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.tc-on .dateline b { font-family: var(--tc-serif); font-weight: 400; color: var(--accent); }
.tc-on .dateline b small { font-family: var(--tc-serif); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.tc-on .timeline-words { font-style: italic; }
/* the program: centred and airy — the hour in small caps, the item in large italic, its note below; a short hair rule with a
   pearl between items, nothing boxed */
.tc-on .prog { list-style: none; padding: 0; margin: 26px auto 0; max-width: 330px; text-align: center; }
.tc-on .prog li { display: block !important; padding: 20px 4px 21px; position: relative; border: 0; text-align: center; }
.tc-on .prog li + li::before { content: ''; position: absolute; left: 50%; top: 0; width: 64px; height: 1px; margin-left: -32px; transform: scaleY(.5); transform-origin: 50% 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 30%, color-mix(in srgb, var(--accent) 55%, transparent) 70%, transparent); }
.tc-on .prog li + li::after { content: ''; position: absolute; left: 50%; top: -1.6px; width: 3.2px; height: 3.2px; margin-left: -1.6px; border-radius: 50%; background: var(--accent); opacity: .75; }
.tc-on .prog .pi { display: none; }
.tc-on .prog .pt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tc-on .prog time { font: 600 12.5px/1.3 var(--tc-serif); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--accent); }
.tc-on .prog b { font: italic 500 25px/1.2 var(--tc-serif); color: var(--ink); letter-spacing: .01em; text-transform: none; }
.tc-on .prog span { font: italic 400 17.5px/1.45 var(--tc-serif); color: var(--soft); text-wrap: balance; }
/* countdown */
.tc-on .framed.plain, .tc-on .framed.plain .framed-in { background: none; border: 0 !important; box-shadow: none; }
.tc-on .framed.plain .framed-in { padding: 4px 0; }
.tc-on .cd-days b { font: 300 clamp(92px, 30vw, 132px)/1 var(--tc-serif); color: var(--accent); }
.tc-on .cd-days span, .tc-on .cd-row span { font: 600 11.5px/1.3 var(--tc-serif); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.tc-on .cd-row b { font: 400 40px/1 var(--tc-serif); color: var(--accent); }
.tc-on .cd-t { font: italic 400 20px/1.4 var(--tc-serif); color: var(--accent); }
/* venue, dress, notes */
.tc-on .venue-name, .tc-on .dress-title { font: italic 500 clamp(28px, 8.4vw, 38px)/1.15 var(--tc-serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--accent); text-wrap: balance; }
.tc-on .addr { font-family: var(--tc-serif); }
.tc-on .when { font: 600 12px/1.6 var(--tc-serif) !important; letter-spacing: .24em; text-transform: uppercase; color: var(--accent) !important; }
.tc-on .note-card { background: transparent !important; box-shadow: none; border: 0 !important; outline: 0 !important; }
.tc-on .note-card::before, .tc-on .note-card::after { display: none; }
.tc-on .sec.rsvp .seal { display: none; }
.tc-on .btn { font: 600 12.5px/1 var(--tc-serif); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); background: transparent;
  border: .75px solid color-mix(in srgb, var(--accent) 52%, transparent); border-radius: 999px; box-shadow: none; }
.tc-on .btn.fill { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.tc-on .sec.foot .sig { font: 400 30px/1.35 var(--tc-script); color: var(--accent); }
/* photos set INTO engraved frames: the portrait an oval medallion (the hatched moulding is a canvas over the edge), the gallery
   prints in hatched mouldings; the print's inner shadow sits on the photo, a soft shadow falls under the frame. No mats, no tilt. */
html[data-gf="toile"] .sec.photos .portrait.noframe { position: relative; width: min(74%, 290px); aspect-ratio: 4 / 5; padding: 11px !important; border-radius: 50% !important;
  background: transparent !important; overflow: visible; box-shadow: none !important; }
/* 2026-11-15 smoothness: the medallion's shadow was a drop-shadow filter on the whole portrait — WebKit re-blurred it on every
   repaint (250–380 ms frames while it was on screen). The silhouette is the paper oval (::before), so the same two shadows
   are a box-shadow on that oval now. */
html[data-gf="toile"] .sec.photos .portrait.noframe .ph { position: relative; inset: auto; width: 100%; height: 100%; border-radius: 50% !important; box-shadow: none !important; }
html[data-gf="toile"] .sec.photos .portrait .ph::after, html[data-gf="toile"] .sec.photos .portrait .ph-cast { display: none !important; }
html[data-gf="toile"] .sec.photos .portrait.noframe::before { content: ''; display: block !important; position: absolute; inset: 0 !important; border-radius: 50%; z-index: 0;
  background: var(--paper) var(--paper-img) !important; background-size: 512px !important; background-blend-mode: multiply; border: 0 !important; animation: none !important; opacity: 1 !important; transform: none !important;
  box-shadow: 0 12px 28px rgba(20, 24, 40, .16), 0 2px 6px rgba(20, 24, 40, .08) !important; } /* a drop-shadow's blur length is the Gaussian's std deviation, a box-shadow's is twice it: 14 → 28, 3 → 6 */
html[data-gf="toile"] .sec.photos .portrait.noframe .ph { z-index: 1; }
html[data-gf="toile"] .sec.photos .portrait.noframe::after { content: ''; display: block !important; position: absolute; inset: 11px !important; border-radius: 50% !important; pointer-events: none; z-index: 2;
  background: none !important; animation: none !important; border: 0;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 3px 10px rgba(0, 0, 0, .3), inset 0 0 26px rgba(0, 0, 0, .12) !important; }
html[data-gf="toile"] .tc-fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; mix-blend-mode: multiply; }
html[data-gf="toile"] .gf-gal { gap: 26px 22px; width: min(86%, 350px); }
html[data-gf="toile"] .sec.photos .portrait.noframe + .gf-gal { margin-top: 40px; }
html[data-gf="toile"] .gf-gal figure { position: relative; padding: 8px !important; border-radius: 0 !important; overflow: visible;
  background: var(--paper) var(--paper-img) !important; background-size: 512px !important; background-blend-mode: multiply;
  box-shadow: 0 14px 24px -14px rgba(20, 24, 40, .36), 0 2px 6px rgba(20, 24, 40, .08) !important; }
html[data-gf="toile"] .gf-gal figure img { border-radius: 0 !important; }
html[data-gf="toile"] .gf-gal figure::before { display: none !important; }
html[data-gf="toile"] .gf-gal figure::after, html[data-gf="toile"] .gf-gal figure.in::after { content: ''; display: block !important; position: absolute; inset: 8px !important; border: 0; border-radius: 0 !important;
  pointer-events: none; z-index: 2; background: none !important; animation: none !important;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .22), inset 0 2px 8px rgba(0, 0, 0, .26), inset 0 0 20px rgba(0, 0, 0, .1) !important; }
/* the vignettes (toile.js): each engraves itself when it scrolls into view */
.tc-vig { position: relative; width: min(150px, 42vw); aspect-ratio: 140 / 80; margin: 0 auto 22px; pointer-events: none; }
.tc-vig canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tc-vig.v-swan { width: min(124px, 36vw); aspect-ratio: 100 / 60; }
.tc-vig.v-urn { width: min(84px, 26vw); aspect-ratio: 60 / 76; }
.tc-vig.v-bird { width: min(140px, 40vw); aspect-ratio: 104 / 34; }
.tc-vig.v-bow { width: min(120px, 34vw); aspect-ratio: 74 / 48; }
.tc-vig.v-bridge { width: min(140px, 40vw); aspect-ratio: 90 / 42; }
.tc-vig.v-chateau { width: min(170px, 48vw); aspect-ratio: 150 / 70; }
.tc-vig.v-map { width: min(200px, 56vw); aspect-ratio: 150 / 92; margin-bottom: 26px; }
.tc-vig.v-rule { width: min(260px, 70vw); aspect-ratio: 260 / 22; margin: 0 auto; }
.tc-vig.v-swans { width: min(150px, 42vw); aspect-ratio: 112 / 48; margin-bottom: 14px; }
.divider.ldiv.tc-div svg { display: none; }
.divider.ldiv.tc-div { width: auto; margin-top: 30px; }
.tc-on .note-card .tc-vig { margin-bottom: 22px; }
/* RSVP: the monogram cartouche, small, the monogram set inside its oval */
.tc-rcart { position: relative; width: min(176px, 48vw); aspect-ratio: 170 / 232; margin: 0 auto 18px; pointer-events: none; }
.tc-rcart canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tc-rm { position: absolute; display: flex; align-items: center; justify-content: center; font: 400 30px/1 var(--tc-script); color: var(--accent); white-space: nowrap; }
