/* /japanese product pages with no site menu (the free lesson, the download pages, ほっこり便り), 17 Nov 2026: cozy.css's class
   names redrawn in the website's look. Loaded after /japanese/site.css, which gives it the tokens, fonts and resets.
   A page opts in with <html class="paper"> (on <html>, not <body>, so a head-only splice can restyle a page whose
   <body> must stay byte-identical). Every rule here sits under html.paper, so it beats site.css's own .wrap, footer,
   .note and .tape, and the website's pages never see it. Looks like the Small Talk download page: white ruled paper,
   ink outlines, butter highlights. */

/* cozy's variable names, for the inline styles on these pages. --paper, --soft and --line are site.css's own. */
:root{
  --card:#fff; --kraft:var(--butter); --sky:var(--rule); --r:22px;
  --sakura:var(--butter); --sakura-deep:var(--ink); --peach:var(--butter);
  --matcha:var(--butter); --matcha-deep:var(--ink);
}
html.paper body{background:var(--paper)}
/* site.css keeps Japanese words whole (keep-all) and relies on BudouX <wbr>s, which these pages don't get */
html.paper body{word-break:normal; word-break:auto-phrase}
html.paper main.wrap{max-width:640px; padding:48px 16px 72px}
html.paper .jp{display:block; color:var(--soft); font-size:.92em}
html.paper .hand{font-family:"Instrument Serif",serif; font-style:italic; font-weight:400}

/* header */
html.paper .hello{text-align:center; margin-bottom:34px}
html.paper .hello h1{font:900 clamp(32px,8vw,44px)/1.35 "Noto Sans JP",sans-serif; margin:14px 0 10px}
html.paper .hello h1 .jp{color:var(--ink); font-size:.8em; line-height:1.15; margin-top:4px}
html.paper .hello p{margin:0 auto; max-width:36em; color:var(--body)}
html.paper .hello .jp{margin-top:6px}
html.paper .tea{width:84px; height:84px; display:block; margin:0 auto}
html.paper .tea path{stroke:var(--ink); stroke-width:3; stroke-linejoin:round}

/* cards: white, ink outline, a hard ink shadow, butter tape */
html.paper .card{position:relative; background:var(--card); border:1.5px solid var(--ink); border-radius:var(--r);
  padding:30px 24px 26px; margin:32px 0; box-shadow:0 6px 0 var(--ink)}
html.paper .card.tilt-l{transform:rotate(-.8deg)}
html.paper .card.tilt-r{transform:rotate(.7deg)}
html.paper .card > .tape{top:-13px; left:50%; width:104px; height:26px; transform:translateX(-50%) rotate(-3deg)}
html.paper .card > .tape.green{background:repeating-linear-gradient(45deg, rgba(250,230,122,.95) 0 8px, rgba(255,255,255,.7) 8px 16px);
  transform:translateX(-50%) rotate(2.5deg)}
html.paper .card > .tape.dots{background:radial-gradient(circle, rgba(255,255,255,.9) 2.5px, transparent 3px) 0 0/12px 12px, rgba(250,230,122,.92)}
/* the highlighter swipe, one per line when a heading wraps */
html.paper .card h2{display:table; margin:6px 0 8px; padding:0 4px; font:900 24px/36px "Noto Sans JP",sans-serif; letter-spacing:-.02em;
  background:linear-gradient(transparent 58%, var(--butter) 58% 92%, transparent 92%) 0 0/100% 36px}
html.paper .card h2 small{font:400 20px/36px "Instrument Serif",serif; font-style:italic; letter-spacing:0; color:var(--body); margin-left:10px}
html.paper .card p{margin:8px 0}
html.paper .btn{margin-top:12px; white-space:normal; text-align:center; line-height:1.4; background:var(--butter); color:var(--ink);
  border:2px solid var(--ink); box-shadow:0 4px 0 var(--ink)}
html.paper .btn:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ink)}

