@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap");

/* CUSTOM PROPERTIES */
:root {
  --accent-color: #af3a5d;
  --accent-color-2: #e267a5;
  --bg-color: #faf1e5;
  --text-color: #260d0c;
  --border-radius: 10px;
  --card-shadow: rgba(0, 0, 0, 0.3) 0 2px 4px;
  --content-width: 75%;
  --content-max-width: 20000px;
}

/* RESET & GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  color: var(--text-color);
  font-family: "Red Hat Display", Arial, sans-serif;
  background: #260d0c url("/images/autumn.jpg") center / cover fixed no-repeat;
}
img,
iframe {
  max-width: 100%;
}
img {
  display: block;
}
a {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
a:hover {
  color: var(--accent-color-2);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-color-2);
  outline-offset: 3px;
}
::selection {
  color: white;
  background: rgb(163, 110, 117);
}

/* PAGE LAYOUT */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content {
  display: flex;
  flex-direction: column;
  width: min(var(--content-width), var(--content-max-width));
  min-width: 0;
  min-height: 60rem;
  font-size: 1.25rem;
  line-height: 1.5;
  background: var(--bg-color);
  border-radius: 0 0 12px 12px;
  box-shadow:
    rgba(0, 0, 0, 0.4) 0 2px 4px,
    rgba(0, 0, 0, 0.3) 0 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
}
.three-columns {
  flex: 1 0 auto;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: stretch;
  gap: 2.5rem;
  margin: 0 auto 3rem;
  padding: 3rem;
  text-align: center;
}
.left-column,
.middle-column,
.right-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.wide-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 2rem 4rem;
}

/* DESKTOP NAVIGATION */
.nav-desktop {
  width: min(var(--content-width), var(--content-max-width));
  margin-top: 2rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgb(109, 95, 95);
  border-radius: 20px 20px 0 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-desktop ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}
.nav-desktop a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--accent-color-2);
  background: rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* BRANDING / LOGO */
.logo-container {
  width: min(100%, var(--content-max-width));
  max-width: var(--content-max-width);
  margin-top: 2rem;
  padding: 2rem 4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}
.logo-container a {
  color: inherit;
  text-decoration: none;
}
.logo-container h1,
#logo-text,
.logo-container span:first-child {
  display: block;
  margin: 0;
  font-family: "Alex Brush", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
}
.logo-container img {
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  padding-bottom: 0.8rem;
  object-fit: contain;
}
.logo-container p,
.logo-container span:last-child {
  display: block;
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

/* CONTENT SECTIONS */
.info-text {
  margin-bottom: 3rem;
}
.middle-column {
  width: 100%;
}
.location {
  padding-top: 2rem;
}
.location p,
.some-box p {
  margin: 0;
}
.menu-container {
  display: none;
}
.contact-info a {
  color: inherit;
  text-decoration: none;
}

/* MAP */
.map {
  width: 100%;
  max-width: 30rem;
}
.map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 18rem;
  margin-top: 2rem;
  border: 0;
  border-radius: var(--border-radius);
}

/* PHOTOS */
.photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 30rem;
  margin-bottom: 2rem;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.left-column .photo {
  max-width: 25rem;
}

/* BUTTONS & LINKS */
.ajanvaraus {
  min-width: 15rem;
  max-width: 100%;
}
.ajanvaraus a {
  display: inline-block;
  max-width: 100%;
  padding: 0.8rem 2rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.ajanvaraus a:hover {
  color: white;
  background: #922d4b;
  transform: translateY(-1px);
}

/* SOCIAL LINKS */
.some {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.some a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0.25rem;
  padding: 0.7rem 1rem;
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.some a img {
  width: auto;
  height: 1.5em;
  padding: 0;
}

/* OPENING HOURS */
.opening-hours {
  display: flex;
  flex-direction: column;
  width: 20rem;
  max-width: 100%;
  height: fit-content;
  margin: 3rem auto;
  padding: 0.5rem 1.25rem 1rem;
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  border: 30px solid transparent;
  border-image: url("/images/border-leaves.png") 30 / 30px round;
}
.opening-hours h2 {
  margin: 0;
  padding-bottom: 0.6rem;
  text-align: center;
  font-family: "Alex Brush", serif;
  font-size: 2.8rem;
  font-weight: 400;
}
.opening-hours table {
  width: 100%;
  border-collapse: collapse;
}
.opening-hours th,
.opening-hours td {
  padding: 0.25rem 1rem;
  text-align: left;
}
.opening-hours tbody tr:nth-child(even) {
  background: #fff;
}

/* BLOG / POSTS */
.page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}
.page-title h1 {
  margin: 0;
  color: var(--accent-color);
  font-family: "Alex Brush", serif;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 400;
}
.recent-posts {
  min-width: 0;
  padding: 0;
  margin-bottom: 4rem;
}
.recent-posts h1 {
  margin: 0;
  color: var(--accent-color);
  font-family: "Alex Brush", serif;
  font-size: 2.8rem;
  font-weight: 400;
}
.recent-posts-list {
  width: 100%;
  max-width: 100%;
  max-height: 65rem;
  min-width: 20rem;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: var(--accent-color) white;
  padding: 0.5rem 1rem;
}
.recent-posts-list .post-preview {
  margin-bottom: 2rem;
}
.show-all-posts-link {
  color: currentColor;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}
.recent-posts-list a:hover,
.all-posts-list a:hover {
  color: var(--accent-color-2);
  transform: none;
}
.all-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  margin: 3rem 0;
}
.post-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 30rem;
  min-height: 0;
  overflow: hidden;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.post-image-wrapper {
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background-color: var(--accent-color);
  background-image: linear-gradient(
    to right,
    #af3a5d,
    #c76c6a,
    #d89a86,
    #e8c7b0
  );
}
.post-image-link {
  display: block;
}
.post-image-link img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}
.post-preview-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.post-date {
  margin: 0;
  font-size: 1rem;
}
.post-title {
  line-height: 1.2;
}
.post-preview-content a {
  color: var(--accent-color);
  text-decoration: none;
}
.post-preview-content h2 {
  margin: 1rem 0 0;
  font-size: 1.6rem;
}
.back-arrow {
  align-self: flex-start;
  margin-bottom: 2rem;
  color: black;
  text-decoration: none;
}
.full-post {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  align-self: stretch;
  gap: 2rem;
  min-width: 0;
}
.full-post p {
  line-height: 1.5;
}
.full-post .post-date {
  margin-bottom: 2rem;
}
.full-post .post-info {
  width: min(50%, 40rem);
  min-width: 0;
  padding: 0 1rem;
  overflow-wrap: anywhere;
}
.full-post img {
  display: block;
  width: min(50%, 40rem);
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.full-post h1 {
  margin: 1rem 0;
  color: var(--accent-color);
}

/* DECORATIVE DIVIDERS */
#divider-fall {
  flex: 1 1 auto;
  width: 100%;
  height: 1.4rem;
  background: url("/images/divider-leaves-2.png") center / auto 100% repeat-x;
}
#divider-fall-2 {
  width: 100%;
  height: 2.8rem;
  background: url("/images/divider-leaves.png") center / auto 100% repeat-x;
}

