:root { 
  --space: 30px; 
  --bg-color: #FAF9EE;
  --card-bg: #DCCFC0;
  --accent-bg: #A2AF9B;
  --text-color: #222;
  --link-color: #0645AD;
  --bullet-link: url("./icons/bullet_sign_dark.svg")}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1E201E;
    --card-bg: #3C3D37;
    --accent-bg: #697565;
    --text-color: #f5f5f5;
    --link-color: #9ecbff;
    --bullet-link: url("./icons/bullet_sign_light.svg")
  }
}

.dark-mode {
  --bg-color: #1E201E;
    --card-bg: #3C3D37;
    --accent-bg: #697565;
    --text-color: #f5f5f5;
    --link-color: #9ecbff;
    --bullet-link: url("./icons/bullet_sign_light.svg")
}

.light-mode { 
--bg-color: #FAF9EE;
  --card-bg: #DCCFC0;
  --accent-bg: #A2AF9B;
  --text-color: #222;
  --link-color: #0645AD;
  --bullet-link: url("./icons/bullet_sign_dark.svg")
}

html {
  height: 100%;
  margin: 0;    /* removes default browser margins */
  background-color: var(--bg-color);
}

body {
  width:95%; margin:auto; font-family: 'Outfit', sans-serif; 
  padding-bottom: var(--space); font-size: 18px; color: var(--text-color);
}

a {
  color: var(--link-color);
}

@font-face {
  font-family: 'Konnect';
  src: url('./fonts/KonnectRegular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@media (min-width:800px) {
   body { width: 800px; }

  .flower-frame {
    flex: 0 0 300px; /* fixed width for image column */
    margin-right: 2rem;
    display: flex;
    align-items: center; /* vertically center image */
  }

.profile-header {
  display: flex;
  align-items: center; /* vertical centering of image + text */
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center text */
    align-items: flex-start; /* align text to the left */
    text-align: left;
  }

 .flower-frame img {
    width: 300px; /* увеличено с 100% */
    height: auto;
transform: translateY(7px);
  }

}

@media (max-width:799px) {
  .profile-header { flex-direction:column }
  .profile-info { align-items:center }
}

#main {text-align:justify}
.site-nav ul {
  display:flex; gap:16px; padding:0; list-style:none;
}

/* NAVIGATION */

.site-nav .nav-list a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px; 
  border-radius: 8px;
  color: var(--text-color);
  transition: background-color .2s ease, color .2s ease;
}

.site-nav .nav-list {
  display: flex;
  list-style: none;
  justify-content: center; /* center links */
  flex-wrap: wrap;
  transform: translateY(3px);
}

.nav-list {justify-content: center; }

.site-nav .nav-list a:hover {
  background-color: rgba(0,0,0,0.06);}

.nav-wrapper {
  background-color: var(--accent-bg);
  border-radius: 10px;
  padding: 10px 40px 15px 40px;
  margin: 30px 0px 30px 0px;
  position: relative;
}

#theme-toggle {
  position: absolute;
  right: 20px;       /* distance from right edge */
  top: 50%;          /* vertical center */
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s;
}

#theme-toggle:hover {
  background-color: rgba(0,0,0,0.1);
}

#theme-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}

.profile-header {
  display:flex; flex-wrap:wrap;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 10px 40px 15px 40px;
  margin: 30px 0px 30px 0px;
  align-items: center;
}


.flower-frame img {
  width: 100%; height: auto; display: block;
}

.profile-info {
  align-items: center;
  text-align: center;
}

.profile-info .site-title {
  font-size:2.5rem; font-weight:700; font-family: 'Konnect', sans-serif;
}

.profile-info h2 {
  font-size:1.5rem; font-weight:500; margin:0;
}

.profile-info p {
  margin:0; font-size:1rem;
}

body h1, body h2, body h3 {
  font-family: 'Konnect', sans-serif;
}

body h1 {font-size:2.5rem; text-align:center;  }
body h2 {font-size:2rem; text-align:center; }
body h3 {font-size: 1.5rem}
body h4 {font-size: 1.2rem}


.section {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 10px 40px 15px 40px;
  margin: 30px 0px 30px 0px;
}

/*GALLERY DESIGN */

.gallery-section {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.footer-wrapper {
  background-color: var(--accent-bg);
  border-radius: 10px;
  padding: 10px 40px 15px 40px;
  margin: 30px 0px 30px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

/*Custom lists */

ul.custom-list {
  list-style: none; /* removes default bullets */
  padding-left: 0;  /* optional, aligns nicely */
}

ul.custom-list li {
  position: relative;
  padding-left: 28px; /* space for icon */
  line-height: 1.1; /* optional: helps with vertical centering */
}

ul.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: var(--bullet-link) no-repeat center;
  background-size: contain;
}

/* Date block */

.date {
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
  background: rgba(0,0,0,0.03);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.date-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-flex .date {
  flex-shrink: 0; /* prevent shrinking */
  text-align: center;
}

.date-flex .flex-content {
  flex: 1; /* take all remaining space */
}


/*CONTACT SECTION */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Outfit', sans-serif; 
  font-size: 18px;
}

.contact-form button {
  background-color: var(--accent-bg);
  color: var(--text-color);
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif; 
  font-size: 18px;
}

.contact-form button:hover {
  background-color: color-mix(in srgb, var(--accent-bg) 90%, black);
}


