/* Letterpress: thick cotton card, debossed type, a wax seal. Deckle-edged stationery on a table. */
:root {
    --te-radius: 0;
    --table: color-mix(in srgb, var(--te-bg) 86%, var(--te-ink));
    --cotton: color-mix(in srgb, var(--te-bg) 45%, var(--te-surface));
    --press: 0 1px 1px rgba(255,255,255,.85), 0 -1px 1px rgba(0,0,0,.2);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .22 0 0 0 0 .18 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    --edge-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6'%3E%3Cpath d='M0 6V3l5-2 6 3 6-2 7 3 7-4 7 2 7-1 7 2 8-1v3z'/%3E%3C/svg%3E");
    --edge-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6'%3E%3Cpath d='M0 0v3l6 2 7-3 5 2 7-3 7 4 6-2 7 1 6-2 9 1V0z'/%3E%3C/svg%3E");
    --edge-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='60'%3E%3Cpath d='M6 0H3L1 6l3 7-2 5 3 7-4 7 2 6-1 7 2 6-1 9h3z'/%3E%3C/svg%3E");
    --edge-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='60'%3E%3Cpath d='M0 0h3l2 5-3 6 2 6-3 7 4 7-2 7 1 7-2 7 1 8H0z'/%3E%3C/svg%3E");
    --deckle: var(--edge-top) 0 0 / 60px 6px repeat-x, var(--edge-bottom) 0 100% / 60px 6px repeat-x, var(--edge-left) 0 0 / 6px 60px repeat-y, var(--edge-right) 100% 0 / 6px 60px repeat-y, linear-gradient(#000 0 0) 50% 50% / calc(100% - 10px) calc(100% - 10px) no-repeat;
}
.te-site { background: var(--table); }

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 500; font-size: 1.375rem; }
.te-nav-link { border-radius: 0; font-size: 1rem; }
.te-nav-link.is-active { background: none; text-decoration: underline; text-underline-offset: 6px; }
.te-nav-sheet { background: var(--cotton); }
.te-btn { border-radius: 0; background: var(--te-primary); color: var(--te-on-primary); font-size: 1.0625rem; font-weight: 500; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.25); }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); }
.te-btn-soft { background: var(--te-tint-strong); color: var(--te-primary-text); box-shadow: none; }
.te-btn-light { background: #fff; color: #14141c; }
.te-btn-outline { border-radius: 0; font-size: 1.0625rem; font-weight: 500; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); }
.te-field, .te-choice { border-radius: 0; }
.te-field { background: var(--cotton); }
.te-chip { border-radius: 0; background: none; padding: 0; color: var(--te-accent-text); font-size: 1.0625rem; font-style: italic; }

/* The closed card */
.lp-hero { padding: clamp(1rem, 4vw, 3.5rem) 1rem clamp(2.5rem, 6vw, 5rem); }
.lp-card { position: relative; max-width: 42rem; margin-inline: auto; background-color: var(--cotton); background-image: var(--grain); box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 26px 44px -22px rgba(30,30,25,.55); text-align: center; }
.lp-flap { position: relative; z-index: 2; filter: drop-shadow(0 5px 5px rgba(30,30,25,.28)); }
.lp-flap-face { padding: clamp(2rem, 7vw, 3.5rem) clamp(1.25rem, 6vw, 3.5rem) clamp(3.25rem, 9vw, 4.5rem); background-color: var(--cotton); background-image: var(--grain); -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.75rem), 50% 100%, 0 calc(100% - 1.75rem)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.75rem), 50% 100%, 0 calc(100% - 1.75rem)); }
.lp-label, .lp-sub, .lp-when, .lp-where { text-shadow: var(--press); }
.lp-label { font-size: 1.25rem; font-style: italic; color: var(--te-accent-text); }
.lp-title { margin-top: .5rem; font-size: calc(var(--fit, 1) * clamp(3.5rem, 15vw, 7.25rem)); line-height: .98; font-weight: 500; letter-spacing: -.015em; color: var(--te-primary-text); text-shadow: var(--press); overflow-wrap: break-word; }
.lp-sub { margin-top: .75rem; font-size: 1.1875rem; color: var(--te-muted); }
/* The portrait is tipped into a pressed window. */
.lp-photo { position: relative; width: min(74%, 20rem); aspect-ratio: 4 / 5; margin: 1.75rem auto 0; overflow: hidden; }
.lp-photo > * { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.lp-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 2px 5px rgba(0,0,0,.42), inset 0 0 0 1px rgba(0,0,0,.12); }

