:root {
  --ink: #34312c;
  --muted: #7a7266;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #e3dccd;
  --accent: #F7DC8A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Geist, system-ui, sans-serif;
}

a { color: inherit; }

header, main, footer { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
         font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; }

h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 28px; }
h2 { font-size: 20px; margin: 32px 0 8px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid a { display: block; text-decoration: none; background: var(--card); border-radius: 14px;
          overflow: hidden; border: 1px solid var(--line); }
.grid a:hover { border-color: #CFCBBF; }
.grid img { display: block; width: 100%; height: auto; }
.grid .name { display: block; padding: 14px 16px 0; font-weight: 600; }
.grid .price { display: block; padding: 0 16px 14px; color: var(--muted); }

article { max-width: 760px; }
.crumbs { margin: 0; color: var(--muted); }
.photos { display: grid; gap: 16px; margin: 24px 0; }
.photos img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.copy ul { padding-left: 20px; }
.copy p { margin: 0 0 12px; }

.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
          padding: 12px 22px; border-radius: 10px; font-weight: 600; }
.button:hover { background: #222; }
.buy { margin: 24px 0; }

.more { margin-top: 56px; }

footer { margin-top: 72px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); }

header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header nav { display: flex; gap: 20px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--ink); }

.guides { list-style: none; padding: 0; margin: 0; }
.guides li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guides a { text-decoration: none; font-weight: 600; }
.guides a:hover { text-decoration: underline; }

.faq { margin-top: 40px; }
.faq h3 { font-size: 17px; margin: 20px 0 4px; }
.faq p { margin: 0; }

code { font: 14px/1.5 ui-monospace, Menlo, monospace; background: #F1EFE8; padding: 2px 5px; border-radius: 5px;
       overflow-wrap: anywhere; }
.copy ol { padding-left: 22px; }
footer p { margin: 6px 0 0; font-size: 14px; }

/* Product pages: a bar that stays at the top with the price */
header.bar { position: sticky; top: 12px; z-index: 5; margin: 12px auto 0; max-width: 1040px; padding: 8px 8px 8px 16px;
  border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 30px -14px rgba(0,0,0,.25); justify-content: flex-start; gap: 10px; }
header.bar .brand { font-size: 19px; gap: 8px; }
header.bar .mark { width: 26px; height: 26px; }
header.bar .name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.bar .button { margin-left: auto; flex: none; border-radius: 999px; padding: 10px 18px; font-size: 16px; }
article h1 { margin-top: 56px; margin-bottom: 12px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 32px; }
.shots .big { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 30px 60px -36px rgba(60,50,30,.35); }
.thumbs { display: flex; gap: 10px; margin: 14px 0 8px; }
.thumbs a { display: block; width: 96px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.thumbs a[aria-current=true] { border-color: var(--ink); opacity: 1; }
.thumbs img { display: block; width: 100%; height: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 6px 0 0; color: var(--muted); }
.buy.end { text-align: center; margin: 56px 0; }
@media (max-width: 600px) {
  header.bar { margin: 8px 10px 0; top: 8px; }
  header.bar .name { display: none; }
  article h1 { margin-top: 36px; }
  .lede { font-size: 18px; }
}

/* Home page: the two apps first */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 56px; }
.apps a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 22px; }
.apps a:hover { border-color: #CFCBBF; }
.apps img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 18px; }
.apps h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 8px 6px; }
.apps p { color: var(--muted); margin: 0 8px 18px; }
.apps .button { margin-left: 8px; border-radius: 999px; }
@media (max-width: 700px) { .apps { grid-template-columns: 1fr; } }
header nav a { white-space: nowrap; }
@media (max-width: 600px) { header:not(.bar) .brand { font-size: 22px; } header nav { gap: 14px; } header nav a:first-child { display: none; } }

/* Buying here: a form, so the button looks like the others */
.buyform { display: inline; margin: 0; }
button.button { font: inherit; border: 0; cursor: pointer; }
header.bar .buyform { margin-left: auto; flex: none; }
header.bar .buyform .button { border-radius: 999px; padding: 10px 18px; font-size: 16px; }
.buy.end .alt, .alt { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.alt a { color: var(--muted); }
.apps { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Bot Office */
.demo { margin: 8px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #d9d3c9;
  box-shadow: 0 30px 60px -36px rgba(60,50,30,.35); }
.demo iframe { display: block; width: 100%; height: 560px; border: 0; }
@media (max-width: 600px) { .demo iframe { height: 460px; } }

/* Thank-you page after paying */
.order { padding-bottom: 24px; }
.order h1 { margin-top: 40px; }
.order .small { color: var(--muted); font-size: 15px; margin-top: 28px; }

/* Template groups under the home page heading */
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
.groups a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.groups a:hover { border-color: #CFCBBF; }

/* Washi wordmark: "washi" heavy over a strip of pink washi tape, the second word lighter (same as Washi Notes) */
.word { position: relative; isolation: isolate; font: 800 24px/1 Geist, system-ui, sans-serif; letter-spacing: -.035em; white-space: nowrap; color: var(--ink); }
.word b { position: relative; display: inline-block; font-weight: 800; }
.word b::before { content: ''; position: absolute; z-index: -1; left: -5px; right: -6px; top: 42%; height: .56em; transform: rotate(-2.5deg); border-radius: 2px;
  background: repeating-linear-gradient(135deg, rgba(221,139,160,.6) 0 6px, rgba(221,139,160,.36) 6px 12px); }
.word i { font-style: normal; font-weight: 500; color: var(--muted); }
.apps h2 .word { font-size: 30px; }
header.bar .word { font-size: 20px; }
header.bar { background: rgba(255,253,248,.75); }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2.section { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 18px; }
h2.section a { text-decoration: none; }
.groups { margin-top: 0; }
.button { background: var(--ink); }
@media (max-width: 600px) { header nav a:first-child { display: inline; } header nav { gap: 12px; font-size: 15px; } header:not(.bar) .word { font-size: 20px; } }
