/* CSS RESET + VARIABLES */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
}

:root {
  --bg: #f1e9e3;
  --topbar: #a47550;
  --bottombar: #523a28;
  --note-yellow: #ffe79a;
  --note-pink: #ffd6e1;
  --tape: rgba(255, 181, 192, 0.6);
  --paper-line: #3a7dbd;
  --paper-margin: #d63b3b;
  --paper-bg: #ffffff;
  --ink: #000000;
  --shadow: rgba(0, 0, 0, 0.18);
  --container: 1100px;
}

/* GLOBAL BASE STYLES */
html,
body {
  height: 100%;
}
body {
  font-family: "Miriam Libre", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topmostbar {
  height: 30px;
  background: #523a28;
}

.site-title {
  color: #523a28;
  font-size: 27px;
  font-weight: 600;
  padding: 9px 0;
  text-align: center;
  background: white;
}

.site-title-link {
  text-decoration: none;
  color: #523a28;
}

/* Highlight Bar */
.highlight {
  background: #573425;
  color: #f0f9fe;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin: 3px 750px 0px;
  padding: 3px 0px 3px 0px;
}

/* HEADER / NAVIGATION */
.topbar {
  background: var(--topbar);
}

.container {
  width: 100%;
  margin: 0;
  padding-inline: 16px;
}

.nav {
  display: flex;
  gap: 21px;
  justify-content: center;
  align-items: flex-end;
  padding: 15px 0;
  position: relative;
}

.nav-pill {
  position: relative;
  display: inline-block;
  background: #fff;
  height: 30px;
  width: 180px;
  border: 1px solid #d8c9bc;
  box-shadow: 0 1px 2px var(--shadow);
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  user-select: none;
  color: #523a28;
  text-decoration: none;
  text-align: center;
}

.nav-pill:hover {
  text-decoration: underline;
}

.nav-pill::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 30px;
  height: 9px;
  background: var(--tape);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.account-badge {
  position: absolute;
  right: -30px;
  top: -75px;
  background: #da5783;
  padding: 16px 10px;
  font-weight: 700;
  box-shadow: 3px 3px 30px gray;
  color: white;
  cursor: pointer;
  transform: translateX(-50%) rotate(-6deg);
}

/*
.account-badge::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 28px;
  height: 10px;
  background: var(--tape);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
  

/* MAIN WORK AREA */
.workspace {
  display: grid;
  grid-template-columns: 2fr 1fr 3fr;
  gap: 30px;
  align-items: flex-start;
  padding-top: 15px;
  padding-bottom: 0;
}

.sticky {
  font-family: "Miriam Libre", sans-serif;
  position: relative;
  padding: 16px 18px;
  border-radius: 6px;
  box-shadow: 0 10px 18px var(--shadow);
  font-size: 20px;
  line-height: 1.35;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 15%;
}
.sticky strong {
  font-weight: 700;
}
/* .sticky::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 56px;
  height: 14px;
  background: var(--tape);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
} */

/* Pins */

.sticky::before {
  content: "";
  width: 15px;
  height: 15px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.2);
}

.sticky-left {
  background: var(--note-yellow);
  transform: rotate(-2.4deg);
}
.sticky-right {
  background: var(--note-pink);
  transform: rotate(1.8deg);
  height: 240px;
}

.paper {
  background: linear-gradient(
      to right,
      transparent 56px,
      var(--paper-margin) 56px,
      var(--paper-margin) 59px,
      transparent 59px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--paper-bg) 0px,
      var(--paper-bg) 24px,
      var(--paper-line) 25px,
      var(--paper-bg) 26px
    );
  color: #1a1a1a;
  min-height: 1500px;
  width: 1200px;
  padding: 32px 16px 16px 72px;
  border: 1px solid #cfd6df;
  box-shadow: inset 0 1px 0 #fff;
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 16px;
  line-height: 26px;
  text-align: left;
}

.paper:focus {
  box-shadow: 0 0 0 3px rgba(58, 125, 189, 0.25), inset 0 1px 0 #fff;
}
.paper[contenteditable="true"]:empty::before {
  content: "Start typing…";
  color: #6b7280;
}

.pencil {
  width: 240px;
  z-index: 1000;
}

.pencil1 {
  margin-top: 150px;
}

/* FOOTER */
.footer {
  background: var(--bottombar);
  color: #8d7666;
  padding: 18px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 30px;
  padding-right: 30px;
}
.footer a {
  color: #8d7666;
  text-decoration: underline;
}
.footer a:hover {
  text-decoration: wavy;
}
.legal {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 14px;
  flex-direction: column;
  text-align: left;
}
.company {
  display: flex;
  gap: 3px;
  flex-direction: column;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
}

.company-name {
  color: #ba9579;
  font-size: 18px;
  font-weight: 700;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 200px 1fr 200px;
  }
  .paper {
    width: 100%;
    min-width: 0;
    padding: 24px 15px 8px 56px;
  }
}

@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 8px;
  }
  .account-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    transform: none;
    padding: 8px 12px;
    font-size: 16px;
    box-shadow: 3px 3px 30px gray;
    z-index: 1001;
  }
  .sticky-left,
  .sticky-right,
  .sticky {
    margin-left: 0;
    margin-right: 0;
    margin-top: 12px;
    font-size: 18px;
    padding: 12px 8px;
  }
  .paper {
    width: 100%;
    min-width: 0;
    padding: 16px 4px 4px 40px;
    font-size: 15px;
    line-height: 22px;
  }
  .highlight {
    margin: 8px 0 0 0;
    font-size: 18px;
    padding: 6px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
    padding-right: 8px;
    gap: 12px;
  }
  .company,
  .legal {
    text-align: left;
    font-size: 15px;
    gap: 6px;
  }
  .company-name {
    font-size: 16px;
  }
  .nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 8px;
    justify-content: space-between;
    scrollbar-width: thin;
    scrollbar-color: #a47550 #fff;
  }
  .nav-pill {
    min-width: 100px;
    width: auto;
    display: inline-block;
    margin-right: 8px;
  }
}

@media (max-width: 500px) {
  .site-title {
    font-size: 20px;
    padding: 6px 0;
  }
  .nav-pill {
    width: 100px;
    font-size: 14px;
    height: 26px;
  }
  .paper {
    padding: 8px 2px 2px 8px;
    font-size: 14px;
    line-height: 18px;
  }
  .sticky {
    font-size: 15px;
    padding: 8px 4px;
  }
  .highlight {
    font-size: 15px;
    padding: 4px 0;
  }
}