/* The seal sits on the flap's point and presses down once. */
.lp-seal { position: absolute; z-index: 3; left: 50%; bottom: 0; width: clamp(5.75rem, 20vw, 7.5rem); transform: translate(-50%, 46%); animation: lp-press .55s cubic-bezier(.2,.9,.25,1) .35s both; }
.lp-seal svg { display: block; width: 100%; overflow: visible; }
.lp-wax { fill: var(--te-accent); }
.lp-wax-lip { fill: none; stroke: color-mix(in srgb, var(--te-accent) 72%, #fff); stroke-width: 2; opacity: .75; }
.lp-wax-well { fill: color-mix(in srgb, var(--te-accent) 84%, #000); }
.lp-wax-mark { font-family: var(--te-heading); font-size: 34px; font-style: italic; fill: color-mix(in srgb, var(--te-accent) 55%, #fff); }
@keyframes lp-press { from { opacity: 0; scale: 1.5; } }
@media (prefers-reduced-motion: reduce) { .lp-seal { animation: none; } }

.lp-inside { position: relative; z-index: 1; padding: clamp(4.25rem, 11vw, 5rem) clamp(1.25rem, 6vw, 3.5rem) clamp(2rem, 6vw, 3rem); }
.lp-when { font-size: clamp(1.375rem, 4.5vw, 1.75rem); color: var(--te-primary-text); }
.lp-where { margin-top: .125rem; font-size: 1.1875rem; color: var(--te-muted); }
.lp-inside .te-count { margin-top: 1.5rem; }
.lp-cta { margin-top: 1.5rem; }
.te-count-cell { padding: .25rem; border-radius: 0; background: none !important; box-shadow: none !important; }
.te-count-num { font-size: clamp(2rem, 8vw, 3rem); font-weight: 500; text-shadow: var(--press); }
.te-count-label { font-size: .9375rem; font-style: italic; }

/* Deckle-edged stationery: the sheet is a masked layer, so its torn edge can still cast a shadow. */
.te-card, .te-tile, .te-tile-accent { position: relative; isolation: isolate; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; filter: drop-shadow(0 7px 8px rgba(30,30,25,.2)); }
.te-card::before, .te-tile::before, .te-gallery-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--cotton); background-image: var(--grain); -webkit-mask: var(--deckle); mask: var(--deckle); }
.te-tile-accent::before { background-color: color-mix(in srgb, var(--te-accent) 7%, var(--cotton)); }
a.te-card:hover { filter: drop-shadow(0 12px 12px rgba(30,30,25,.24)); }
.te-icon-tile { display: none; }
.te-eyebrow { margin: 0 !important; font-size: 1rem; font-style: italic; color: var(--te-accent-text); }
.te-h-section, .te-h-page { font-weight: 500; font-size: clamp(2.5rem, 8vw, 4.25rem); line-height: 1.05; letter-spacing: -.01em; color: var(--te-primary-text); text-shadow: var(--press); }
.te-h-card { font-weight: 500; font-size: 1.5rem; text-shadow: var(--press); }
.te-section-sub { font-size: 1.125rem; font-style: italic; }
.te-page-head { background: none; }
.te-page-head .te-h-page { font-size: clamp(3rem, 10vw, 5.5rem); }

/* Facts: three cards fanned on the table. */
.te-facts-grid { max-width: 58rem !important; text-align: center; }
.te-facts-grid > :nth-child(1) { transform: rotate(-1.4deg); }
.te-facts-grid > :nth-child(2) { transform: rotate(.9deg); }
.te-facts-grid > :nth-child(3) { transform: rotate(-.6deg); }
.te-facts-grid > * > .te-accent, .te-facts-grid a .te-accent { justify-content: center; }
@media (min-width: 1024px) { .te-facts-grid { gap: 0 !important; } .te-facts-grid > * { margin-inline: -.25rem; } .te-facts-grid > :nth-child(2) { z-index: 1; margin-top: 1rem; } }

/* Explore: small place cards. */
.te-explore > div { max-width: 44rem !important; }
.te-explore .grid { gap: .625rem !important; }
.te-explore a.te-card { min-height: 5rem; padding: 1.25rem 1.5rem; text-align: center; }
.te-explore a.te-card > svg { display: none; }
.te-explore .te-muted { font-style: italic; }
.te-story .te-card { max-width: 40rem !important; padding-inline: clamp(1.75rem, 7vw, 4rem) !important; text-align: left; }
.te-prose { font-size: 1.1875rem; }
.te-story .te-prose p:first-child::first-line { font-variant-caps: small-caps; letter-spacing: .02em; }

/* Programme: a single order-of-service card, centred, with a printer's diamond between lines. */
.te-schedule > div { max-width: 34rem !important; }
.te-timeline { padding: clamp(2.25rem, 7vw, 3.5rem) clamp(1.5rem, 6vw, 3rem) !important; }
.te-timeline li { grid-template-columns: 1fr !important; padding: 0 0 1.75rem !important; margin-bottom: 1.75rem; text-align: center; }
.te-timeline li:last-child { margin-bottom: 0; padding-bottom: 0 !important; }
.te-timeline li > div:first-child { display: none; }
.te-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: 0; width: .4375rem; height: .4375rem; background: var(--te-accent); transform: translateX(-50%) rotate(45deg); }
.te-timeline .te-chip { margin-bottom: .125rem; }
.te-timeline .te-h-card { font-size: 1.75rem; line-height: 1.15; color: var(--te-primary-text); }

/* Gallery: prints mounted on deckled board. */
.te-gallery-grid { gap: .75rem !important; max-width: 62rem !important; }
.te-gallery-item { position: relative; isolation: isolate; overflow: visible !important; border-radius: 0 !important; filter: drop-shadow(0 7px 8px rgba(30,30,25,.22)); }
.te-gallery-item:nth-child(odd) { transform: rotate(-.8deg); }
.te-gallery-item:nth-child(even) { transform: rotate(.7deg); }
.te-gallery-item img { position: absolute; inset: .625rem; width: calc(100% - 1.25rem); height: calc(100% - 1.25rem); object-position: 50% 16%; }

.te-closing-panel { max-width: 42rem !important; }
.te-closing-panel .te-btn { background: var(--te-accent); color: var(--te-on-accent); }
