@font-face {
  font-family: 'KitchenSet';
  src: url('fonts/kitchenset.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'Basteleur';
  src: url('fonts/Basteleur-Bold.woff2') format('woff2');
  font-display: swap;
  font-weight: bold;
}

@font-face {
  font-family: 'Basteleur';
  src: url('fonts/Basteleur-Moonlight.woff2') format('woff2');
  font-display: swap;
  font-weight: normal;
}

@font-face {
  font-family: 'Feroniapi';
  src: url('fonts/Feroniapi-MediumItalic.woff2') format('woff2');
  font-display: swap;
  font-style: italic;
  font-weight: 500;
}

@font-face {
  font-family: 'EBGaramond-Initials';
  src: url('fonts/EBGaramond-Initials.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'EBGaramond-InitialsF1';
  src: url('fonts/EBGaramond-InitialsF1.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'EBGaramond-InitialsF2';
  src: url('fonts/EBGaramond-InitialsF2.otf') format('opentype');
  font-display: swap;
}

/*
  === FONT SWITCHER ===
  Change --body-font to swap between fonts:
    "Poor Story", cursive
    "Basteleur", serif
    "Feroniapi", serif
    "EB Garamond", serif         (Google Fonts — clean body text)
    "Crimson Pro", serif

  Initials fonts (decorative drop caps):
    "EBGaramond-Initials"        (ornate floral capitals)
    "EBGaramond-InitialsF1"      (filled variant)
    "EBGaramond-InitialsF2"      (outline variant)
*/
:root {
  --body-font: "Poor Story", cursive;
  --font-2: "Basteleur", serif; /*v nice !!*/
  --font-3: "Feroniapi", serif; /* dont like */
  --font-4: "EB Garamond", serif;
  --font-initials: "EBGaramond-Initials", serif;
  --font-initials-f1: "EBGaramond-InitialsF1", serif;
  --font-initials-f2: "EBGaramond-InitialsF2", serif;
  --font-backup: "Crimson Pro", serif;
  --current-font: var(--font-2);
}

body {
  margin: 0;
  font-family: var(--current-font);
  color: #e8dcc8;
  background-color: #2a2318;
  text-align: center;
  background-size: 100px 100px;
}

header {
  padding: 20px 20px 0px 20px;
}

.desktop-only {
  display: none;
}

/* Main layout with three columns */
.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin-top: 40px;
  padding: 0 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.emphasised p {
  font-size: 0.1rem;
  line-height: 1.7;
  color: #b0a48e;
  text-align: left;
  margin: 0;
}

/* Side rectangles */
.side-rectangle {
  flex: 0 0 20%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.side-ascii {
  margin: 0;
  font-size: 10px;
  line-height: 1.1;
  color: #6b5e4b;
  white-space: pre;
  text-align: center;
}

/* Center content area */
.content {
  width: 60%;
  text-align: left;
  flex-shrink: 0;
  font-family: var(--current-font);
  font-weight: 400;
  font-style: normal;
}

.content h1 {
  font-family: 'KitchenSet', serif;
  font-size: 6rem;
  margin-bottom: 1rem;
  color: #d4c4a0;
  text-align: center;
  letter-spacing: 0.05em;
}

.content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #a89878;
  text-align: center;
}

.content h3 {
  font-family: 'KitchenSet', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #7a8c5e;
  text-align: center;
}

.content h4 {
  font-size: 0.9rem;
  color: #6b5e4b;
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 6px;
  padding-right: 6px;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #b0a48e;
  text-align: left;
  margin: 0;
}

.content .contact-email {
  color: #7a8c5e;
}

.content textarea {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b5e4b;
  background-color: transparent;
  border: 1.5px solid #4a3f30;
  border-radius: 8px;
  padding: 6px 8px;
  resize: vertical;
  outline: none;
  margin-bottom: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.content button {
  font-size: 1rem;
  color: #6b5e4b;
  background-color: transparent;
  border: 1.5px solid #4a3f30;
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: background-color 0.3s ease;
  transition: color 0.7s ease;
}

.content button:hover {
  background-color: #6b5e4b;
  color: #2a2318;
  border: 1.5px solid #6b5e4b;
}

.content a {
  font-size: 1rem;
  line-height: 1.6;
  color: #7a8c5e;
  text-align: left;
  margin: 0;
}

/* Hover tooltip styles */
.hover-link {
  position: relative;
  color: #8fa66a;
  text-decoration: none;
  cursor: pointer;
}

.hover-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e1a12;
  color: #e8dcc8;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  border: 1px solid #4a3f30;
}

.hover-link:hover::after {
  opacity: 1;
  visibility: visible;
}

.writing-link {
  display: inline-block;
  text-decoration: none;
  border: 1.5px solid transparent;
  padding: 1px 8px;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.writing-link:hover {
  border-color: #4a3f30;
}

/* Shown on desktop */
  @media (min-width: 1100px) {
    .desktop-only {
      display: block;
    }
    .mobile-only {
      display: none;
    }
  }

/* Mobile-friendly styles */
@media (max-width: 1100px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 0px 0px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-only {
      display: block;
    }

  .side-rectangle {
    width: 100%;
    max-width: 400px;
    min-height: auto;
    padding: 10px;
  }

  .left-side {
    order: 2;
  }

  .right-side {
    order: 3;
  }

  .content {
    order: 1;
    width: 90%
  }

  .side-ascii {
    font-size: 8px;
  }
}

@media (max-width: 768px) {
  .hover-link::after {
    display: none;
  }

  .content {
    max-width: 100%;
    padding: 0 15px;
  }

  .content h1 {
    font-size: 5rem;
  }

  .content h2 {
    font-size: 1.7rem;
  }

  .content p {
    font-size: 1.15rem;
  }

  .side-rectangle {
    max-width: 300px;
  }

  .side-ascii {
    font-size: 6px;
  }
}

/* Hide tooltips on touch devices */
@media (hover: none) and (pointer: coarse) {
  .hover-link::after {
    display: none;
  }
}