/* DESIGN SYSTEM: Editorial Paper & Ink */
:root {
  --bg-paper: #f9f7f1; /* Warm white paper */
  --bg-paper-dark: #eae6d9; /* Darker paper for sections */
  --ink: #2c3e50; /* Deep blue/black ink */
  --red-marker: #ff6b6b;
  --yellow-highlighter: #ffe135;

  --font-serif: "Merriweather", serif;
  --font-sans: "DM Sans", sans-serif;

  --container: 1100px;
  --border-ink: 2px solid var(--ink);
  --shadow-sketch: 4px 4px 0px rgba(44, 62, 80, 0.1);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
  object-fit: cover;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.3;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 15px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  border-bottom: 1px dashed rgba(44, 62, 80, 0.2);
}
.bg-paper-dark {
  background-color: var(--bg-paper-dark);
}
.center {
  text-align: center;
  margin-bottom: 60px;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.serif-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
}

/* HIGHLIGHTS & BUTTONS */
.highlight-marker {
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--yellow-highlighter) 20%,
    var(--yellow-highlighter) 80%,
    transparent 100%
  );
  padding: 0 5px;
  border-radius: 4px;
  display: inline-block;
}

.btn-ink {
  padding: 10px 20px;
  border: var(--border-ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-sans);
}
.btn-ink:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ink-lg {
  display: inline-block;
  padding: 16px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: 0.3s;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}
.btn-ink-lg:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.link-sketch {
  font-family: var(--font-serif);
  font-style: italic;
  border-bottom: 1px solid var(--ink);
}
.link-sketch:hover {
  color: var(--red-marker);
  border-color: var(--red-marker);
}

/* HEADER */
.sketch-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(249, 247, 241, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: var(--border-ink);
  z-index: 100;
}
.h-layout {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.lt-main {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
}
.lt-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.paper-nav {
  display: flex;
  gap: 30px;
}
.paper-nav a {
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.paper-nav a:hover {
  border-bottom-color: var(--red-marker);
}

.h-side {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

/* MOBILE MENU */
.paper-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: 0.3s;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-left: var(--border-ink);
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 20px 20px;
}
.paper-drawer.active {
  transform: translateX(0);
}
.pd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
#closeMm {
  background: none;
  border: none;
  cursor: pointer;
}
.pd-links a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--ink);
}
.pd-accent {
  color: var(--red-marker) !important;
  font-style: italic;
  margin-top: 20px;
  font-size: 1.2rem !important;
}

/* HERO */
.hero-paper {
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  min-height: 90vh;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.sticker-tag {
  display: inline-block;
  background: var(--yellow-highlighter);
  color: var(--ink);
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.8rem;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  border: 1px solid var(--ink);
}
.hero-lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 40px;
  font-family: var(--font-serif);
}
.hero-btns {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-note {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: italic;
  color: #666;
}

.sketch-frame {
  position: relative;
  padding: 15px;
  background: #fff;
  border: var(--border-ink);
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
  transform: rotate(2deg);
}
.sketch-frame img {
  filter: sepia(0.2) contrast(1.1);
}
.doodle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* TOPICS GRID */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.paper-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.paper-card:hover {
  border-color: var(--ink);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sketch);
}
.pc-img {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #ddd;
}
.pc-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.pc-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-marker);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}
.pc-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: var(--font-serif);
}
.pc-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}
.read-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  color: var(--ink);
}

/* METHOD */
.split-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lead-serif {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 30px;
  font-style: italic;
  color: #333;
}
.ink-list li {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--yellow-highlighter);
}
.ink-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.notebook-mockup {
  background: #fff;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  padding: 20px 20px 20px 50px;
}
.spiral {
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: 20px;
  width: 10px;
  background: repeating-linear-gradient(
    0deg,
    #333 0px,
    #333 2px,
    transparent 2px,
    transparent 20px
  );
}
.page {
  height: 100%;
  border: 1px solid #eee;
  padding: 20px;
  position: relative;
}
.sketch-line {
  height: 10px;
  background: #eee;
  margin-bottom: 15px;
  border-radius: 5px;
  width: 100%;
}
.short {
  width: 60%;
}
.hand-drawn-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 40px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 10px;
}
.bar {
  flex: 1;
  background: var(--ink);
  opacity: 0.8;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.h40 {
  height: 40%;
}
.h70 {
  height: 70%;
  background: var(--red-marker);
}
.h50 {
  height: 50%;
}
.h90 {
  height: 90%;
}
.red-circle {
  position: absolute;
  top: 100px;
  right: 20px;
  border: 3px solid var(--red-marker);
  color: var(--red-marker);
  border-radius: 50% 40% 60% 30% / 30% 60% 40% 50%;
  padding: 10px 20px;
  font-weight: 700;
  font-family: "Comic Sans MS", cursive; /* Intentionally playful */
  transform: rotate(15deg);
}

/* FAQ */
.paper-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.acc-entry {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
}
.acc-btn {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: 0.2s;
}
.acc-btn:hover {
  background: #fdfdfd;
  color: var(--red-marker);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 25px;
}
.acc-body p {
  padding-bottom: 20px;
  color: #555;
}

/* CONTACT */
.section-contact {
  background-image: radial-gradient(#ccc 1px, transparent 1px);
  background-size: 20px 20px;
}
.contact-paper-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.sticky-note {
  background: var(--yellow-highlighter);
  padding: 30px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  margin-bottom: 40px;
  font-family: var(--font-serif);
}
.sticky-note h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.doodle-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 500;
}
.doodle-row i {
  color: var(--ink);
}

.lined-form {
  background: #fff;
  border: var(--border-ink);
  padding: 40px;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
}
.form-header {
  text-align: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 2px;
}
.lf-group {
  margin-bottom: 20px;
}
.lf-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: #666;
}
.lf-group input,
.lf-group textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--ink);
  transition: 0.3s;
}
.lf-group input:focus,
.lf-group textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}

.captcha-ink input {
  border-bottom-color: var(--red-marker);
  width: 80px;
  text-align: center;
}
.lf-agree {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.lf-agree a {
  text-decoration: underline;
}

.btn-stamp {
  width: 100%;
  padding: 15px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.3s;
}
.btn-stamp:hover {
  background: var(--red-marker);
}

/* FOOTER */
.paper-footer {
  background: #fff;
  border-top: var(--border-ink);
  padding: 80px 0 0;
}
.f-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.f-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.branding p {
  font-size: 0.95rem;
  color: #555;
  max-width: 300px;
}
.f-col h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #999;
}
.f-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.f-col a:hover {
  color: var(--red-marker);
  text-decoration: underline;
}
.f-mail {
  font-weight: 700 !important;
  margin-top: 15px;
}

.f-copy {
  text-align: center;
  padding: 20px 0;
  background: #eee;
  font-size: 0.8rem;
  color: #666;
  font-family: var(--font-serif);
}

/* COOKIE */
.cookie-paper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 300px;
  background: #fff;
  border: var(--border-ink);
  padding: 20px;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 500;
}
.btn-ink-sm {
  padding: 8px 15px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .paper-nav,
  .h-side .link-sketch,
  .h-side .btn-ink {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .hero-split,
  .split-method,
  .contact-paper-layout,
  .f-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-txt {
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .sketch-frame {
    transform: rotate(0deg);
    max-width: 400px;
    margin: 0 auto;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .sticky-note {
    transform: rotate(0deg);
  }
  h1 {
    font-size: 2.5rem;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
