:root {
  --paper: #f7efe2;
  --paper-2: #fffaf1;
  --ink: #262119;
  --muted: #756b5d;
  --sage: #526b4f;
  --sage-dark: #2f4733;
  --tomato: #b94d36;
  --mustard: #d69a2d;
  --card: #fffdf7;
  --line: rgba(38, 33, 25, 0.16);
  --soft-line: rgba(38, 33, 25, 0.08);
  --shadow: 0 18px 45px rgba(61, 46, 28, 0.13);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(38,33,25,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(38,33,25,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(214,154,45,.18), transparent 28%), radial-gradient(circle at 80% 15%, rgba(82,107,79,.14), transparent 30%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 34px)); margin: 0 auto; }
.page-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(38,33,25,.12);
  border-radius: 28px;
  pointer-events: none;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 226, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px dashed rgba(38,33,25,.18);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50% 42% 48% 38%;
  background: var(--sage-dark);
  color: #fff7e8;
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.08em;
  box-shadow: 0 10px 22px rgba(47,71,51,.24);
}
.logo-text { font-family: var(--font-display); font-size: 1.28rem; font-weight: 850; letter-spacing: -0.04em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.nav-links a:hover { background: rgba(82,107,79,.1); color: var(--sage-dark); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
}

.hero { padding: 82px 0 46px; position: relative; overflow: hidden; }
.hero::after {
  content: "✦";
  position: absolute;
  right: 9vw;
  top: 86px;
  color: rgba(185,77,54,.28);
  font-size: 6rem;
  transform: rotate(12deg);
}
.hero-layout { display: grid; grid-template-columns: 1.05fr .58fr; gap: 54px; align-items: center; }
.kicker {
  margin: 0 0 12px;
  color: var(--tomato);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .73rem;
  font-weight: 900;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: .98; letter-spacing: -0.045em; }
h1 { max-width: 850px; font-size: clamp(2.65rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
h3 { font-size: 1.35rem; }
.hero-text { margin: 24px 0 0; max-width: 680px; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(38,33,25,.16);
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(38,33,25,.16); }
.button.ink { background: var(--ink); color: #fff7e8; }
.button.paper { background: var(--paper-2); color: var(--ink); }

.notebook-card {
  position: relative;
  transform: rotate(2.2deg);
  padding: 34px 30px 28px;
  background: #fffdf7;
  border: 1px solid rgba(38,33,25,.16);
  box-shadow: var(--shadow);
  border-radius: 8px 30px 8px 30px;
}
.notebook-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(185,77,54,.28) 0 12px, transparent 12px 22px);
}
.tape { position: absolute; width: 88px; height: 26px; background: rgba(214,154,45,.28); transform: rotate(-11deg); }
.tape-one { top: -13px; left: 34px; }
.tape-two { right: 34px; bottom: -13px; transform: rotate(8deg); }
.note-label { color: var(--sage); font-weight: 900; margin: 0 0 8px; }
.notebook-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--sage-dark); }
.notebook-card p { color: var(--muted); }
.note-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.note-footer span { border: 1px dashed rgba(38,33,25,.25); border-radius: 10px; padding: 7px 10px; font-size: .82rem; font-weight: 900; color: var(--tomato); }

.hero-strip {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255,253,247,.7);
  box-shadow: 0 12px 34px rgba(61,46,28,.08);
}
.hero-strip div { padding: 22px; border-right: 1px dashed var(--line); }
.hero-strip div:last-child { border-right: 0; }
.hero-strip strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.hero-strip span { color: var(--muted); font-weight: 800; font-size: .88rem; }