/* small print: a plain line, never site.css's note card */
html.paper .note{position:static; background:none; padding:0; box-shadow:none; transform:none; font-size:14px; color:var(--soft); margin-top:12px}
html.paper .label{display:inline-block; font:700 12px/1 "Inter",sans-serif; letter-spacing:.1em; text-transform:uppercase;
  background:var(--butter); color:var(--ink); padding:6px 10px; border-radius:999px}

/* lists: dashed rules between rows, none above the first */
html.paper .list, html.paper .phrases, html.paper .clips{list-style:none; padding:0; margin:14px 0 0}
html.paper .legal{margin:14px 0 0}
html.paper .list li, html.paper .phrases li, html.paper .clips li, html.paper .legal dt{border-top:1.5px dashed var(--line)}
html.paper .list li:first-child, html.paper .phrases li:first-child, html.paper .clips li:first-child, html.paper .legal dt:first-child{border-top:0}
html.paper .list li{display:flex; gap:14px; align-items:flex-start; padding:14px 0}
html.paper .list .em{flex:0 0 46px; height:46px; border-radius:50%; display:grid; place-items:center; font-size:22px;
  background:var(--butter); border:1.5px solid var(--ink)}
/* no emoji as icons: an empty .em gets its row's number instead */
html.paper .list{counter-reset:em}
html.paper .list li{counter-increment:em}
html.paper .list .em:empty::before{content:counter(em); font:800 18px/1 "Inter",sans-serif; color:var(--ink)}
html.paper .list strong{display:block; font-weight:700}
html.paper .phrases li{padding:12px 0}
html.paper .phrases strong{display:block; font:400 24px/1.3 "Instrument Serif",serif; font-style:italic}
html.paper .clips li{display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:10px 0}
html.paper .clips .n{font:800 15px/1 "Inter",sans-serif}
html.paper .clips .en{flex:1 1 12em; min-width:0; font-size:20px; line-height:1.3}
html.paper .clips audio{width:100%; height:40px}
html.paper .legal dt{font-weight:700; padding-top:12px}
html.paper .legal dt:first-child{padding-top:0}
html.paper .legal dd{margin:2px 0 12px; overflow-wrap:anywhere}
html.paper .price{margin:6px 0 10px}
html.paper .price b{font:900 40px/1.1 "Inter",sans-serif; letter-spacing:-.03em; margin-right:8px}

/* the page's own footer (anywhere in main, e.g. the free lesson's column): a plain centred line, never site.css's dark footer */
html.paper main footer{background:none; color:var(--soft); padding:0; text-align:center; font-size:14px; margin-top:44px}
html.paper main footer p{margin:0}
html.paper main footer a{color:var(--ink)}

/* ほっこり便り and the other cozy form pages (batch 2, 17 Nov 2026): cozy.css's form and letter pieces, redrawn.
   site.css collisions reset here: its .pick is the contact page's grid of cards with the radio stretched behind each
   (an absolute, invisible input), its .err and .done always show, its input[type=email] is a pill and its .letter is
   a tilted photo card. signup.js adds .on to the form's [data-signup-err] when a post fails; .done and .err stay
   hidden until something adds .on. The inputs, .err and .done rules sit under `form`: the free lesson (html.paper) has
   its own .own input and marks filled gaps .gap.done, and neither may change. Emoji never act as icons: the empty
   marks (.icon, .season) are drawn here. */
html.paper .center{text-align:center}
html.paper .back{display:inline-block; font-weight:700; text-decoration:none; background:var(--card); border:1.5px solid var(--ink);
  border-radius:999px; box-shadow:2px 2px 0 var(--ink); padding:7px 14px; font-size:14px; color:var(--ink)}
html.paper .season:empty{display:inline-block; width:.62em; height:.62em; margin-left:.2em; vertical-align:.05em;
  border-radius:50%; background:var(--butter); border:1.5px solid var(--ink)}
