#seven-notebook {
  --site-font: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", sans-serif;
  font-family: var(--site-font);
}
#seven-notebook .notebook-window {
  inline-size: 100%;
}
#seven-notebook .notebook-paper {
  --paper: #fcf7eb; --cover: #f7efdb; --ink: #30291d; --muted: #634e3b;
  --line: #d8cdb6; --rule: #b8a27d35; --accent: #775021; --edge: #c487703c;
  --left: 6%; --right: 6%;
  container-type: inline-size; min-height: 100svh; color: var(--ink); background: var(--paper);
  display: flex; flex-direction: column;
  font: 400 15px/1.6 var(--site-font);
}
#seven-notebook .notebook-paper * { box-sizing: border-box; }
#seven-notebook .notebook-paper :is(h2,h3,p,figure,ul,ol) { margin: 0; }
#seven-notebook .notebook-paper :is(button,a,input) { font: inherit; }
#seven-notebook .notebook-paper button { color: inherit; border: 0; background: none; cursor: pointer; }
#seven-notebook .notebook-paper a { color: var(--accent); text-underline-offset: 3px; }
#seven-notebook .notebook-bar {
  position: sticky; z-index: 2; top: 0; min-height: 61px; background: var(--cover);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px; align-items: center;
  border-bottom: 1px solid var(--line);
}
#seven-notebook .notebook-wordmark { font: 700 clamp(14px, 3cqw, 25px)/1.1 var(--site-font); letter-spacing: -.055em; white-space: nowrap; }
#seven-notebook .notebook-bear { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 0; border-radius: 8px; }
#seven-notebook .notebook-bear:hover { background: var(--rule); }
#seven-notebook .notebook-bear img { width: clamp(37px, 6cqw, 49px); height: auto; display: block; }
#seven-notebook .notebook-nav { display: flex; gap: 4px; justify-self: end; white-space: nowrap; }
#seven-notebook .notebook-nav button { min-height: 44px; padding: 0 5px; font-size: 13px; }
#seven-notebook .notebook-nav button[aria-current="page"] { text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
#seven-notebook .notebook-content {
  flex: 1; min-block-size: 500px; padding: 16px var(--right) 26px var(--left);
  background-image: repeating-linear-gradient(transparent 0 27px, var(--rule) 27px 28px);
}
#seven-notebook .layout-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
#seven-notebook .layout-toggle button, #seven-notebook .page-action {
  padding: 6px 13px; min-height: 42px; font-size: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
