:root[data-journal-design][data-surface]{
 --bg:#f7f1e6;--white:#fcf6ea;--ink:#31291f;--muted:#695c51;--line:#e8dcc9;
 --accent:#59664e;--accent-ink:#485540;--accent-soft:#e2e7d9;--button-ink:#fffaf0;
 --sheet:#657154;--sheet-shadow:#36433340;--paper:#ead8b8;--ticket-ink:#4b3a2b;
 --radius:13px;
}
:root[data-journal-design=blue][data-surface]{
 --bg:#f7f3eb;--white:#fbf7ee;--ink:#292d30;--muted:#5e5a53;--line:#e8dfd1;
 --accent:#435e72;--accent-ink:#395468;--accent-soft:#e0e7ec;
 --sheet:#4c697e;--sheet-shadow:#293e4a49;--paper:#e9e1d3;--ticket-ink:#383b3e;

}
[data-surface=journal] body{
 background:
  radial-gradient(circle at 2px 2px,#907c6060 .55px,transparent .9px) 0 0/15px 15px,
  linear-gradient(#fffaf08c,#fffaf08c),
  url('/assets/ivory-paper.webp') center top/570px auto repeat;
}
[data-surface=journal] #journal-header{background:transparent;border:0}
[data-surface=journal] .journal-header-inner{width:min(100%,760px);justify-content:flex-end;padding:14px 25px 16px}
.journal-header-actions{gap:8px}
[data-surface] .j-icon{background:#eee3d0;border-color:#e9ddc9;color:var(--ink);box-shadow:0 2px 3px #4a3b2822}
[data-surface] .j-icon:hover{background:var(--accent-soft);color:var(--accent-ink)}
[data-journal-design=blue] .j-icon{background:#eee8de;border-color:#ebe3d8}
[data-surface=journal] main{width:min(100%,720px);padding-top:12px}
.postbox-home .journal-hero{
 min-height:245px;isolation:isolate;position:relative;overflow:visible;padding:25px 28px;
 background:none;border:0;border-radius:0;box-shadow:none;color:#fffaf0;
 filter:drop-shadow(0 5px 4px var(--sheet-shadow));
}
.postbox-home .journal-hero::before{
 content:"";position:absolute;inset:0;z-index:-1;
 background:var(--sheet) url('/assets/postmarked-paper.webp') center/100% 100% no-repeat;
 clip-path:polygon(0 1%,6% 0,12% .6%,17% 0,24% .8%,30% .3%,37% 1%,44% .5%,51% 1%,60% .2%,68% .8%,78% 0,84% .7%,93% .2%,99.8% .7%,99.5% 15%,100% 26%,99.7% 46%,100% 66%,99.5% 87%,100% 99%,91% 100%,82% 99.5%,75% 100%,66% 99.4%,58% 100%,51% 99.4%,40% 100%,28% 99.5%,18% 100%,7% 99.5%,0 100%,.3% 82%,0 68%,.4% 53%,0 39%,.4% 21%,0 12%);
}
[data-journal-design=blue] .postbox-home .journal-hero::before{
 background-image:linear-gradient(#46647b,#46647b),url('/assets/postmarked-paper.webp');
 background-blend-mode:color,normal;
}
.postbox-home .journal-hero::after{display:none}
.postbox-home .journal-hero>div:first-child{max-width:min(75%,435px);z-index:1}
.postbox-home .journal-hero h1{font:800 clamp(29px,6vw,48px)/1.19 "Noto Serif CJK TC","Songti TC",serif;letter-spacing:.022em;text-shadow:0 1px 1px #27291d38}
.postbox-home .journal-hero p{color:#fff8eb;font-size:clamp(14px,3.6vw,20px);line-height:1.55;margin:8px 0 14px}
.postbox-home .phone-break{display:inline}
.postbox-home .journal-hero .primary{
 position:relative;padding:9px 13px;border-radius:6px;border:1px solid #f9f4dfc7;
 background:#fff9e21d;color:#fffaf0;box-shadow:1px 3px 4px #252e2560;
 outline:1px dashed #fff9e79c;outline-offset:-5px;
}
[data-journal-design=blue] .postbox-home .journal-hero .primary{
 background:#edece4;color:#2d3d4a;border-color:#fffdf3;outline-color:#40596d75;
}
.paper-tape,.postcard-cover::after{
 display:block;width:120px;height:27px;background:
   radial-gradient(ellipse 3px 7px at 24% 40%,#fff9ea7a 70%,transparent 78%) 0 0/19px 14px,
   radial-gradient(ellipse 5px 2px at 52% 62%,#fff9ea69 70%,transparent 78%) 0 0/19px 14px,
   linear-gradient(115deg,#e5d2aece,#eddfc2bc);
 clip-path:polygon(0 0,100% 0,98% 17%,100% 25%,98% 39%,100% 54%,98% 70%,100% 100%,0 100%,2% 81%,0 64%,2% 42%,0 24%,2% 11%);
}
.paper-tape{position:absolute;right:-14px;top:3px;z-index:2;transform:rotate(24deg);pointer-events:none}
.design-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:17px}
.design-shortcuts a{
 position:relative;isolation:isolate;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;
 color:var(--ticket-ink);font-weight:850;padding:6px 10px 6px 13px;min-height:61px;
 filter:drop-shadow(0 3px 1.5px #4f3a2535);
}
.design-shortcuts a::before{
 content:"";position:absolute;z-index:-1;inset:0;
 background:linear-gradient(120deg,#fffaf145,#b58b4815),var(--paper) url('/assets/ivory-paper.webp') center/390px auto;
 background-blend-mode:normal,multiply;
 mask:radial-gradient(circle at 0 5px,transparent 3.25px,#000 3.8px) 0 0/100% 10px repeat-y,
      radial-gradient(circle at 100% 5px,transparent 3.25px,#000 3.8px) 0 0/100% 10px repeat-y;
 mask-composite:intersect;
}
.design-shortcuts a::after{content:"";position:absolute;inset:5px 7px;border:1px solid #795c427b;border-radius:3px;pointer-events:none}
.design-shortcuts a:nth-child(2)::before{background-color:#f1e4cc}
[data-journal-design=blue] .design-shortcuts a:nth-child(2)::before{background-color:#f0eae0}
.design-shortcuts a:hover::before{background-color:var(--accent-soft)}
.design-shortcuts a b{
 min-height:40px;padding:2px 8px 0 10px;display:grid;place-items:center;
 border-left:1px dashed #795c428a;font:700 26px Georgia,serif;
}
.design-shortcuts a svg{width:18px;height:18px}
.design-shortcuts a span{line-height:1.2}
.postbox-home .j-section{margin-top:24px}
.postbox-home .j-section-head h2 svg{color:var(--accent)}
[data-surface=journal] .primary{background:var(--accent)}
.postbox-home .j-section-head>.primary{border-radius:5px;box-shadow:1px 3px 3px #4e3f2c37}
.postbox-home .postcards{grid-template-columns:1fr;gap:18px}
.postbox-home .postcard{
 position:relative;display:grid;grid-template-columns:minmax(82px,25%) minmax(0,1fr);overflow:visible;
 background:linear-gradient(115deg,#fdf8ec90,#f1e6cf57),var(--white) url('/assets/ivory-paper.webp') center/520px auto;
 border:1px solid #eaddcb;border-radius:10px;
 box-shadow:0 1px 2px #51412d37,0 6px 11px #51412d2c;min-height:120px;
}
.postbox-home .postcard-cover{
 height:auto;min-height:115px;align-self:stretch;border:7px solid #fffdf7;border-bottom-width:19px;
 transform:translate(3px,-4px) rotate(-8deg);margin:0 2px 0 1px;
 box-shadow:0 0 1px #695b4aa3,1px 5px 5px #423d385f;
}
.postbox-home .postcard-cover::after{
 content:"";position:absolute;left:50%;top:-15px;width:65%;height:18px;transform:translateX(-50%) rotate(-3deg);
}
.postbox-home .postcard .stamp{
 right:2px;bottom:-13px;background:#f3e6cc;color:#473b2c;border-radius:2px;padding:3px 5px;white-space:nowrap;
}
.postbox-home .postcard-body{align-content:center;padding:13px 29px 13px 21px}
.postbox-home .postcard-body h3{font-size:clamp(16px,4vw,22px)}
.postbox-home .postcard-body::after{
 content:"❀";position:absolute;top:3px;right:6px;width:49px;height:49px;
 display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;
 color:#a15c4a3a;font:37px/1 serif;transform:rotate(14deg);pointer-events:none;
}
.postbox-home .postcard-body h3,.postbox-home .postcard-body .date-note{position:relative;z-index:1}
.postbox-home .date-note,.postbox-home .postcard-arrow{color:var(--muted)}
.postbox-home .postcard-faces{margin-top:6px}
.postbox-home .recent-list{grid-template-columns:1fr;gap:7px}
.postbox-home .recent-note{
 background:linear-gradient(#fffbf3cb,#fffaf1ad),var(--white) url('/assets/ivory-paper.webp') center/480px auto;
 border-color:#ede2d3;border-radius:10px;box-shadow:0 1px 2px #51412d24,0 5px 6px #51412d20;
}
.postbox-home .recent-note:hover{background:var(--accent-soft)}
.postbox-home .recent-note>svg:last-child,.postbox-home .j-shortcuts{color:var(--accent-ink)}
#journal-nav{
 width:min(100% - 44px,641px);
 background:linear-gradient(#efe5d788,#f8efe0ab),#f5ebda url('/assets/ivory-paper.webp') center/410px auto;
 border-color:#e6dac7;
 border-radius:32px;box-shadow:0 6px 7px #44362240;
 justify-content:space-around;
}
[data-journal-design=blue] #journal-nav{background-color:#f3ede3;border-color:#e6ded1}
#journal-nav a{color:var(--ink);border-radius:50%}
#journal-nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent-ink)}
#journal-nav .dock-journal{
 background:transparent;color:var(--ink);border-radius:50%;border:0;box-shadow:none;
 transform:none;width:50px;height:50px;
}
#journal-nav .dock-journal[aria-current=page]{background:var(--accent);color:#fffaf1}
.journal-designs{display:grid;gap:9px}
.journal-designs button{
 display:grid;grid-template-columns:77px 1fr auto;gap:10px;align-items:center;text-align:left;
 border:1px solid var(--line);border-radius:10px;padding:8px;
}
.journal-designs button:hover,.journal-designs button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
.journal-designs small{display:block;font-size:12px;color:var(--muted)}
.journal-designs button>svg{width:16px;color:var(--accent)}
.design-preview{
 height:47px;border-radius:5px;padding:4px;display:grid;gap:3px;grid-template-rows:1.5fr 1fr;
 background:#f6eee0;border:1px solid #73594240;
}
.design-preview i{display:block;background:#e9d5b6;border-radius:2px}
.design-preview>i{background:#657154}
.mini-blue>i{background:#4c697e}
.mini-blue span i{background:#e6ded0}
.design-preview span{display:grid;gap:3px;grid-template-columns:1fr 1fr}
@media(max-width:540px){
 [data-surface=journal] .journal-header-inner{padding:12px 21px 8px}
 [data-surface=journal] main{padding:12px 21px 102px}
 .postbox-home .journal-hero{min-height:180px;padding:18px 21px}
 .paper-tape{width:84px;height:23px;right:-6px}
 .design-shortcuts{gap:8px;margin-top:13px}
 .design-shortcuts a{min-height:55px;gap:5px;font-size:14px;padding-inline:12px 9px}
 .design-shortcuts a b{font-size:22px;min-height:31px;padding-inline:6px}
 .postbox-home .postcard-cover{min-height:105px}
 .postbox-home .postcard{min-height:108px}
 .postbox-home .j-section{margin-top:19px}
 #journal-nav .dock-journal{width:44px;height:44px}
}
