/* Skriv's showcase on h5bits.com/skriv — a notebook page: warm paper, faint ruled lines, the red margin rule,
   and Skriv's accent #DD4C4F (as text, its deep partner #B8383B, 4.5:1 on the paper). */
:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --ink: #1d1b19;
  --muted: #5d5751;
  --rule: #e6dfd3;
  --line: rgba(120, 150, 190, .14);
  --accent: #DD4C4F;
  --accent-ink: #B8383B;
  --accent-soft: #fbe5e3;
  --mark: #ffe58a;
  color: var(--ink);
  background: var(--paper);
  font: 400 18px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--paper);
  /* ruled lines every 32 px and the red margin rule */
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(221, 76, 79, .35) 54px, rgba(221, 76, 79, .35) 56px, transparent 56px),
    repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
code, kbd { font: 500 .86em/1 "SF Mono", ui-monospace, Menlo, monospace; }
code { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 5px; padding: .12em .36em; }
kbd { background: #fff; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: .14em .4em; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 40px 88px; }

section { padding: 64px 0 40px; border-top: 1px solid var(--rule); }
section:first-child { border-top: 0; padding-top: 18px; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; }
h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.section-lede { color: var(--muted); font-size: 20px; max-width: 38em; margin: 0 0 34px; }
.note { color: var(--muted); font-size: 14.5px; margin: 22px 0 0; max-width: 62em; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .08em; }

/* 1 · the wish list */
.ask-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 14px 36px rgba(60, 40, 20, .06); }
.ask-q { padding: 26px 28px; background: var(--paper-2); position: relative; }
.ask-q .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.ask-q h3 { font-family: "New York", "Iowan Old Style", Georgia, serif; font-size: 24px; font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
.ask-q p { color: var(--muted); font-size: 16px; margin: 10px 0 0; }
.ask-a { padding: 26px 30px; }
.ask-a h4 { margin: 0 0 10px; font-size: 18px; color: var(--accent-ink); display: flex; align-items: center; gap: 8px; }
.ask-a h4::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ask-a ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 16.5px; }
.ask-a li::marker { color: var(--accent); }

/* 2 · the window */
.sheet { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 12px; box-shadow: 0 18px 50px rgba(60, 40, 20, .10); }
.sheet img { border-radius: 8px; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; font-size: 16px; color: var(--muted); }
.legend b { color: var(--ink); display: block; margin-bottom: 2px; }