html.paper .icon{font-size:34px; line-height:1}
html.paper .icon:empty{display:inline-block; width:46px; height:46px; border-radius:50%; background:var(--butter); border:1.5px solid var(--ink);
  box-shadow:2px 2px 0 var(--ink)}

/* the handwritten promise between the letter contents and the form: an Instrument Serif line now */
html.paper .promise{text-align:center; font:400 27px/1.35 "Instrument Serif",serif; font-style:italic; color:var(--ink); margin:34px 8px 6px; transform:rotate(-1.5deg)}
html.paper .promise .jp{font:500 14px/1.7 "Noto Sans JP",sans-serif; font-style:normal; margin-top:6px}

/* form */
html.paper form .fld{margin:14px 0 0}
html.paper form label{display:block; font-weight:700; font-size:15px; margin-bottom:6px}
html.paper form label .jp{display:inline; font-weight:500; margin-left:6px}
html.paper form input[type=text], html.paper form input[type=email]{width:100%; min-width:0;
  font:500 16px "Noto Sans JP",sans-serif; color:var(--ink); background:var(--card); border:1.5px solid var(--ink); border-radius:14px; padding:12px 14px}
html.paper form input[type=text]:focus, html.paper form input[type=email]:focus{outline:3px solid var(--ink); outline-offset:2px}
html.paper .picks{display:grid; gap:8px}
html.paper .picks .pick{display:flex; align-items:center; gap:10px; margin:0; background:var(--card); border:1.5px solid var(--ink);
  border-radius:14px; padding:10px 14px; cursor:pointer; font-weight:500}
html.paper .picks .pick:has(input:checked){background:var(--butter); box-shadow:2px 2px 0 var(--ink)}
html.paper .picks .pick input{position:static; inset:auto; z-index:auto; flex:none; width:18px; height:18px; margin:0;
  -webkit-appearance:radio; appearance:auto; accent-color:var(--ink); background:none; border-radius:50%; cursor:pointer}
html.paper form .err{display:none; margin:12px 0 0; font:700 14px/1.6 "Noto Sans JP",sans-serif; color:var(--ink)}
html.paper form .done{display:none; text-align:center}
html.paper form .err.on, html.paper form .done.on{display:block}
html.paper form .done .icon:empty{width:64px; height:64px}
html.paper button.btn{cursor:pointer}
html.paper .btn.green{background:var(--card)}
html.paper .btn[disabled]{opacity:.6; cursor:default}

/* the shortcut pill for people arriving from the language exchange reel */
html.paper .shortcut{display:inline-block; margin-top:16px; padding:10px 18px; border-radius:999px; background:var(--card);
  border:1.5px dashed var(--ink); color:var(--ink); font-weight:700; font-size:15px; text-decoration:none; line-height:1.4}
html.paper .shortcut .jp{font-weight:500; font-size:13px}
html.paper .shortcut:hover{border-style:solid; background:var(--butter)}
html.paper .shortcut.closed{cursor:default; font-weight:500; max-width:30em; border-color:var(--line)}
html.paper .shortcut.closed:hover{border-style:dashed; background:var(--card)}

/* airmail envelope edge (butter and the site's pale blue, never pink and sky), its stamp and the sticky note */
html.paper .airmail{position:relative; border:1.5px solid var(--ink); border-radius:14px; padding:12px; margin:32px 0; box-shadow:0 6px 0 var(--ink);
  background:repeating-linear-gradient(135deg, var(--butter) 0 14px, var(--card) 14px 24px, var(--fade) 24px 38px, var(--card) 38px 48px)}
html.paper .airmail > .inner{position:relative; background:var(--card); border-radius:8px; padding:26px 20px 22px}
html.paper .airmail .stamp{position:absolute; top:14px; right:14px; width:66px; height:78px; transform:rotate(6deg);
  background:var(--butter); border:3px dotted var(--card); outline:1.5px solid var(--ink); display:grid; place-items:center; text-align:center;
  font:700 11px/1.2 "Noto Sans JP",sans-serif; color:var(--ink)}