#seven-notebook .layout-toggle button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
#seven-notebook p.demo-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
#seven-notebook .notebook-offer { padding-block: 18px 22px; border-bottom: 1px dashed var(--line); }
#seven-notebook .notebook-offer h3, #seven-notebook .notebook-detail h2, #seven-notebook .notebook-note h2 {
  font: 700 clamp(22px, 3.8cqw, 36px)/1.16 var(--site-font);
  letter-spacing: -.035em;
}
#seven-notebook p.price { margin: 5px 0; color: var(--accent); font-weight: 700; line-height: 1.15; }
#seven-notebook .price b { font-size: clamp(23px, 4cqw, 35px); }
#seven-notebook .price small { font-size: 13px; }
#seven-notebook .offer-copy .description, #seven-notebook .description { color: var(--muted); line-height: 1.55; }
#seven-notebook .offer-copy .description { margin-block: 8px 10px; }
#seven-notebook button.artwork-set { display: block; width: 100%; padding: 0; text-align: left; }
#seven-notebook .example-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#seven-notebook .example-mosaic.six, #seven-notebook .example-mosaic.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#seven-notebook .example-mosaic img {
  display: block; width: 100%; min-width: 0; aspect-ratio: 10/11;
  object-fit: cover; object-position: 50% 40%; background: var(--cover);
}
#seven-notebook .notebook-detail .example-mosaic img { object-fit: contain; }
#seven-notebook .example-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding-block: 5px 0; }
#seven-notebook .artwork-set:hover .example-label { text-decoration: underline; }
#seven-notebook .compact-offers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  list-style: none; padding: 14px 0 0;
}
#seven-notebook [data-works-layout][hidden] { display: none; }
#seven-notebook .compact-offers li { border-bottom: 1px solid var(--line); padding: 0 0 9px; }
#seven-notebook .compact-offers h3 { margin-top: 5px; font-size: 16px; line-height: 1.35; }
#seven-notebook .compact-offers .price b { font-size: 21px; }
#seven-notebook .compact-offers .description { font-size: 13px; }
#seven-notebook .compact-offers .example-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
#seven-notebook .compact-offers .example-mosaic.six, #seven-notebook .compact-offers .example-mosaic.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#seven-notebook .compact-offers .example-mosaic img { aspect-ratio: 1; }
#seven-notebook .detail-bar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
#seven-notebook .notebook-detail > .example-mosaic { margin-top: 14px; }
#seven-notebook .detail-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#seven-notebook .paper-block {
  background: var(--paper); border: 1px solid var(--line); padding: 14px;
  border-radius: 2px; margin-top: 14px;
}
#seven-notebook .paper-block h3 { font-size: 16px; margin-bottom: 6px; }
#seven-notebook .paper-block ul, #seven-notebook .paper-block ol { padding-inline-start: 1.4em; }
#seven-notebook .quote-row { display: flex; align-items: center; flex-wrap: wrap; margin: 8px 0 0; gap: 8px 14px; }
#seven-notebook .quote-row input { width: 75px; padding: 6px 7px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
#seven-notebook .quote-row output { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
#seven-notebook .notebook-note { display: grid; align-content: start; gap: 12px; padding-block: 12px; }
#seven-notebook .notebook-note .paper-block { margin-top: 0; }
#seven-notebook .notebook-note .note-line { max-width: 38rem; }
#seven-notebook .notebook-info {
  display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 1.9fr);
  align-items: center; gap: 14px 22px;
  padding-block: 21px calc(24px + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid var(--line);
}
#seven-notebook .notebook-info h2 { font: 700 21px/1.2 var(--site-font); }
#seven-notebook .notebook-info p { color: var(--muted); margin-top: 5px; }
#seven-notebook .social-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0; gap: 8px; list-style: none;
}
#seven-notebook .social-links a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 60px; padding: 7px 6px; border: 1px solid var(--line);
  border-radius: 6px; background: #f2ebe1; color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
#seven-notebook .social-links a:focus-visible,
#seven-notebook .social-links a:hover { border-color: var(--taupe); }
#seven-notebook .social-mark {
  display: grid; place-items: center; flex: none; inline-size: 32px; block-size: 32px;
  border-radius: 50%; background: #e5dbcf;
}
#seven-notebook .social-mark img { display: block; opacity: .83; }
#seven-notebook .social-instagram { background: #ecded7; }
#seven-notebook .social-line { background: #dfe7d9; }
#seven-notebook .preview-sources { margin-top: 12px; color: var(--muted); font-size: 12px; }


@container (max-width: 550px) {
  #seven-notebook .notebook-bar { padding-inline: 4%; }
  #seven-notebook .notebook-nav { gap: 0; }
  #seven-notebook .notebook-nav button { font-size: 12px; padding-inline: 4px; }
  #seven-notebook .compact-offers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #seven-notebook .example-mosaic:not(.six):not(.three) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #seven-notebook .notebook-content { padding-top: 12px; }
}