/* 3 · features */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.feat { margin: 0; }
.feat img { border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(60, 40, 20, .08); background: #fff; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.feat figcaption { padding: 14px 4px 0; }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 15.5px; margin: 6px 0 0; }

/* 4 · writing */
.cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.paper-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 14px 36px rgba(60, 40, 20, .08); padding: 26px 28px; }
.paper-card pre { margin: 0; font: 15px/1.75 "SF Mono", ui-monospace, Menlo, monospace; white-space: pre-wrap; color: #3a3632; }
.paper-card .h { color: var(--accent-ink); font-weight: 700; }
.paper-card .h2 { color: var(--accent-ink); font-weight: 600; }
.paper-card .tag { color: var(--accent-ink); background: var(--accent-soft); border-radius: 5px; padding: 1px 5px; }
.paper-card .hl { background: var(--mark); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 17px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 17px; height: 17px; border-radius: 4px; border: 1.8px solid var(--accent); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD4C4F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 5 · agents */
.agents { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.agents p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.agents p.eyebrow { color: var(--accent-ink); font-size: 13px; margin: 0 0 12px; }
.agents pre { margin: 0; background: #23201d; color: #f1ece4; border-radius: 16px; padding: 22px 26px; font: 14.5px/1.75 "SF Mono", ui-monospace, Menlo, monospace; overflow-x: auto; box-shadow: 0 18px 44px rgba(30, 20, 10, .18); }
.agents pre i { color: #a69e93; font-style: normal; }
.agents pre b { color: #ff9a8f; font-weight: 600; }

/* 6 · yours */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.three > div { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; }
.three h3 { font-size: 18px; color: var(--accent-ink); margin-bottom: 6px; }
.three p { color: var(--muted); font-size: 16px; margin: 0; }

@media (max-width: 1000px) {
  .page { padding-left: 32px; }
  body { background-image: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); }
  .ask, .cols, .agents { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feat-grid, .legend { grid-template-columns: 1fr; }
  .page { padding: 20px 18px 32px; }
}

/* 0 · try it */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.demo-pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.demo-cap { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.demo-pane textarea { min-height: 380px; resize: vertical; border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; background: #23201d; color: #f1ece4; font: 15px/1.7 "SF Mono", ui-monospace, Menlo, monospace; box-shadow: 0 14px 36px rgba(30, 20, 10, .14); }
.demo-pane textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.note-view { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px 26px; min-height: 380px; box-shadow: 0 14px 36px rgba(60, 40, 20, .08); font-size: 16.5px; line-height: 1.55; }
.note-view p { margin: 0 0 4px; }
.note-view .gap { height: 10px; }
.note-view .h1 { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; margin-bottom: 8px; }
.note-view .h2 { font-size: 21px; font-weight: 750; color: var(--accent); margin: 12px 0 4px; }
.note-view .h3 { font-size: 18px; font-weight: 700; color: var(--accent-ink); margin: 10px 0 4px; }
.note-view mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.note-view .pill { color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; font-size: .92em; }
.note-view .wl { color: var(--accent-ink); text-decoration: underline dashed; text-underline-offset: 3px; }
.note-view .tex { font-family: "Times New Roman", serif; font-style: italic; }
.note-view .todo { display: flex; gap: 10px; align-items: baseline; }
.note-view .box { width: 16px; height: 16px; border: 1.6px solid #b9b2a8; border-radius: 4px; flex: none; transform: translateY(2px); }
.note-view .todo.done .box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--accent); }
.note-view .todo.done > span:last-child { color: #9a938a; text-decoration: line-through; }
.note-view .li { padding-left: 18px; position: relative; } .note-view .li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.note-view .q { border-left: 3px solid var(--rule); padding-left: 12px; color: var(--muted); }
.note-view .co { background: #ecf6ef; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.note-view .co p { margin: 0; } .note-view .co-t { font-weight: 700; color: #2d7a4a; }
.note-view .dadd { background: #e5f4e8; box-shadow: -8px 0 0 #e5f4e8, 8px 0 0 #e5f4e8; border-radius: 2px; }
.note-view .ddel { background: #fbe6e5; box-shadow: -8px 0 0 #fbe6e5, 8px 0 0 #fbe6e5; border-radius: 2px; text-decoration: line-through; text-decoration-color: #b8383b; }
.note-view .ddel, .note-view .ddel * { color: #a8484a !important; }
.hist { margin-top: 34px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 26px; }
.hist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hist-head h3 { font-size: 22px; } .hist-head p { color: var(--muted); font-size: 16px; margin: 4px 0 0; max-width: 40em; }
.btn { border: 0; border-radius: 9px; background: var(--accent); color: #fff; font: 600 15px/1 inherit; padding: 11px 16px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn:disabled { opacity: .4; cursor: default; }
#hist-range { width: 100%; margin: 18px 0 14px; accent-color: var(--accent); }
.hist-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.hist-label { font-size: 15px; margin: 0 0 8px; color: var(--muted); } .hist-label b { color: var(--ink); }
.plus { color: #2d7a4a; font-weight: 700; } .minus { color: #b8383b; font-weight: 700; }
.hist-view .note-view { min-height: 300px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.hist-list li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 14.5px; display: grid; }
.hist-list li span { color: var(--muted); } .hist-list li small { color: #8d867d; }
.hist-list li.on { background: var(--accent); border-color: var(--accent); color: #fff; } .hist-list li.on span, .hist-list li.on small { color: #fde8e7; }

/* 7 · keys */
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.key-grid dl { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 18px 22px; }
.key-grid dt { font-weight: 800; color: var(--accent-ink); margin-bottom: 8px; }
.key-grid dl > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.key-grid dd { margin: 0; color: var(--muted); font-size: 16px; }

/* 8 · facts */
.fact-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.fact-list > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.fact-list dt { font-weight: 800; margin-bottom: 4px; }
.fact-list dd { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 1000px) {
  .demo-grid, .hist-grid { grid-template-columns: 1fr; }
  .key-grid, .fact-list { grid-template-columns: 1fr; }
  .hist-head { flex-direction: column; }
}

/* 6 · yours, with the phone */
.yours-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: center; }
.yours-grid .three { grid-template-columns: 1fr; }
.phone { margin: 0; background: #1d1b19; border-radius: 42px; padding: 10px; box-shadow: 0 22px 50px rgba(30, 20, 10, .22); }
.phone img { border-radius: 33px; }
@media (max-width: 1000px) { .yours-grid { grid-template-columns: 1fr; } .phone { max-width: 260px; } }
