:root {
  --color-bg: #F5F0E6;
  --color-post: #FFFFFF;
  --color-regular: #2A2A2A;
  --color-important: #4A6A8A;
  --color-highlight: #6B8DB0; }

body {
  padding: 0;
  margin: 0;
  font-size: 1.1em;
  line-height: 1.8em;
  background-color: var(--color-bg);
  color: var(--color-regular);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

p {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizelegibility !important;
  letter-spacing: .02em;
  margin-bottom: 0; }

h1, h2 {
  margin-top: 0;
  font-weight: 300;
  letter-spacing: 0.1em; }

h1 {
  font-size: 2em;
  text-transform: uppercase;
  margin-bottom: 0.5em; }

#header-bottom h1 {
  margin-top: 1.5em; }

blockquote {
  border-left: 2px solid var(--color-important);
  margin: 0;
  padding-left: 1em; }

blockquote + blockquote {
  padding-top: 1em;
  margin-top: -1em; }

a, .subtitle {
  color: var(--color-important);
  text-decoration: none; }

a:hover {
  color: var(--color-highlight); }

#header-top {
  height: 500px; }

#header-bottom {
  text-align: center;
  padding: 1em 0; }

.subtitle {
  font-weight: 300;
  letter-spacing: 0.15em;
  font-size: 0.9em; }

#bg {
  height: 75%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.7; }

#bg {
  background-image: url("/bg.webp"); }

#logo {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translate(-50%); }

#logo img {
  max-height: 450px;
  width: auto; }

main, footer {
  max-width: 720px;
  margin: auto; }

footer {
  text-color: var(--color-important); }

.post {
  background-color: var(--color-post);
  padding: 2em;
  border-radius: 0.3em;
  text-align: center; }

.post p, .post hr, .post .bottom {
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto; }

.post hr {
  margin: 2em auto;
  border: none;
  border-top: 1px solid #ccc; }

header {
  margin-bottom: 1.5em; }

.post, ul.pagination {
  margin-bottom: 2em; }

.gallery {
  margin: -0.5em -0.5em -1em -0.5em; }

.top {
  display: none; }

.bottom {
  margin: 2em auto 1em auto;
  max-width: 600px; }

.gallery img {
  width: 100%; }

.subtitle, .text_top {
  margin-bottom: 1em; }

.tags, .pagination, footer {
  font-size: 0.75em;
  line-height: 0.75em; }

.tags {
  display: inline-table;
  margin: 0;
  padding: 0; }

.tags ul, .pagination li {
  list-style-type: none;
  padding: 0;
  margin-bottom: 0; }

#tags li {
  float: left;
  padding-right: 1em; }

.tags li, .pagination li {
  margin-right: 1em;
  display: inline; }

ul.pagination {
  padding: 0;
  text-align: center; }

.overlay {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s; }

.overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  transform: scale(0.95);
  transition: transform .3s; }

.overlay:target {
  visibility: visible;
  opacity: 100;
  outline: none;
  cursor: default; }

.overlay:target img {
  transform: scale(1); }

.hidden {
  display: none; }

/* Form Styles */
.rsvp-form {
  margin: 2em auto;
  max-width: 400px;
  text-align: left;
  display: block; }

.form-group {
  margin-bottom: 1.5em; }

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  color: var(--color-important); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75em;
  border: 1px solid var(--color-regular);
  border-radius: 0.3em;
  background: var(--color-bg);
  color: var(--color-regular);
  font-size: 1em;
  box-sizing: border-box; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-important); }

.form-group textarea {
  resize: vertical;
  min-height: 100px; }

button[type="submit"] {
  background: var(--color-important);
  color: #fff;
  border: none;
  padding: 1em 2em;
  border-radius: 0.3em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%; }

button[type="submit"]:hover {
  background: var(--color-highlight); }

/* Responsive */
@media (max-width: 768px) {
  #header-top {
    height: 260px;
    position: relative; }
  #logo {
    top: 25px; }
  #logo img {
    max-width: 200px;
    max-height: 220px; }
  #header-bottom {
    position: relative;
    z-index: 10;
    background: var(--color-bg); }
  #header-bottom h1 {
    font-size: 1.3em;
    margin-top: 0.5em; }
  main, footer {
    padding: 0 1em; }
  .post {
    padding: 1em; } }
