/* ---- Base ---- */
@font-face {
  font-family: "Lobster Two";
  src: url("../fonts/LobsterTwo.ttf");
}

@font-face {
  font-family: "Sansita Swashed";
  src: url("../fonts/SansitaSwashed.ttf");
  font-weight: 600;
}

@font-face {
  font-family: "Sansita Swashed";
  src: url("../fonts/SansitaSwashed-Light.ttf");
  font-weight: 300;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans.ttf");
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans-Italic.woff2");
  font-style: italic;
}

:root {
  --bg: #faf6f0;
  --ink: #2b2a28;
  --muted: #6f6a62;
  --accent: #b5643f;
  --border: #e3dcd0;
  --sage: #cfdac5;
  --sage-light: #ecf0e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Josefin Sans", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Josefin Sans", Helvetica, Arial, sans-serif;
  font-weight: normal;
  margin: 0 0 0.4em;
}

a {
  color: var(--ink);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Nav ---- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--sage);
  /* thin accent stripe, a deeper shade of the header green */
  border-bottom: 5px solid #8ea383;
}

.site-header .logo {
  font-family: "Sansita Swashed", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

/* thinner slashes and a leaning Lobster Two "J" in the title */
.site-header .logo .slashes {
  font-weight: 300;
}

.site-header .logo .swap-j {
  display: inline-block;
  font-family: "Lobster Two", Georgia, serif;
  font-size: 1.05em;
  transform: skewX(-12deg);
}

/* tall four-point decorative stars beside the title */
.star {
  display: inline-block;
  background: #000;
  /* star shape with softly curved sides and rounded tips */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q52.5 47.5 95.5 48.4Q100 50 95.5 51.6Q52.5 52.5 51.6 95.5Q50 100 48.4 95.5Q47.5 52.5 4.5 51.6Q0 50 4.5 48.4Q47.5 47.5 48.4 4.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q52.5 47.5 95.5 48.4Q100 50 95.5 51.6Q52.5 52.5 51.6 95.5Q50 100 48.4 95.5Q47.5 52.5 4.5 51.6Q0 50 4.5 48.4Q47.5 47.5 48.4 4.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.star.big {
  width: 0.5em;
  height: 0.8em;
  vertical-align: -0.05em;
}

.star.small {
  width: 0.3em;
  height: 0.46em;
  margin: 0 0.35em 0 0.05em;
  vertical-align: 0.45em;
}

.star.small.right {
  margin: 0 0 0 0.3em;
}

/* stars on page titles: two little stars on each side, one high and one low,
   a little slimmer than the header stars so they echo it without copying */
.starred-title .star {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q51.5 48.5 95.5 48.4Q100 50 95.5 51.6Q51.5 51.5 51.6 95.5Q50 100 48.4 95.5Q48.5 51.5 4.5 51.6Q0 50 4.5 48.4Q48.5 48.5 48.4 4.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q51.5 48.5 95.5 48.4Q100 50 95.5 51.6Q51.5 51.5 51.6 95.5Q50 100 48.4 95.5Q48.5 51.5 4.5 51.6Q0 50 4.5 48.4Q48.5 48.5 48.4 4.5Z'/%3E%3C/svg%3E");
}

.starred-title .star.small {
  margin: 0 0.12em;
  vertical-align: 0.5em;
}

.starred-title .star.small.low {
  vertical-align: 0.1em;
}

.starred-title .star.low:nth-child(2) {
  margin-right: 0.4em;
}

.starred-title .star.low:nth-last-child(2) {
  margin-left: 0.4em;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32em;
  margin: 0 auto;
}

/* home page intro: paragraph on the left, round photo on the right */
.hero.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: left;
}

.hero.intro p {
  margin: 0;
}

.portrait {
  position: relative;
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* thin sunburst rays all the way around the home page photo */
.portrait-wrap {
  position: relative;
  flex-shrink: 0;
  margin: 3rem;
}

.portrait-rays {
  position: absolute;
  /* sized relative to the photo circle, so the rays shrink or grow with it */
  inset: -30%;
  width: 160%;
  height: 160%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.portrait-placeholder {
  color: var(--muted);
  font-size: 0.85rem;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* on phones, put the photo above the paragraph */
@media (max-width: 600px) {
  .hero.intro {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.art-piece {
  margin: 0;
}

.art-piece img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.art-piece figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.art-piece a {
  display: block;
  transition: opacity 0.2s ease;
}

.art-piece a:hover {
  opacity: 0.85;
}

/* ---- Artwork page ---- */
.artwork {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--ink);
}

.artwork-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 1rem 0 1.5rem;
}

.viewer-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.thumbs button {
  width: 90px;
  height: 90px;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  align-self: auto;
}

.thumbs button.active {
  border-color: var(--ink);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.artwork-nav a {
  color: var(--muted);
}

.artwork-nav a:hover {
  color: var(--ink);
}

/* ---- Slideshow (home page) ---- */
.slideshow {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.slides {
  position: relative;
  aspect-ratio: 5 / 2;
  border-radius: 4px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

/* each artwork is shown whole, centered on a soft color picked to complement it */
.slide {
  padding: 0;
  pointer-events: none;
}

.slide.active {
  pointer-events: auto;
}

.slide img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.slide:hover img {
  transform: scale(1.02);
}

/* a soft watercolor-like wash in the color around each artwork */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 60% at 12% 22%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(ellipse 40% 55% at 88% 78%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 35% 45% at 85% 12%, rgba(43, 42, 40, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 88%, rgba(43, 42, 40, 0.08), transparent 70%);
}

.slide img,
.slide-title {
  z-index: 1;
}

.slide img {
  position: relative;
}

.slide-title {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* two tiny stars before each slideshow title, one high and one low */
.slide-title .star {
  width: 0.3em;
  height: 0.46em;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q51.5 48.5 95.5 48.4Q100 50 95.5 51.6Q51.5 51.5 51.6 95.5Q50 100 48.4 95.5Q48.5 51.5 4.5 51.6Q0 50 4.5 48.4Q48.5 48.5 48.4 4.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M48.4 4.5Q50 0 51.6 4.5Q51.5 48.5 95.5 48.4Q100 50 95.5 51.6Q51.5 51.5 51.6 95.5Q50 100 48.4 95.5Q48.5 51.5 4.5 51.6Q0 50 4.5 48.4Q48.5 48.5 48.4 4.5Z'/%3E%3C/svg%3E");
  vertical-align: 0.42em;
  margin-right: 0.03em;
}

.slide-title .star.low {
  vertical-align: 0.12em;
  margin-right: 0.25em;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.85);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.slide-btn.prev { left: 2.75rem; }
.slide-btn.next { right: 2.75rem; }

.dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 50%;
  background: var(--border);
}

.dots button.active {
  background: var(--accent);
}

@media (max-width: 700px) {
  .slides { aspect-ratio: 4 / 3; }
}

/* ---- Generic page content ---- */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page .portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a4a2c);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* About page: words on the left, rotating tall photos on the right */
.page.about {
  max-width: 960px;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-photos {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.about-photo.active {
  opacity: 1;
}

.about-photo.blank {
  background: var(--sage);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* on phones, put the photos above the words */
@media (max-width: 700px) {
  .page.about {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }

  .about-photos {
    width: 220px;
  }
}

/* ---- Form ---- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  font: inherit;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  align-self: flex-start;
}

button:hover {
  opacity: 0.9;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* spam trap on the Connect form: off-screen for people, still filled in by bots */
.form-trap {
  position: absolute;
  left: -9999px;
}

/* "Thank you" or "something went wrong" under the Send button */
.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status.sent {
  color: #5e7553;
}

.form-status.error {
  color: #a3442a;
}

/* ---- Connect page icons: one sage bar holding all the links ---- */
.connect-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--sage);
}

.connect-icon {
  display: flex;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.connect-icon svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.2s ease;
}

.connect-icon svg .dot {
  fill: var(--ink);
}

.connect-icon:hover {
  opacity: 1;
}

.connect-icon:hover svg {
  background: #b6c6aa;
}

/* snail mail pop-up */
.snail-mail {
  max-width: 26rem;
  border: none;
  border-top: 5px solid #8ea383;
  border-radius: 6px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

.snail-mail-inner {
  padding: 1.8rem 2rem;
}

.snail-mail::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.snail-mail ol {
  padding-left: 1.2rem;
}

.snail-mail li {
  margin-bottom: 0.5rem;
}

.mail-address {
  display: inline-block;
  margin-top: 0.3rem;
  font-style: italic;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem;
  background: var(--sage-light);
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
