@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  --paper: #f8f7f2;
  --ink: #283e32;
  --muted: #81847b;
  --line: #e5e7de;
  --green: #3e6049;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #be8c4d;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  width: 248px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 38px 23px;
  background: #f0f2e9;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 25px;
  align-items: center;
}
.brand > span {
  font-size: 22px;
}
.brand small {
  display: block;
  font:
    7px "DM Sans",
    sans-serif;
  letter-spacing: 1.45px;
  margin-top: 9px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: var(--muted);
  background: transparent;
  color: #626f60;
  display: flex;
  gap: 12px;
  padding: 15px 13px;
  align-items: center;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}
.nav span:nth-child(2) {
  flex: 1;
}
.nav.active {
  background: #e0e7d8;
  color: #304f39;
  font-weight: 600;
}
.sidebar-note {
  margin-top: auto;
  padding: 30px 12px 38px;
}
.sidebar-note > span {
  color: #a9af8a;
  font-size: 33px;
}
.sidebar-note h3 {
  font:
    26px/1.3 Georgia,
    serif;
  font-weight: 400;
}
.sidebar-note p {
  color: #8b9182;
  font-size: 11px;
  line-height: 1.9;
}
.connection {
  border-top: 1px solid #dde1d4;
  padding-top: 20px;
  color: #74846c;
  font-size: 11px;
}
main {
  margin-left: 248px;
  padding: 0 50px;
}
header {
  height: 87px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #83897d;
}
.header-note {
  letter-spacing: 0;
  font-size: 11px;
}
.header-note i {
  font-size: 24px;
  padding-left: 16px;
  color: #b19a67;
}
.intro {
  letter-spacing: 2px;
  color: #8a967d;
  margin-bottom: 15px;
}
h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin: 0 0 19px;
}
h1 em {
  font-weight: 400;
  color: #768869;
}
.intro p,
.muted {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.form-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
}
.number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f3eb;
  font-size: 10px;
  color: #748268;
}
h2 {
  font:
    21px Georgia,
    serif;
  font-weight: 400;
  margin: 0 0 7px;
}
.form-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.draft-note {
  margin-left: auto;
  max-width: 80px;
  text-align: right;
  font-size: 9px;
  color: #919a86;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #475044;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e2e5dc;
  background: #fdfdfa;
  color: #46513f;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  outline: none;
  line-height: 1.7;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #829478;
  box-shadow: 0 0 0 3px #edf1e7;
}
::placeholder {
  color: #a3a69a;
}
.optional {
  font-weight: 400;
  color: #a2a797;
  font-size: 10px;
  padding-left: 5px;
}
.second {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 22px;
}
.seed-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9b9f90;
}
.seeds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}
.seeds button {
  background: #f8f7f0;
  border: 1px solid #e9e6d9;
  border-radius: 20px;
  padding: 8px 11px;
  font-size: 10px;
  color: #7c7f65;
}
.seeds button:hover {
  background: #e9eedf;
}
.styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.style {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  text-align: left;
  padding: 7px;
  color: #68715d;
}
.style.selected {
  border: 1.5px solid #6b825a;
  background: #f7f9f2;
}
.style b,
.style small {
  display: block;
  padding: 5px 3px 0;
  font-size: 10px;
}
.style small {
  font-size: 9px;
  color: #929581;
  padding-bottom: 6px;
}
.style-art {
  display: grid;
  height: 65px;
  place-items: center;
  font-size: 35px;
  border-radius: 3px;
}
.warm {
  background: radial-gradient(circle at 65% 35%, #ffe9a9, #b3ba86);
  color: #fdf2ca;
}
.water {
  background: radial-gradient(ellipse, #cbd5d3, #eee6e3);
  color: #8ca1a1;
}
.pencil {
  background: repeating-linear-gradient(
    120deg,
    #e7ddc3,
    #e7ddc3 2px,
    #eee6d4 2px,
    #eee6d4 5px
  );
  color: #9eaa79;
}
.submit-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.submit-row p {
  font-size: 9px;
  line-height: 1.8;
  color: #939886;
}
.primary {
  border: 0;
  background: var(--green);
  color: white;
  padding: 14px 21px;
  border-radius: 6px;
  font-size: 12px;
}
.primary span {
  padding-left: 20px;
}
.primary:hover {
  background: #2d4b36;
}
.preview-label {
  font-size: 8px;
  letter-spacing: 1.6px;
  display: flex;
  justify-content: space-between;
  margin: 5px 6px 20px;
  color: #90977f;
}
.preview-column {
  padding-top: 8px;
}
.book-preview {
  margin: 0 12px;
  transform: rotate(2deg);
  border-radius: 5px 12px 12px 5px;
  overflow: hidden;
  background: #efead5;
  box-shadow: 7px 12px 22px #454d3122;
  border-left: 7px solid #d4cba8;
}
.book-preview img {
  width: 100%;
  height: 266px;
  object-fit: cover;
  display: block;
}
.book-caption {
  padding: 20px 12px 25px;
  text-align: center;
}
.book-caption small {
  font-size: 7px;
  letter-spacing: 1.7px;
  color: #96916a;
}
.book-caption h3 {
  font:
    24px Georgia,
    serif;
  font-weight: 400;
  margin: 10px 0;
}
.book-caption p {
  font-size: 9px;
  color: #858364;
}
.sample-note {
  text-align: center;
  color: #a0a18e;
  font-size: 9px;
  line-height: 1.8;
  margin-top: 30px;
  padding: 24px 10px;
}
.included h3 {
  font:
    17px/1.5 Georgia,
    serif;
  font-weight: 400;
}
.included p {
  font-size: 10px;
  color: #858e7a;
  margin: 17px 0;
}
.included span {
  color: #899b75;
  margin-right: 9px;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 22px 0 30px;
  font-size: 9px;
  color: #9a9f8f;
}
.library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 35px;
}
.library-card {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
}
.library-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 5px;
}
.library-card h3 {
  font:
    19px/1.4 Georgia,
    serif;
}
.library-card small {
  color: var(--muted);
}
#library-view,
#review-view {
  padding-top: 40px;
}
.text-button {
  border: 0;
  background: none;
  color: #798b6d;
  padding: 10px 0 25px;
}
.steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.steps span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
}
.steps .current {
  background: #e4ebdb;
}
.review-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 16px 0;
}
.review-card img {
  max-width: 100%;
  max-height: 520px;
  display: block;
  margin: auto;
}
.review-card h3 {
  font:
    22px Georgia,
    serif;
}
.review-card p {
  line-height: 1.8;
}
.progress {
  padding: 45px;
  background: #eaf0e3;
  border-radius: 12px;
  line-height: 1.8;
}
.progress:before {
  content: "✧";
  display: block;
  font-size: 40px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
#review-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 450px;
  background: #793f32;
  color: white;
  padding: 18px 24px;
  border-radius: 8px;
  z-index: 10;
}
a.primary {
  text-decoration: none;
}
@media (min-width: 1500px) {
  main {
    max-width: 1450px;
    margin: auto;
    padding-left: 298px;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .book-preview img {
    height: 320px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 15px;
  }
  main {
    margin-left: 200px;
    padding: 0 28px;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .draft-note {
    display: none;
  }
  .book-preview img {
    height: 220px;
  }
  form {
    padding: 22px;
  }
  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 18px;
  }
  .brand {
    margin-right: auto;
  }
  .brand small,
  .nav-label,
  .sidebar-note,
  .connection,
  .nav span:last-child {
    display: none;
  }
  .nav {
    width: auto;
    margin: 0;
    font-size: 11px;
  }
  .nav span:nth-child(2) {
    display: block;
  }
  main {
    margin: 0;
    padding: 0 22px;
  }
  header {
    height: 60px;
  }
  .header-note {
    display: none;
  }
  h1 {
    font-size: 48px;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .preview-column {
    display: none;
  }
  .submit-row {
    flex-direction: row;
  }
  .intro {
    padding: 30px 0 22px;
  }
}
@media (max-width: 480px) {
  .brand > span {
    font-size: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .nav {
    padding: 10px 7px;
  }
  .fields {
    gap: 0 12px;
  }
  form {
    padding: 20px 16px;
  }
  .submit-row {
    flex-direction: column;
  }
  .primary {
    width: 100%;
    text-align: center;
  }
  footer span {
    display: none;
  }
  h1 {
    font-size: 42px;
  }
}
/* Studio navigation and introductory spacing. */
.nav-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin: 60px 12px 16px;
  padding: 0;
  background: none;
  width: auto;
}
.nav {
  border: 0;
  background: transparent;
  color: #626f60;
  display: flex;
  gap: 12px;
  padding: 15px 13px;
  align-items: center;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}
.intro {
  padding: 42px 0 32px;
  letter-spacing: normal;
  color: var(--ink);
  margin: 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8a967d;
  margin-bottom: 15px;
}
.sample-note {
  margin: 22px;
  text-align: center;
  color: #a0a18e;
  font-size: 9px;
  line-height: 1.8;
}
#library-view,
#review-view {
  padding-top: 40px;
}
@media (max-width: 850px) {
  .nav-label {
    display: none;
  }
  .nav {
    width: auto;
    margin: 0;
    padding: 10px 7px;
    font-size: 11px;
  }
  .intro {
    padding: 30px 0 22px;
  }
}

.included {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 24px 10px;
}
@media (max-width: 480px) {
  .sidebar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    width: 100%;
    white-space: nowrap;
    margin-bottom: 4px;
  }
  .nav {
    flex: 1;
    justify-content: center;
  }
  .nav span:nth-child(2) {
    flex: initial;
  }
  .nav span:last-child {
    display: none;
  }
  #review-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress:before {
    animation: none;
  }
}

.saved-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;margin-top:24px}.saved-pages figure{margin:0}.saved-pages img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#ecefE5;border-radius:8px}.saved-pages figcaption{font-size:12px;color:#748268;padding:8px 0}