/* FOOTER */
footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 3rem;
  padding: 1.5rem;
  color: rgb(228, 212, 212);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgb(109, 95, 95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer a {
  color: white;
  text-decoration: none;
}

/* MOBILE & TABLET */
.mobile-menu {
  position: relative;
  width: max-content;
}

.menu-icon {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;

  width: 1.05rem;
  height: 1.05rem;
}

.menu-icon span {
  display: block;

  width: 100%;
  height: 1.5px;

  background: currentColor;
  border-radius: 999px;
}

.mobile-menu[open] .menu-icon span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.mobile-menu[open] .menu-icon span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.45rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  z-index: 100;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: black;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-mobile li:first-child a {
  border-top: 0;
}

@media (max-width: 750px) {
  .mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    background: white;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition:
      background-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }
  .mobile-menu > summary:active {
    transform: scale(0.95);
  }
  body {
    background-attachment: scroll;
  }
  .site-header {
    width: 100%;
  }
  .menu-container {
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    width: auto;
    max-width: calc(100% - 1.5rem);
    padding: 0;
  }
  .nav-desktop {
    display: none;
  }
  .logo-container {
    width: 100%;
    margin-top: 0;
    padding: 4.5rem 1rem 1.5rem;
    border-radius: 0;
  }
  .logo-container h1,
  #logo-text,
  .logo-container span:first-child {
    font-size: clamp(3.4rem, 12vw, 4.5rem);
  }
  .logo-container img {
    width: auto;
    max-width: min(180px, 70vw);
    max-height: 9rem;
    margin: 0 auto;
    object-fit: contain;
  }
  .logo-container p,
  .logo-container span:last-child {
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    overflow-wrap: anywhere;
  }
  .content {
    width: calc(100% - 1.25rem);
    min-height: 0;
    margin: 0.75rem auto 1.5rem;
    padding: 1.25rem 1rem;
    gap: 1.5rem;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .three-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem 0.25rem;
  }
  .left-column,
  .middle-column,
  .right-column {
    width: 100%;
    min-width: 0;
  }
  .wide-container {
    width: 100%;
    margin: 1rem 0;
    padding: 0;
  }
  .info-text {
    margin-bottom: 1.5rem;
  }
  .location {
    padding-top: 1rem;
  }
  .map iframe {
    height: 13rem;
    margin-top: 1rem;
  }
  .photo {
    width: 100%;
    max-height: 12rem;
    margin-bottom: 1rem;
  }
  .ajanvaraus {
    min-width: 0;
    width: 100%;
  }
  .ajanvaraus a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .some {
    gap: 0.25rem;
  }
  .some a {
    margin: 0.2rem;
    padding: 0.65rem;
    font-size: 0.9rem;
  }
  .opening-hours {
    width: 100%;
    max-width: 22rem;
    margin: 1.5rem auto;
    padding: 0.5rem 0.75rem 1rem;
    font-size: 1rem;
    border-width: 20px;
    border-image-width: 20px;
  }
  .opening-hours h2 {
    font-size: 2.4rem;
  }
  .recent-posts {
    width: 100%;
    margin-bottom: 2rem;
  }
  .recent-posts h1 {
    font-size: 2.4rem;
  }
  .recent-posts-list {
    padding: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    min-width: 0;
  }
  .all-posts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
  .post-preview-content {
    padding: 1rem;
    font-size: 1rem;
  }
  .post-preview-content h2 {
    font-size: 1.4rem;
  }
  .full-post {
    flex-direction: column;
    align-self: stretch;
    gap: 1rem;
  }
  .full-post img,
  .full-post .post-info {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .full-post .post-date {
    margin-bottom: 1rem;
  }
  #divider-fall-2 {
    height: 2rem;
  }
  footer {
    margin-top: 1.5rem;
    padding: 1rem;
  }
}
/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