html.paper .airmail .stamp b{display:block; font:900 24px/1.1 "Inter","Noto Sans JP",sans-serif}
html.paper .friends{position:absolute; top:22px; right:18px; transform:rotate(5deg); background:var(--butter); color:var(--ink);
  padding:8px 12px; border:1.5px solid var(--ink); border-radius:6px; font-size:15px; line-height:1.35; text-align:center; box-shadow:2px 2px 0 var(--ink)}

/* the sample letter: lines on the page's own 32px rules, never site.css's tilted photo card */
html.paper .letter{position:static; transform:none; box-shadow:none; padding:2px 0 0; font:500 17px/32px "Noto Sans JP",sans-serif;
  background:repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px)}
html.paper .letter .en{color:var(--soft); font-size:20px}

/* the lesson pages' notebook (products/_notebook/notebook.css: the free lesson and /day-2-free), 17 Nov 2026, in the website's
   look, like the Small Talk download page (steps.js puts body.nb on them; no other html.paper page has a .nb). Each
   page inlines notebook.css in its <head> after this file, so each rule here is one class stronger than the .nb rule it
   answers (and !important where that is). */
html.paper body.nb{background:var(--paper) !important; color:var(--ink); --nb-ink:var(--ink); --nb-soft:var(--soft); --nb-rule:var(--rule);
  --nb-matcha:var(--ink); --nb-pink:var(--ink); --nb-pink-bg:var(--butter); --nb-sticky:var(--butter)}
html.paper .nb .nb-tape{background:repeating-linear-gradient(45deg, rgba(250,230,122,.95) 0 8px, rgba(255,255,255,.7) 8px 16px)}
html.paper .nb .side header{min-height:200px}
html.paper .nb .side header .day{font:700 12px/1 "Noto Sans JP",sans-serif}
html.paper .nb .side header h1{font:400 clamp(38px,11vw,46px)/1.02 "Instrument Serif",serif; font-style:italic; letter-spacing:-.5px}
html.paper .nb .side header h1 small{font:500 14px/1.6 "Noto Sans JP",sans-serif; font-style:normal; letter-spacing:0; margin-top:10px}
html.paper .nb .nb-pol figcaption{font:700 12px "Noto Sans JP",sans-serif}
html.paper .nb .levels button{font:700 17px/1.3 "Noto Sans JP",sans-serif}
html.paper .nb .levels button small{font:500 11px/1.4 "Noto Sans JP",sans-serif}
html.paper .nb .levels button[aria-selected="true"]{color:var(--ink)}
html.paper .nb .nb-h, html.paper .nb .nb-convo-h{display:inline-block; font:900 20px/32px "Noto Sans JP",sans-serif; letter-spacing:-.03em; color:var(--ink); padding:0 3px;
  background:linear-gradient(transparent 58%, var(--butter) 58% 92%, transparent 92%)}
