/* Hallmark · component: correspondence sheet · tone: English country-house stationery
 * pre-emit critique: P4 H4 E4 S5 R4 V4 · parchment / sepia / oxblood */
@font-face {
  font-family: ContactFell; src: url('./fonts/IMFeENsc28P.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --contact-paper: #e6cfa0;
  --contact-paper-light: #f1e3bf;
  --contact-paper-shadow: #ac8047;
  --contact-ink: #392b20;
  --contact-muted: #70583f;
  --contact-rule: #8e6b3c55;
  --contact-focus: #704729;
  --contact-oxblood: #61302d;
  --contact-oxblood-light: #8b5149;
  --contact-ivory: #f4e9cd;
  --contact-backdrop: #140e092b;
  --contact-shadow: #10080485;
  --contact-hover: #86623b14;
  --contact-brand-primary: #d6684c;
  --contact-brand-secondary: #24727a;
  --contact-body-font: Baskerville, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --contact-display-font: ContactFell, "Songti SC", "Noto Serif CJK SC", serif;
  --contact-control-font: "Songti SC", Georgia, serif;
  --contact-edge: polygon(.3% .35%, 13% .15%, 28% .45%, 44% 0, 58% .3%, 72% .1%, 87% .4%, 99.6% .2%, 99.8% 16%, 99.5% 32%, 100% 48%, 99.7% 63%, 99.9% 80%, 99.6% 99.55%, 87% 99.8%, 73% 99.5%, 57% 100%, 42% 99.7%, 28% 99.9%, 14% 99.65%, .35% 99.8%, .1% 82%, .4% 66%, 0 51%, .35% 34%, .1% 18%);
}
#contact-entry {
  position: fixed; z-index: 5; padding: 0; border: 0; background: transparent;
  cursor: pointer; color: transparent; transform: rotate(-4deg); border-radius: 3px;
}
#contact-entry:hover { background: #ffebba18; box-shadow: 0 0 18px #e7c08a33; }
#contact-entry:focus-visible { outline: 2px solid var(--contact-paper-light); outline-offset: 4px; }
#contact-root { position: fixed; inset: 0; z-index: 20; cursor: auto; isolation: isolate; }
#contact-root *, #contact-root button, #contact-root a { cursor: auto; }
#contact-root button, #contact-root a { cursor: pointer; }
body.contact-active { cursor: auto; touch-action: auto; }
.contact-backdrop {
  position: absolute; inset: 0; background: var(--contact-backdrop);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.contact-paper-surface {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform;
  filter: drop-shadow(0 24px 38px var(--contact-shadow)); pointer-events: none;
}
.contact-paper-surface::before {
  content: ''; position: absolute; inset: 0; clip-path: var(--contact-edge);
  background-color: var(--contact-paper);
  background-image: url('./paper-aged-v3.webp');
  background-size: 100% 100%;
  box-shadow: inset 0 0 32px #89552426, inset 0 0 3px #79502466;
}
.contact-paper-surface::after {
  content: ''; position: absolute; inset: 0; opacity: .57;
  background: url('./paper-border.svg') center / 100% 100% no-repeat;
}
.contact-ribbon {
  position: absolute; z-index: 1; left: 44px; top: 1px; width: 22px; height: 91px;
  background: linear-gradient(90deg, var(--contact-oxblood), var(--contact-oxblood-light) 45%, var(--contact-oxblood));
  clip-path: polygon(0 0,100% 0,100% 100%,50% 86%,0 100%);
  filter: drop-shadow(2px 2px 2px #2e17094d); opacity: .87;
}
.contact-ribbon::after { content: ''; position: absolute; inset: 0 3px; border-left: 1px solid #cf9c7140; border-right: 1px solid #cf9c7140; }
.contact-origin { position: absolute; inset: 0; color: var(--contact-ink); }
.contact-origin-title {
  position: absolute; left: 50%; top: 13%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--letter-font); font-size: var(--origin-font-size,120px); line-height: 1;
}
.contact-origin-rule { position: absolute; left: 17%; width: 66%; height: 1%; background: var(--contact-rule); }
.contact-origin-rule:nth-child(2) { top: 44%; }
.contact-origin-rule:nth-child(3) { top: 61%; }
.contact-origin-rule:nth-child(4) { top: 78%; }
#contact-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(740px, calc(100vw - 80px)); height: min(780px, calc(100dvh - 96px));
  z-index: 2; display: flex; flex-direction: column;
  color: var(--contact-ink); font: 20px/1.5 var(--contact-body-font); min-height: 0;
}
#contact-dialog:focus { outline: none; }
.contact-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  padding: 21px 38px 6px 80px; flex: 0 0 auto;
}
.contact-languages { display: flex; align-items: center; gap: 3px; }
.contact-languages button, .contact-close {
  min-height: 40px; border: 0; background: transparent; color: var(--contact-muted);
  font: 14px/1.5 var(--contact-control-font); white-space: nowrap;
}
.contact-languages button { min-width: 36px; padding: 5px; position: relative; }
.contact-languages button[aria-pressed=true] { color: var(--contact-ink); }
.contact-languages button[aria-pressed=true]::after { content:'';position:absolute;bottom:6px;left:8px;right:8px;height:1px;background:var(--contact-oxblood); }
.contact-language-divider { opacity: .38; font-size: 12px; }
.contact-close { padding: 5px 0 5px 8px; }
.contact-close:hover, .contact-languages button:hover { color: var(--contact-oxblood); }
.contact-scroll {
  min-height: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: clip;
  margin: 0 18px 24px; overscroll-behavior: contain; touch-action: pan-y;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  scrollbar-color: var(--contact-paper-shadow) transparent;
}
.contact-notebook { margin: 0 40px; padding: 10px 0 20px; min-width: 0; }
.contact-heading { text-align: center; padding: 0 0 18px; }
.contact-heading p { margin: 0 0 4px; font: 23px/1.4 var(--contact-display-font); letter-spacing: .15em; color: var(--contact-muted); }
.contact-heading h1 { margin: 0; font: 52px/1.2 var(--contact-display-font); font-style: normal; font-weight: 400; letter-spacing: .035em; }
html[lang=zh-CN] .contact-heading h1 { font-size: 38px; line-height: 1.5; letter-spacing: .18em; padding-left: .18em; }
.contact-ornament { display: block; width: 168px; height: 20px; margin: 14px auto 0; color: var(--contact-muted); opacity: .62; }
.contact-list { margin: 0; border-top: 1px solid var(--contact-rule); }
.contact-line {
  display: grid; grid-template-columns: 70px minmax(0,1fr) auto;
  align-items: center; column-gap: 16px; min-height: 68px;
  padding: 14px 0; border-bottom: 1px solid var(--contact-rule);
}
.contact-line dt { font: 19px/1.5 var(--contact-display-font); color: var(--contact-muted); }
html[lang=zh-CN] .contact-line dt { font-family: var(--contact-control-font); font-size: 16px; letter-spacing: .12em; }
.contact-line dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-value { color: var(--contact-ink); text-decoration-color: var(--contact-rule); text-underline-offset: 5px; }
.contact-value:hover { text-decoration-color: var(--contact-ink); }
.contact-copy {
  min-height: 40px; min-width: 44px; padding: 6px 0 6px 8px; border: 0; background: transparent;
  color: var(--contact-muted); font: 13px/1.5 var(--contact-control-font); white-space: nowrap;
}
.contact-copy:hover { color: var(--contact-oxblood); }
.contact-wechat { grid-template-columns: 70px minmax(0,1fr); padding-top: 20px; padding-bottom: 20px; min-height: 230px; }
.contact-qr-block { justify-self: end; }
.contact-qr {
  position: relative; width: 202px; aspect-ratio: 1; overflow: hidden;
  background: #fff; contain: paint; flex-shrink: 0;
}
.contact-qr img { position: absolute; width: 120.652174%; max-width: none; height: auto; left: -10.326087%; top: -33.152174%; display: block; }
.contact-signoff { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 0; }
.contact-signoff::before,.contact-signoff::after { content:''; width:28px; height:1px; background:var(--contact-rule); }
.contact-brand-mark { width:44px; height:44px; display:block; flex:none; opacity:.9; mix-blend-mode:multiply; }
.contact-brand-lock,.contact-brand-plate { stroke:var(--contact-brand-secondary); }
.contact-brand-key,.contact-brand-core { stroke:var(--contact-brand-primary); }
.contact-brand-paper { stroke:var(--contact-paper-light); }
.contact-brand-plate,.contact-brand-core { fill:var(--contact-paper-light); }
#contact-root :focus-visible { outline: 2px solid var(--contact-focus); outline-offset: 4px; }
.contact-announcement { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width:700px) {
  #contact-dialog { width: calc(100vw - 36px); height: calc(100dvh - 84px); max-height: 800px; font-size: 17px; }
  .contact-toolbar { padding: 17px 25px 4px 48px; gap: 12px; }
  .contact-languages button,.contact-close { font-size:12px; min-height:40px; }
  .contact-close { padding-left:0; }
  .contact-ribbon { left: 25px; width: 15px; height: 67px; }
  .contact-scroll { margin: 0 10px 21px; }
  .contact-notebook { margin: 0 18px; padding-top: 12px; }
  .contact-heading { padding-bottom: 18px; }
  .contact-heading p { font-size:20px; }
  .contact-heading h1 { font-size:44px; }
  html[lang=zh-CN] .contact-heading h1 { font-size:30px; }
  .contact-ornament { width:136px; margin-top:10px; }
  .contact-line { grid-template-columns: 48px minmax(0,1fr); gap:6px 10px; padding:15px 0; min-height:84px; }
  .contact-line dt,html[lang=zh-CN] .contact-line dt { font-size:14px; }
  .contact-copy { grid-column:2; justify-self:start; padding:0; min-height:26px; text-align:left; font-size:12px; }
  .contact-wechat { grid-template-columns: 48px minmax(0,1fr); min-height:210px; padding:22px 0; }
  .contact-qr { width: min(100%, 202px); }
  .contact-qr-block { width:min(100%,202px); }
  .contact-signoff { margin-top:12px; }
}
@media (max-width:359px) {
  #contact-dialog { width:calc(100vw - 28px); }
  .contact-notebook { margin:0 13px; }
  .contact-line { column-gap:8px; font-size:15px; }
  .contact-toolbar { padding-right:20px; gap:10px; }
  .contact-languages button { min-width:30px; }
}
@media (prefers-reduced-motion:reduce) { .contact-paper-surface { will-change:auto; } }
