@font-face {
  font-family: 'Molle';
  src: url('fonts/Molle/Molle-Italic.ttf') format('truetype');
  font-style: italic;
}

@font-face {
  font-family: 'Amarna';
  src: url('fonts/Amarna/static/Amarna-Light.ttf') format('truetype');
}


:root {
    --primary-color: #fedcdb;
    --secondary-color: #C96480;
    --third-color: #000000;
    --fourth-color: #874356;

    --font-title: 'Molle', cursive;
    --font-body: 'Amarna', serif;

    --font-size: 18px;
    --line-height: 1.5;
}


.wrapper {
  margin: 0 auto;
  padding: 0;
    width: 50rem;
  max-width: 100%;
}

header, footer, main {
  width: 100%;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 55px;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-bar {
    width: 100%;
    height:0.8px;
    background: repeating-linear-gradient(
      to right,
      var(--secondary-color) 0 10px,
      transparent 10px 20px
    );
}

.left-header {
    display: flex;
    align-items: center;
    gap: 20px; 
}


.title h1 {
    margin: 0;
    padding:0;
    font-size: 22px;
    font-family: var(--font-title);
    color: var(--secondary-color);
}

nav {
    display: flex;
    gap:20px;
}

.menu {
    margin: 0;
    cursor: pointer;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 16px;
    text-transform: lowercase;
    transition: color 0.4s ease;
}

.menu:hover {
    color: var(--secondary-color);
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--font-size);
    line-height: var(--line-height);
    text-align:left;
    background-color: var(--third-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    gap: 30px;
}

.text-side {
    flex: none;     
    text-align: right;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 90px;
    max-width: 800px;  
}

.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;  
}

.image-side {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 60px;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 8px;
    font-family: var(--font-body);
    margin-right: 60px;
}

h2 {
    font-family: var(--font-body);
    text-transform: lowercase;
    font-weight: bold;
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

p{
    margin:0;
    line-height: 1;
    font-weight: normal;
}

.aboutme p {
  text-align:justify;
}

a {
    color: var(--secondary-color);
    text-decoration:none;
    color: var(--secondary-color);
    transition: color 0.4s ease;
}

a:hover {
    color: var(--primary-color);
}

.footer {
  display: center;
  align-items: center;
  font-size: 14px;
  margin-top: 20px;
}

.social-links a {
  margin-right: 1rem;
}

.social-links a:last-child {
  margin-right: 0;
}


#papers-tabs {
  margin-top: 1.5rem;
  border: 1px solid var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0;
  border-bottom: 1px dashed var(--secondary-color);
}

.tab-button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: lowercase;
  color: var(--secondary-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
}

.tab-count {
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.7;
  vertical-align: super;
}

.tab-content {
  padding: 0.5rem 1.25rem 1rem;
}

.paper {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(201, 100, 128, 0.35);
}

.paper:last-child {
  border-bottom: none;
}

.paper-title {
  font-size: 1rem;
  line-height: 1.4;
}

.paper-title em {
  font-style: italic;
}

.paper-year {
  color: var(--primary-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

.paper-meta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--primary-color);
}

.paper-meta strong {
  color: var(--secondary-color);
}

.paper-meta code,
.citation-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.paper-meta code {
  font-size: 0.8rem;
}

.paper-links {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  text-transform: lowercase;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--fourth-color);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0 0;
  transition: color 0.3s ease;
}

.dropdown-btn:hover,
.dropdown-btn.open {
  color: var(--secondary-color);
}

.dropdown-btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.dropdown-btn.open .arrow {
  transform: rotate(90deg);
}

.details {
  display: none;
  margin: 0.5rem 0 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--fourth-color);
  font-size: 0.85rem;
}

.details.open {
  display: block;
}

.details-label {
  margin: 0.6rem 0 0.3rem;
  font-weight: bold;
  color: var(--secondary-color);
  line-height: 1.3;
}

.abstract {
  margin: 0;
  text-align: justify;
  line-height: 1.45;
}

.cite-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cite-btn,
.copy-btn {
  background: none;
  border: 1px solid var(--fourth-color);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--secondary-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cite-btn.active,
.cite-btn:hover,
.copy-btn:hover {
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.copy-btn {
  margin-left: auto;
}

.citation-block {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--primary-color);
  background: rgba(135, 67, 86, 0.15);
  border-radius: 8px;
}

.citation-block.shown {
  display: block;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--primary-color);
  background: transparent;
  border: 1px solid var(--fourth-color);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.3s ease;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.contact-form .honey {
  display: none;
}

.contact-form button[type=submit] {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: lowercase;
  color: var(--secondary-color);
  transition: color 0.3s ease, background 0.3s ease;
}

.contact-form button[type=submit]:hover {
  background: var(--secondary-color);
  color: var(--third-color);
}

.contact-form button[type=submit]:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: 1em;
}

.form-status.ok {
  color: var(--primary-color);
}

.form-status.error {
  color: var(--secondary-color);
}