html.paper .nb .nb-h small{font:500 12px "Noto Sans JP",sans-serif; letter-spacing:0}
html.paper .nb .nb-row{border:2px solid var(--ink); border-radius:12px; padding:10px 12px; box-shadow:0 4px 0 var(--ink)}
html.paper .nb .nb-row:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ink)}
html.paper .nb .nb-row .n{font:400 18px/1.4 "Instrument Serif",serif; font-style:italic; color:var(--soft); width:20px}
html.paper .nb .nb-row .t{font:700 16px/1.45 "Noto Sans JP",sans-serif}
html.paper .nb .nb-row .go{font:700 12px/1 "Noto Sans JP",sans-serif; color:var(--ink); background:var(--butter); border:2px solid var(--ink); padding:7px 10px}
html.paper .nb .nb-row.ok{background:#fff}
html.paper .nb .nb-row.ok .go{background:var(--ink); color:#fff}
html.paper .nb .nb-sheet{font:700 14px "Noto Sans JP",sans-serif}
html.paper .nb .nb-bar{background:#fff; border-bottom:2px solid var(--ink); font:700 14px/1 "Noto Sans JP",sans-serif}
html.paper .nb .nb-no{font:700 12px/1 "Inter","Noto Sans JP",sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--soft); margin:0 0 4px}
/* inline, so the highlighter follows each line of a wrapped title instead of the full width beside the polaroid */
html.paper .nb .col section h2{display:inline !important; font:900 26px/1.5 "Noto Sans JP",sans-serif !important; letter-spacing:-.02em; padding:0 4px;
  -webkit-box-decoration-break:clone; box-decoration-break:clone; background:linear-gradient(transparent 60%, var(--butter) 60% 90%, transparent 90%)}
html.paper .nb .col section h2 + p{margin-top:10px}
html.paper .nb .col section.done-card{text-align:left}
html.paper .nb .done-card .check{display:flex; width:fit-content; margin:14px auto 0}
html.paper .nb .col section.join{background:#fff !important; border:2px solid var(--ink) !important; border-radius:12px; box-shadow:0 4px 0 var(--ink) !important;
  padding:22px 18px 20px !important; margin:34px 0 0 !important}
html.paper .nb .col section.join h2{font-size:22px !important; margin:0 auto 8px !important}
html.paper .nb .col .line .en, html.paper .nb .col .line b{font-family:"Instrument Serif",serif; font-style:italic; font-weight:400}
html.paper .nb .play{width:40px !important; height:40px !important; border:2px solid var(--ink) !important; background:var(--butter) !important; color:var(--ink) !important; box-shadow:0 3px 0 var(--ink)}
html.paper .nb .play:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink)}
html.paper .nb .play.on{background:var(--ink) !important; color:var(--butter) !important}
html.paper .nb .play.slow{width:auto !important; height:auto !important; border:0 !important; background:none !important; box-shadow:none; color:var(--soft) !important;
  font:700 12px/1 "Noto Sans JP",sans-serif !important}
html.paper .nb .play.slow.on{color:var(--ink) !important}
html.paper .nb .chip, html.paper .nb .word{border-radius:10px !important}
html.paper .nb .chip.on{border-color:var(--ink) !important; background:var(--butter) !important}
html.paper .nb .btn{background:var(--butter) !important; color:var(--ink) !important; border:2px solid var(--ink); box-shadow:0 4px 0 var(--ink) !important}
html.paper .nb .btn:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ink) !important}
html.paper .nb .nb-done{font:700 17px/1 "Noto Sans JP",sans-serif; border:2px solid var(--ink); border-radius:12px; box-shadow:0 4px 0 var(--ink); padding:16px}
html.paper .nb .nb-done.on{color:#fff}
html.paper .nb .nb-pn{font:700 15px "Noto Sans JP",sans-serif}
html.paper .nb .nb-convo .line .t{flex:0 1 auto; border-width:2px !important}
html.paper .nb .nb-convo .line .who{font:700 11px/1 "Noto Sans JP",sans-serif; letter-spacing:.04em}
html.paper .nb .nb-convo .line .en{font:400 21px/1.25 "Instrument Serif",serif; font-style:italic}
html.paper .nb .nb-convo .line:has(.who.b) .ja{color:var(--ink)}
html.paper .nb .nb-alts .line .en{font-size:18px}
html.paper .nb .nb-alts-h{font:700 12px/1.4 "Noto Sans JP",sans-serif}

/* phones (N17): the plain footer rules its own lines, each line box one 32px rule tall, so every line sits on a rule
   wherever the page above it ends (the page's rules run from the top of the document, so a footer line could land on one).
   It runs edge to edge through main.wrap's 16px sides, and on through main's 72px bottom padding to the end of the page,
   so its rules are the page's full width and nothing below it starts a second set (paper-b.css adds its body padding). */
@media (max-width:600px){
  html.paper main footer{background:var(--paper); line-height:32px; margin-left:-16px; margin-right:-16px; margin-bottom:-72px; padding:0 16px 72px}
}