#seven-notebook .notebook-window {
  border: 0;
}
#seven-notebook .notebook-paper {
  --ink: #4b4643;
  --linen: #e0d1c2;
  --sand: #b89d81;
  --cover: #dfcfc0;
  --taupe: #887869;
  --paper: #f8f4ee;
  --line: #ddd2c6;
  --rule: #88786919;
  --muted: #64594f;
  --accent: #685748;
  --left: max(28px, 6.2%);
  --right: max(32px, 6.2%);
  background: var(--paper);
  position: relative;
  isolation: isolate;
}
#seven-notebook .notebook-paper,
#seven-notebook .notebook-bar {
  background-image: var(--paper-grain);
  background-size: 430px auto;
  background-blend-mode: multiply;
}
#seven-notebook .notebook-bar {
  --bar-pad: max(24px, 6.2%);
  background-color: var(--page-chrome);
  padding-block: calc(4px + env(safe-area-inset-top, 0px)) 4px;
  padding-inline: max(var(--bar-pad), env(safe-area-inset-left, 0px))
    max(var(--bar-pad), env(safe-area-inset-right, 0px));
}
#seven-notebook .notebook-nav button[aria-current="page"] {
  text-decoration-color: var(--taupe);
}
#seven-notebook .notebook-content {
  padding-top: 21px;
  background-image: linear-gradient(to bottom, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 21px 21px;
}
#seven-notebook .layout-toggle button {
  min-height: 44px;
  border-color: var(--linen);
  border-radius: 4px;
}
#seven-notebook .layout-toggle button[aria-pressed="true"] {
  border-color: var(--sand);
  background: var(--linen);
  color: var(--ink);
}
#seven-notebook .notebook-offer {
  padding-top: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
#seven-notebook .notebook-offer h3,
#seven-notebook .notebook-detail h2,
#seven-notebook .notebook-note h2 {
  font-weight: 700;
}
#seven-notebook .example-mosaic { gap: clamp(6px, 1.1cqw, 13px); }
#seven-notebook .example-mosaic img {
  background: var(--linen);
  padding: 0;
  border: 3px solid #fffdf9;
  box-shadow: 0 1px 2px #4b46431a;
}
#seven-notebook .compact-offers .example-mosaic img { border-width: 1px; }
#seven-notebook .notebook-info {
  margin-inline: var(--left) var(--right);
}
#seven-notebook .paper-block { background: #f5eee4; }
@container (max-width: 550px) {
  #seven-notebook .notebook-bar { --bar-pad: 5.5%; }
  #seven-notebook .notebook-content { padding-top: 15px; }
  #seven-notebook .notebook-info { grid-template-columns: minmax(0, 1fr); }
  #seven-notebook .social-links a {
    flex-direction: column; gap: 4px; min-block-size: 67px; font-size: 12px;
  }
}

#seven-notebook .layout-toggle button {
  display: inline-grid; place-items: center; min-inline-size: 44px; padding: 0;
}
#seven-notebook .layout-mark {
  display: block; inline-size: 20px; block-size: 20px;
}
#seven-notebook .layout-rows {
  background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 7px) center / 17px 17px no-repeat;
}
#seven-notebook .layout-grid {
  background:
    linear-gradient(currentColor, currentColor) 1px 1px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 1px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 12px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 12px / 7px 7px no-repeat;
}
:root {
  --page-chrome: #efe7dc;
  --paper-grain: url("./assets/paper.webp");
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; background: #fbfaf8; min-block-size: 100vh; }
#seven-notebook { padding: 0; }
#seven-notebook .layout-toggle button { position: relative; }
@media (hover: hover) and (pointer: fine) {
  #seven-notebook .layout-toggle button[aria-pressed="false"]:hover::after {
    content: attr(data-tooltip);
  }
}
#seven-notebook .layout-toggle button[aria-pressed="false"]:focus-visible::after {
  content: attr(data-tooltip);
}
#seven-notebook .layout-toggle button::after {
  position: absolute;
  z-index: 1;
  top: calc(100% + 3px);
  left: 0;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 550px) {
  html, body { background-color: var(--page-chrome); }
  #seven-notebook { padding: 0; }
  #seven-notebook .notebook-window { border: 0; }
  #seven-notebook .notebook-paper {
    --left: max(5.5%, env(safe-area-inset-left, 0px));
    --right: max(5.5%, env(safe-area-inset-right, 0px));
    min-block-size: 100svh;
  }
}
