/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&family=Tangerine:wght@700&display=swap');

/* Color Variables */
:root {
  --sage: #8a9381;
  --burgundy: #4b1c2a;
  --rose: #d8c9cc;
  --ivory: #f5f3ee;
  --sand: #cbbba0;
  --charcoal: #3e3e3e;
  --black: #000000;
  --white: #FFFFFF;
  --font-sans: 'Lato', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Tangerine', cursive;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: var(--sage);
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: bold;
  color: var(--ivory);
    text-decoration: none;

}
.logo a {
font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: bold;
  color: var(--ivory);
    text-decoration: none;
   transition: color 0.3s ease;
}
.logo a:hover {
  color: var(--sand);
}


nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--ivory);
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--sand);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--burgundy);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Blog Posts */
.blogpost {
  background-color: var(--sage);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.blogpost:hover {
  background-color: var(--sand);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--burgundy);
}


.password-container {
  background-color: var(--sage);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  text-align: center;
  width: 300px;
}



input, button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: var(--font-Sans);
  border: none;
  border-radius: 4px;
  margin-bottom: 15px;
}

input {
  background-color: var(--ivory);
  color: var(--black);
}

button {
  background-color: var(--burgundy);
  font-family: var(--font-Sans);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
   max-width: 600px;
}

button:hover {
  background-color: var(--sand);
}

.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.password-container h2 {
  margin-bottom: 1em;
}
 

  textarea#message {
  width: 100%;
  max-width: 2000px;
  height: 200px;
  padding: 1rem;
  font-family: var(--font-Sans);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: var(--ivory);
   color: var(--black);
    margin-bottom: 1.5rem;
}
    
    .preview {
      margin: 0.5rem 0;
      font-style: italic;
      color: #555;
    }
  .blogpost .full {
  display: none;
  margin-top: 0.5rem;
  color: #444;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.blogpost.open .full {
  display: block;
  background-color: var(--sand);
  max-height: 2000px;
}
.blogpost.open {
  background-color: var(--sand);
}

.card {
  background-color: var(--sage);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}
halfsmith-message {
  font-family: serif;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  max-width: 600px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.halfsmith-message.success {
  background-color: var(--sage);
  border-left: 4px solid var(--sand) /* muted gold */
  color: #3c2f23;
}

.halfsmith-message.error {
  background-color: #fbeaea;
  border-left: 4px solid #a94442; /* burgundy tone */
  color: #5a2a2a;
}