.intro, .hacks-section { padding: 78px 0; }
.section-head { max-width: 710px; }
.section-head.centered { margin: 0 auto 34px; text-align: center; }
.section-head p:not(.kicker) { color: var(--muted); margin: 16px 0 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 260px;
  box-shadow: var(--shadow);
  position: relative;
}
.feature-card::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(38,33,25,.12); pointer-events: none; }
.feature-card span { display: block; color: var(--mustard); font-weight: 900; margin-bottom: 18px; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.rotate-left { transform: rotate(-1.2deg); }
.rotate-right { transform: rotate(1.2deg); }
.lift-card { transform: translateY(-14px); }

.categories-wrap { padding: 84px 0; background: rgba(82,107,79,.1); border-block: 1px dashed var(--line); }
.categories-layout { display: grid; grid-template-columns: .42fr .58fr; gap: 42px; align-items: start; }
.section-head.side { position: sticky; top: 110px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.category-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 22px 8px 22px 8px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  box-shadow: 8px 8px 0 rgba(82,107,79,.11);
}
.category-card:nth-child(even) { border-radius: 8px 22px 8px 22px; }
.category-card:hover { transform: translateY(-4px) rotate(-.4deg); background: #fff; }
.category-card strong { display: block; font-size: 2.15rem; margin-bottom: 8px; }
.category-card h3 { color: var(--sage-dark); }
.category-card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }

.library-top { display: grid; grid-template-columns: 1fr 340px; align-items: end; gap: 30px; margin-bottom: 26px; }
.search-box label { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 900; }
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: #fffdf7;
  border-radius: 10px;
  padding: 0 16px;
  font: inherit;
  outline: none;
  box-shadow: 5px 5px 0 rgba(38,33,25,.08);
}
.search-box input:focus { border-color: var(--sage); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.filter-btn {
  border: 1px dashed var(--line);
  background: rgba(255,253,247,.76);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.filter-btn.active { background: var(--sage-dark); color: #fff7e8; border-style: solid; }
.result-count { color: var(--muted); font-weight: 900; }
.tips-grid { columns: 3 300px; column-gap: 18px; }
.tip-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--mustard);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(61,46,28,.09);
}
.tip-card:nth-child(3n+2) { border-left-color: var(--sage); }
.tip-card:nth-child(3n+3) { border-left-color: var(--tomato); }
.tip-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.tip-number { font-family: var(--font-display); font-weight: 850; color: var(--tomato); }
.tip-category { color: var(--muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.tip-card h3 { font-size: 1.18rem; color: var(--ink); margin-bottom: 9px; }
.tip-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.about-band { padding: 28px 0 84px; }
.about-card {
  background: var(--sage-dark);
  color: #fff7e8;
  padding: 42px;
  border-radius: 14px 46px 14px 46px;
  box-shadow: var(--shadow);
}
.about-card .kicker { color: #f0c16a; }
.about-card p:not(.kicker) { max-width: 760px; color: rgba(255,247,232,.78); }
.about-card .button { margin-top: 16px; background: #fff7e8; color: var(--ink); }
.footer { border-top: 1px dashed var(--line); padding: 28px 0 34px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; font-weight: 700; }

@media (max-width: 920px) {
  .hero-layout, .categories-layout, .library-top { grid-template-columns: 1fr; }
  .section-head.side { position: static; }
  .featured-grid { grid-template-columns: 1fr; }
  .lift-card, .rotate-left, .rotate-right { transform: none; }
}
@media (max-width: 720px) {
  .page-frame { inset: 7px; border-radius: 18px; }
  .container { width: min(100% - 28px, 1120px); }
  .nav { height: 66px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 54px 0 36px; }
  .hero::after { display: none; }
  .notebook-card { transform: none; }
  .hero-strip { grid-template-columns: 1fr; margin-top: 34px; }
  .hero-strip div { border-right: 0; border-bottom: 1px dashed var(--line); }
  .hero-strip div:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .intro, .hacks-section, .categories-wrap { padding: 54px 0; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filter-btn { white-space: nowrap; }
  .tips-grid { columns: 1; }
  .about-card { padding: 28px; border-radius: 14px 32px 14px 32px; }
  .footer-grid { flex-direction: column; }
}


.footer-copy{
    font-size:14px;
    opacity:0.9;
    line-height:1.8;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    text-align:center;
}

.footer-separator{
    opacity:0.45;
}

.footer-copy a{
    color:inherit;
    text-decoration:none;
    font-weight:600;
    transition:0.3s ease;
    border-bottom:1px solid rgba(255,255,255,0.25);
    padding-bottom:1px;
}

.footer-copy a:hover{
    opacity:1;
    border-color:rgba(255,255,255,0.7);
}
/* Newsletter + FAQ */
.newsletter-section { padding: 36px 0 74px; }
.newsletter-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 34px 10px 34px 10px;
  padding: 34px;
  box-shadow: 12px 12px 0 rgba(214,154,45,.16);
}
.newsletter-copy h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.newsletter-copy p:not(.kicker) { color: var(--muted); margin: 16px 0 0; }
.newsletter-form {
  background: rgba(82,107,79,.09);
  border: 1px dashed rgba(38,33,25,.18);
  border-radius: 22px;
  padding: 22px;
}
.newsletter-form label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: var(--sage-dark); margin-bottom: 8px; }
.newsletter-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-row input { min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 16px; font: inherit; outline: none; }
.newsletter-row input:focus { border-color: var(--sage); }
.newsletter-row button { min-height: 54px; border: 0; border-radius: 14px; padding: 0 20px; background: var(--tomato); color: #fffaf1; font: inherit; font-weight: 900; cursor: pointer; }
.form-note { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.faq-section { padding: 74px 0; background: rgba(255,253,247,.56); border-block: 1px dashed var(--line); }
.faq-layout { display: grid; grid-template-columns: .42fr .58fr; gap: 42px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 6px 6px 0 rgba(38,33,25,.06); }
.faq-list summary { cursor: pointer; font-weight: 900; color: var(--sage-dark); }
.faq-list p { color: var(--muted); margin: 12px 0 0; }
.tip-detail { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--soft-line); color: #5f5548 !important; }
.tip-detail strong { color: var(--sage-dark); }

@media (max-width: 920px) {
  .newsletter-card, .faq-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .newsletter-section, .faq-section { padding: 52px 0; }
  .newsletter-card { padding: 24px; border-radius: 24px 8px 24px 8px; }
  .newsletter-row { grid-template-columns: 1fr; }
}


/* Legal pages */
.legal-warning {
  margin-top: 20px !important;
  padding: 16px 18px;
  background: rgba(255, 247, 232, 0.1);
  border: 1px dashed rgba(255, 247, 232, 0.28);
  border-radius: 16px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font-weight: 900;
}
.legal-links a { color: #fff7e8; text-decoration: underline; text-underline-offset: 4px; }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.legal-hero { padding: 74px 0 34px; }
.legal-hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px 44px 12px 44px;
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.legal-hero-card::after {
  content: "✦";
  position: absolute;
  right: 28px;
  top: 18px;
  font-size: 5rem;
  color: rgba(214,154,45,.18);
}
.legal-hero-card h1 { max-width: 780px; font-size: clamp(2.4rem, 6vw, 5.2rem); }
.legal-content { padding: 34px 0 84px; display: grid; gap: 18px; }
.legal-panel {
  background: rgba(255,253,247,.82);
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--sage);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(61,46,28,.08);
}
.legal-panel:nth-child(even) { border-left-color: var(--mustard); }
.legal-panel h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); color: var(--sage-dark); }
.legal-panel p { color: var(--muted); }
.legal-panel a { color: var(--tomato); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.legal-panel code { background: rgba(82,107,79,.1); padding: 2px 7px; border-radius: 8px; color: var(--sage-dark); font-weight: 900; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-copy { position: sticky; top: 104px; }
.contact-note { padding: 14px; border-radius: 14px; background: rgba(185,77,54,.08); border: 1px dashed rgba(185,77,54,.22); }
.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px 10px 28px 10px;
  padding: 26px;
  box-shadow: 12px 12px 0 rgba(82,107,79,.1);
}
.contact-form label { display: block; margin: 14px 0 8px; color: var(--sage-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(82,107,79,.1); }
.contact-form button {
  width: 100%;
  margin-top: 16px;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--sage-dark);
  color: #fff7e8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(38,33,25,.12);
}
.contact-form button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(38,33,25,.12); }
@media (max-width: 920px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
}
@media (max-width: 720px) {
  .legal-hero { padding: 50px 0 24px; }
  .legal-content { padding-bottom: 56px; }
  .legal-hero-card, .contact-form { border-radius: 22px 8px 22px 8px; }
  .legal-panel, .contact-form { padding: 20px; }
}
