/*
Theme Name: SafeW Mail
Theme URI: https://safew.email/
Description: SafeW 加密通信单页主题：墨绿信纸质感、衬线标题、极简留白排版，面向跨时区协作与长期沟通。
Version: 1.0.0
Author: SafeW
Text Domain: safew-mail
Requires at least: 6.0
Tested up to: 6.8
*/

:root {
  --paper: #f5f3ea;
  --paper-2: #ebe7d8;
  --ink: #1c2a24;
  --muted: #5c6d64;
  --green: #14513c;
  --green-2: #1d6b4f;
  --gold: #b08a3e;
  --line: #d6d0bd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Microsoft YaHei", serif;
  line-height: 1.95;
}

a { color: var(--green-2); text-decoration: none; border-bottom: 1px solid rgba(29, 107, 79, .35); }
a:hover { color: var(--gold); border-color: var(--gold); }

.sheet { width: min(1020px, calc(100% - 44px)); margin: 0 auto; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead .sheet { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.seal {
  display: flex; align-items: center; gap: 12px;
  font-family: "Songti SC", Georgia, serif; font-weight: 700; letter-spacing: 1px;
}
.seal i {
  font-style: normal; width: 40px; height: 40px;
  border: 2px solid var(--green); border-radius: 50%;
  color: var(--green); display: grid; place-items: center; font-size: 17px;
}
.masthead nav { display: flex; gap: 26px; font-size: 15px; }
.masthead nav a { color: var(--muted); border: 0; }
.masthead nav a:hover { color: var(--green); }

.stamp {
  display: inline-block; padding: 11px 22px;
  background: var(--green); color: #f2efe2; font-size: 14.5px;
  border-radius: 2px; letter-spacing: .6px;
}
.stamp:hover { color: #fff; background: var(--green-2); border: 0; }

.opening { padding: 66px 0 40px; }
.opening .sheet { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.dateline {
  font-size: 13.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
h1 {
  font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(30px, 4vw, 45px); line-height: 1.4; margin: 0 0 20px; font-weight: 600;
}
h2 {
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(23px, 2.7vw, 31px); margin: 0 0 14px; font-weight: 600;
}
h3 { font-size: 18.5px; margin: 0 0 8px; font-weight: 600; }
p { color: var(--muted); margin: 0 0 16px; }
.dropcap::first-letter {
  float: left; font-size: 58px; line-height: 1; padding: 6px 12px 0 0;
  color: var(--green); font-family: Georgia, serif;
}

.plate {
  border: 1px solid var(--line); background: #fffdf6; padding: 12px;
  box-shadow: 0 18px 40px rgba(60, 60, 40, .1);
}
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { padding: 11px 4px 2px; font-size: 13.5px; color: var(--muted); }

section { padding: 62px 0; }
.ruled { border-top: 1px solid var(--line); }
.tinted { background: var(--paper-2); }

.letter { display: grid; gap: 22px; }
.letter-block {
  background: #fffdf6; border: 1px solid var(--line); padding: 26px 28px;
  border-left: 4px solid var(--green);
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.note { font-size: 16px; color: #38473f; border-left: 2px solid var(--gold); padding-left: 20px; }

.zone { display: grid; gap: 12px; }
.zone-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.zone-row strong { color: var(--green); font-weight: 600; }
.zone-row span { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding-left: 24px; position: relative; margin-bottom: 10px; color: var(--muted); }
.list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.tab { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tab th, .tab td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tab th { color: var(--green); font-weight: 600; }
.tab td { color: var(--muted); }

.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.qa p { margin: 10px 0 0; }

.closing {
  background: var(--green); color: #eef2ea; padding: 46px 48px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: center;
}
.closing h2, .closing p { color: #eef2ea; }
.closing .stamp { background: #f0e6c8; color: var(--green); }

footer { padding: 36px 0 52px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .sheet { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

.friend-links { padding: 32px 0 6px; border-top: 1px solid var(--line); }
.friend-links p { margin: 0; font-size: 13px; line-height: 1.95; color: #7d8b80; word-break: break-word; }
.friend-links .fl-title { color: #8a988d; }
.friend-links a { color: #7d8b80; margin-right: 5px; }
.friend-links a:hover { color: var(--green-2); text-decoration: underline; }

@media (max-width: 900px) {
  .opening .sheet, .two, .three, .closing { grid-template-columns: 1fr; }
  .masthead nav { display: none; }
  section { padding: 48px 0; }
}
