:root {
  --bg: rgb(240, 244, 239);
  --fg: rgb(18, 18, 18);
  --muted: rgba(18, 18, 18, 0.7);
  --line: rgba(18, 18, 18, 0.12);
  --accent: rgb(185, 206, 180);
  --card: #f3f0e9;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

main {
  flex: 1;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.page-width {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.page-width.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  padding: 1.75rem 1rem 1rem;
}

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.site-header a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.site-footer .tagline {
  margin: 0 0 1rem;
}

.site-footer .social {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.site-footer .social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.site-footer .social a:hover {
  transform: scale(1.1);
}

.site-footer .copyright {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Home */
.photoyoshi {
  background-size: cover;
  background-position: center;
  padding: 2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.photoyoshi-card {
  background-color: var(--card);
  padding: 4rem;
  width: 100vh;
  height: 80vh;
  max-width: min(1500px, 100%);
  max-height: 1200px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.photoyoshi-header {
  margin: 0;
  text-align: center;
  position: absolute;
  top: -5rem;
  left: 50%;
  width: calc(100% - 1rem);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.photoyoshi-header img {
  max-width: 1000px;
  width: 100%;
}

.photoyoshi-video {
  width: 40%;
  height: 70%;
  overflow: hidden;
  transform: translateY(-2.4rem);
  background-color: #e0e0e0;
}

.photoyoshi-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photoyoshi-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: absolute;
  bottom: 1rem;
  left: 4rem;
  right: 4rem;
}

.photoyoshi-footer p {
  flex: 1;
  margin: 0.5rem 0;
}

.photoyoshi-footer .left {
  font-style: italic;
}

.photoyoshi-footer .center {
  text-align: center;
}

.photoyoshi-footer .right {
  text-align: right;
  font-size: 2rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .photoyoshi {
    padding: 1rem;
    min-height: 0;
  }

  .photoyoshi-card {
    padding: 2rem 1.25rem;
    width: 100%;
    height: auto;
    max-height: none;
    flex-direction: column;
  }

  .photoyoshi-header {
    position: static;
    width: 100%;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .photoyoshi-video {
    width: 70%;
    height: auto;
    aspect-ratio: 3 / 4;
    transform: none;
  }

  .photoyoshi-footer {
    position: static;
    flex-direction: column;
    margin-top: 1.5rem;
    gap: 0;
  }

  .photoyoshi-footer p {
    text-align: center;
  }
}

/* Rich text */
.rte p {
  margin: 0 0 1.25rem;
}

.rte .center {
  text-align: center;
}

.rte img.centered {
  display: block;
  margin: 0 auto;
}

.rte iframe {
  border: 0;
  max-width: 100%;
}

.rte .shorts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Collections */
.collection-description {
  color: var(--muted);
}

.empty {
  text-align: center;
  font-size: 1.4rem;
  padding: 3rem 0;
}

.grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem 1rem;
}

.card a {
  display: block;
  text-decoration: none;
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card a:hover .card-media img {
  transform: scale(1.03);
}

.card h3 {
  font-size: 0.95rem;
  margin: 0.9rem 0 0.2rem;
}

.card a:hover h3 {
  text-decoration: underline;
}

.price {
  margin: 0;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.card-media .badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
}

/* Product */
.product {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.gallery-main {
  display: block;
  width: 100%;
  background: #fff;
}

.thumbs {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.5rem;
}

.thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
}

.thumbs button[aria-current="true"] {
  border-color: var(--fg);
}

.thumbs img {
  display: block;
}

.product-info .vendor {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.product-info .price {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.options fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.options legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choices span {
  display: block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.choices span:hover {
  border-color: var(--fg);
}

.choices input:checked + span {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.choices input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.notice {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* Blog */
.post-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post-card a {
  display: block;
  height: 100%;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  text-decoration: none;
}

.post-card a:hover h2 {
  text-decoration: underline;
}

.post-card .post-media {
  margin: -1.75rem -1.75rem 1.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card .post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.date {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.article header.page-width {
  padding-bottom: 0;
}

.article .rte {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.article .back {
  padding-top: 0;
  text-align: center;
}

/* Contact */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.55);
  background: transparent;
  color: var(--fg);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}

button[type="submit"],
.button {
  display: inline-block;
  justify-self: start;
  padding: 0.85rem 2.25rem;
  border: 0;
  background: var(--accent);
  color: var(--fg);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button[type="submit"]:hover,
.button:hover {
  outline: 1px solid var(--fg);
}

.not-found {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

/* Archive */
.archive {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.archive h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.archive-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.archive .card-media img {
  filter: saturate(0.75);
}

/* Buy link */
.buy {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.buy-button {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
}

.buy-button:hover {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.buy-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact extras */
.lead {
  margin: 0 0 2rem;
  color: var(--muted);
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--fg);
  background: rgba(255, 255, 255, 0.6);
}

.form-status[data-kind="ok"] {
  border-color: #2e7d4f;
}

.form-status[data-kind="error"] {
  border-color: #b3261e;
}

.contact-alt {
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Status note and scrolling photo strip */
.status {
  text-align: center;
  padding: 2rem 0 1rem;
}

.status p {
  margin: 0 0 1.25rem;
}

.status .status-heading {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.photo-strip {
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 3rem;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
  animation: photo-scroll 70s linear infinite;
}

.photo-strip:hover ul,
.photo-strip:focus-within ul,
.photo-strip:focus ul {
  animation-play-state: paused;
}

.photo-strip li {
  flex: none;
  padding-right: 0.75rem;
}

.photo-strip img {
  display: block;
  height: clamp(220px, 42vh, 420px);
  width: auto;
  max-width: none;
}

@keyframes photo-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip ul {
    animation: none;
  }
}

/* Services under the status note */
.status .status-text {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.services {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  max-width: 46rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  text-align: left;
}

.services li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.services h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.services p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.services .service-link {
  margin-top: 0.9rem;
  color: var(--fg);
}
