@font-face {
  font-family: "Shanye Title";
  src: url("/title-serif.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --ink: #193d30;
  --forest: #19372b;
  --muted: #54594e;
  --copper: #a65436;
  --copper-light: #e29c78;
  --line: #be947c;
  --line-soft: #d0b19d;
  --page-gutter: clamp(24px, 5.55vw, 94px);
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 48% 37%, #fcf7ef 0%, var(--paper) 78%);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
button, input { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--page-gutter)), 1420px); margin-inline: auto; }
.mast, .footer { background: var(--forest); color: var(--copper-light); }
.mast-inner { min-height: clamp(54px, 5.15vw, 78px); display: flex; align-items: center; gap: clamp(24px, 4vw, 62px); }
.wordmark { font: 500 clamp(14px, 1.6vw, 24px)/1 Georgia, serif; letter-spacing: .28em; }
.mast-line, .footer-inner > span:not(.wordmark) { height: 1px; background: currentColor; opacity: .83; }
.mast-line { flex: 1; }
main { flex: 1 0 auto; }

.hero { display: grid; position: relative; overflow: hidden; min-height: clamp(318px, 26.8vw, 438px); }
.hero-inner { align-self: center; position: relative; z-index: 1; padding-bottom: clamp(15px, 2.8vw, 45px); }
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Shanye Title", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(72px, 8.05vw, 132px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .015em;
}
.hero-mark { display: block; width: clamp(62px, 5.8vw, 94px); height: 3px; margin-top: clamp(24px, 2.4vw, 38px); background: var(--copper); border-radius: 3px; }
.landscape {
  position: absolute;
  right: max(0px, calc((100vw - 1700px) / 2));
  bottom: 0;
  width: min(75vw, 1330px);
  display: block;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.landscape img { display: block; width: 100%; height: auto; }

.directory { padding-top: clamp(18px, 1.65vw, 30px); padding-bottom: clamp(10px, 1.3vw, 22px); }
.links { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.tile { position: relative; }
.tile + .tile { border-top: 1px solid var(--line-soft); }
.service {
  min-height: clamp(109px, 10.35vw, 158px);
  display: grid;
  align-items: center;
  grid-template-columns: clamp(72px, 10vw, 153px) minmax(0, 1fr) auto;
  padding-inline: clamp(17px, 2.7vw, 42px);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.service:hover { background-color: #e3d8c648; }
.service:focus-visible { outline-offset: -5px; }
.tile:first-child .service { border-radius: 13px 13px 0 0; }
.tile:last-child .service { border-radius: 0 0 13px 13px; }
.icon {
  align-self: center;
  padding-right: clamp(16px, 2.1vw, 32px);
  border-right: 1px solid var(--line-soft);
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: clamp(52px, 5.8vw, 87px);
  font-size: 27px;
}
.icon svg { width: clamp(38px, 5.6vw, 81px); height: auto; }
.info { min-width: 0; padding-left: clamp(17px, 3vw, 44px); }
.info strong, .info small { display: block; overflow-wrap: anywhere; }
.info strong { font-size: clamp(26px, 3.28vw, 52px); font-weight: 660; letter-spacing: -.025em; line-height: 1.13; }
.info small { margin-top: .25em; color: var(--muted); font-size: clamp(15px, 1.67vw, 25px); line-height: 1.35; }
.arrow { display: grid; place-items: center; color: var(--copper); margin-left: 15px; transition: transform 160ms ease; }
.arrow svg { width: clamp(23px, 3.1vw, 44px); height: auto; }
.service:hover .arrow { transform: translateX(3px); }
.custom .service { padding-right: clamp(49px, 4.75vw, 78px); }
.custom .info strong { font-size: clamp(21px, 2.35vw, 37px); }
.custom .arrow { font-size: 24px; }
.remove {
  display: grid; place-items: center; width: 34px; height: 34px; position: absolute; top: calc(50% - 17px); right: clamp(9px, 1.4vw, 22px);
  color: var(--copper); font-size: 24px; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--paper);
}
.tools { min-height: 46px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.feedback { flex: 1; font-size: 14px; margin: 0; color: var(--muted); }
.add-link { min-height: 43px; padding: 0 4px; font-size: 14px; border: 0; color: var(--ink); background: transparent; }
.add-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.add-link span { color: var(--copper); font-size: 16px; }

.footer-inner { min-height: clamp(54px, 4.65vw, 72px); display: flex; justify-content: center; align-items: center; gap: 22px; }
.footer-inner > span:not(.wordmark) { width: clamp(44px, 10.5vw, 160px); }
.footer .wordmark { font-size: clamp(12px, 1.3vw, 18px); }

dialog {
  width: min(calc(100vw - 40px), 480px);
  padding: 26px;
  color: var(--ink);
  background: #fbf6ed;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 80px #15382b28;
}
dialog::backdrop { background: #12271e89; }
dialog h2 { margin: 0 0 1rem; font-size: 24px; }
dialog label { display: block; margin-top: 14px; margin-bottom: 5px; font-size: 14px; }
dialog input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-soft); background: #fffaf4; color: inherit; border-radius: 6px; }
.hint, .error { font-size: 13px; line-height: 1.55; }
.hint { color: var(--muted); }
.error { color: #8e3623; }
.actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.actions button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); }
.actions .primary { color: #fffaf0; background: var(--forest); border-color: var(--forest); }

@media (max-width: 820px) {
  .landscape { width: max(79vw, 655px); right: min(0px, calc(50vw - 410px)); }
}
@media (max-width: 620px) {
  .hero { min-height: 300px; }
  .hero-inner { align-self: start; padding-top: 32px; padding-bottom: 0; }
  .hero h1 { font-size: clamp(55px, 12vw, 76px); }
  .hero-mark { width: 51px; margin-top: 15px; }
  .landscape { bottom: 0; width: max(120vw, 640px); right: 0; }
  .directory { padding-top: 14px; }
  .service { min-height: 93px; padding-inline: 13px; grid-template-columns: 53px minmax(0, 1fr) auto; }
  .icon { padding-right: 10px; min-height: 50px; }
  .icon svg { width: 35px; }
  .info { padding-left: 14px; }
  .info strong { font-size: clamp(22px, 6.5vw, 32px); }
  .info small { font-size: 14px; }
  .arrow { margin-left: 7px; }
}
@media (max-width: 350px) {
  :root { --page-gutter: 18px; }
  .service { grid-template-columns: 44px minmax(0, 1fr) auto; padding-inline: 10px; }
  .info { padding-left: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
