/*
Theme Name: Your Name Portfolio
Author: Codex
Description: Soft minimal portfolio WordPress theme using Contact Form 7.
Version: 1.5.4
Requires at least: 6.0
License: GPL-2.0-or-later
Text Domain: your-name-portfolio
*/

:root {
  --ink: #5f5148;
  --muted: #95887f;
  --line: #e8ded5;
  --paper: #fffdfb;
  --milk: #faf6f1;
  --accent: #aa9a8b;
  --accent-dark: #867466;
  --shadow: 0 18px 60px rgba(95, 81, 72, 0.08);
  --serif: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text,
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, 0.92);
  border-bottom: 1px solid rgba(232, 222, 213, 0.7);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.container,
.hero__inner,
.site-footer__inner,
.entry {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  min-width: 142px;
  line-height: 1.1;
}

.site-logo__name {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
}

.site-logo__sub {
  padding-left: 50px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.site-nav {
  flex: 1 1 auto;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a,
.footer-menu a {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-menu a:hover,
.footer-menu a:hover {
  color: var(--ink);
}

.site-header__links,
.site-footer__links {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.icon-link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.site-main {
  overflow: hidden;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section--compact {
  padding: clamp(54px, 7vw, 86px) 0;
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading--left {
  text-align: left;
}

.section-heading__title,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-heading__title::after,
.page-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--accent);
}

.section-heading--left .section-heading__title::after {
  margin-left: 0;
}

.section-heading__lead,
.page-lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  --hero-bg: radial-gradient(circle at 22% 52%, rgba(223, 205, 188, 0.45), transparent 24%),
    linear-gradient(115deg, #ebe0d4 0%, #fbf7f1 48%, #fffdfb 100%);
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 58vh, 590px);
  background-image: linear-gradient(90deg, rgba(255, 253, 251, 0.08), rgba(255, 253, 251, 0.78) 55%, rgba(255, 253, 251, 0.92)), var(--hero-bg);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  left: max(40px, calc((100vw - var(--container)) / 2));
  bottom: 8%;
  width: min(340px, 38vw);
  aspect-ratio: 1 / 1.08;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 48% 92%, rgba(151, 132, 113, 0.18) 0 13%, transparent 14%),
    radial-gradient(ellipse at 42% 74%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
    linear-gradient(68deg, transparent 40%, rgba(177, 144, 116, 0.24) 41% 42%, transparent 43%),
    linear-gradient(82deg, transparent 42%, rgba(177, 144, 116, 0.18) 43% 44%, transparent 45%),
    linear-gradient(108deg, transparent 44%, rgba(177, 144, 116, 0.2) 45% 46%, transparent 47%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.hero__copy {
  grid-column: 2;
  animation: heroFade 900ms ease both 140ms;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 400;
  line-height: 1.55;
}

.hero__lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.portfolio-slider {
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
}

.portfolio-slider__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.portfolio-slider__track {
  display: flex;
  width: max-content;
  gap: clamp(20px, 3vw, 34px);
  padding: 0 max(24px, calc((100vw - var(--container)) / 2)) 4px;
  will-change: transform;
}

.portfolio-slider .portfolio-card {
  flex: 0 0 clamp(180px, 18vw, 240px);
}

.portfolio-card {
  text-align: center;
}

.portfolio-card__thumb,
.portfolio-card__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.23;
  object-fit: cover;
  background:
    radial-gradient(circle at 78% 18%, rgba(224, 200, 178, 0.7), transparent 18%),
    linear-gradient(135deg, #efe5dc, #fffaf5 58%, #ead9ca);
  transition: transform 280ms ease, filter 280ms ease;
}

.portfolio-card a:hover .portfolio-card__thumb,
.portfolio-card a:hover .portfolio-card__placeholder {
  filter: brightness(1.02);
  transform: translateY(-3px);
}

.portfolio-card__title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.portfolio-card__meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.button-wrap,
.post-actions {
  margin-top: 46px;
  text-align: center;
}

.line-button,
.submit-button,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 48px;
  padding: 0 28px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.line-button {
  color: var(--ink);
  background: transparent;
}

.line-button:hover,
.wpcf7-submit:hover {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.profile-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
  padding: clamp(42px, 7vw, 70px);
  background: rgba(250, 246, 241, 0.82);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(145, 116, 101, 0.24) 0 12%, transparent 13%),
    radial-gradient(circle at 52% 48%, rgba(246, 238, 231, 1) 0 31%, transparent 32%),
    linear-gradient(180deg, #eee1d6, #fff8f1);
  border-radius: 50%;
}

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

.profile-copy {
  max-width: 520px;
}

.profile-copy p {
  margin: 0 0 20px;
  font-weight: 700;
}

.profile-copy__label {
  display: block;
  margin-top: 32px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  text-transform: uppercase;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.flow-item {
  position: relative;
  text-align: center;
}

.flow-item:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50px;
  right: -18px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
}

.flow-item__number {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.flow-item__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  color: var(--accent-dark);
  background: var(--milk);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(232, 222, 213, 0.75);
}

.flow-item__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-item__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
}

.flow-item__text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.85;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.price-card {
  min-height: 300px;
  padding: 42px 30px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.68);
  text-align: center;
}

.price-card__name {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 16px;
}

.price-card__price {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.price-card__list {
  display: inline-block;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  text-align: left;
}

.price-card__list li + li {
  margin-top: 8px;
}

.price-card__list li::before {
  content: "- ";
}

.contact-section {
  background:
    radial-gradient(circle at 11% 40%, rgba(217, 191, 166, 0.36), transparent 20%),
    linear-gradient(90deg, #f7efe7 0%, #fffdfb 38%, #f9f2eb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 78px);
  align-items: start;
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .wpcf7 form {
  display: grid;
  gap: 16px;
}

.contact-form .wpcf7 p {
  margin: 0;
}

.contact-form .wpcf7 br {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.contact-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > span:first-child,
.contact-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field p {
  margin: 0;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.field input:not([type="submit"]),
.field select,
.field textarea,
.contact-form .wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.contact-form .wpcf7 select,
.contact-form .wpcf7 textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 253, 251, 0.72);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.field textarea,
.contact-form .wpcf7 textarea {
  min-height: 158px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form .wpcf7 input:not([type="submit"]):focus,
.contact-form .wpcf7 select:focus,
.contact-form .wpcf7 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170, 154, 139, 0.16);
}

.contact-options .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-options .wpcf7-list-item {
  display: block;
  margin: 0;
}

.contact-options .wpcf7-list-item label {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(255, 253, 251, 0.75);
  border: 1px solid var(--line);
  cursor: pointer;
}

.contact-options input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0 10px 0 0;
  accent-color: var(--accent-dark);
  flex: 0 0 auto;
}

.contact-options .wpcf7-list-item-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.contact-options .wpcf7-list-item label:has(input:checked) {
  color: var(--ink);
  background: #fff;
  border-color: var(--accent);
}

.wpcf7-submit {
  width: 100%;
}

.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-color: var(--line);
}

.contact-notice {
  padding: 14px 16px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.page-hero {
  padding: clamp(72px, 10vw, 124px) 0 clamp(48px, 7vw, 76px);
  background: linear-gradient(135deg, #f8f1eb, #fffdfb);
  text-align: center;
}

.single-portfolio {
  padding: clamp(64px, 8vw, 112px) 0;
}

.single-portfolio__back {
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.back-link span {
  font-size: 18px;
  line-height: 1;
}

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

.single-portfolio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.single-portfolio__grid--single {
  grid-template-columns: minmax(0, 760px);
}

.single-portfolio__eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
}

.single-portfolio__title,
.entry-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.35;
}

.single-portfolio__subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.single-portfolio__image,
.single-portfolio__content,
.entry-content {
  margin-top: 40px;
}

.single-portfolio__image {
  max-width: 620px;
}

.single-portfolio__image img {
  width: 100%;
  object-fit: contain;
}

.single-portfolio__meta {
  padding: 28px;
  background: var(--milk);
  border: 1px solid var(--line);
}

.single-portfolio__meta-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.single-portfolio__meta dl {
  margin: 0;
}

.single-portfolio__meta div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.single-portfolio__meta dt {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.single-portfolio__meta dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.post-list {
  display: grid;
  gap: 18px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.post-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.78);
}

.post-card__date {
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 700;
}

.post-card__title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 22px;
}

.entry {
  padding: clamp(64px, 8vw, 112px) 0;
}

.site-footer {
  background: #eee2d7;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 104px;
}

.copyright {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  text-align: center;
}

.pagination {
  margin-top: 46px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  margin: 0 2px;
  border: 1px solid var(--line);
}

.pagination .current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__copy,
  .scroll-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .portfolio-slider__track {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 24px;
    background: rgba(255, 253, 251, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 18px;
    justify-items: center;
  }

  .site-header__links {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    grid-column: 1;
    width: min(420px, 100%);
    margin-left: auto;
  }

  .portfolio-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-slider .portfolio-card {
    flex-basis: clamp(190px, 34vw, 240px);
  }

  .flow-item:not(:last-child)::after {
    display: none;
  }

  .profile-panel,
  .contact-grid,
  .single-portfolio__grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
    text-align: center;
  }

  .site-footer .site-logo {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .container,
  .hero__inner,
  .entry,
  .site-footer__inner {
    width: min(100% - 32px, var(--container));
  }

  .site-logo__name {
    font-size: 22px;
  }

  .hero {
    min-height: 470px;
    background-image: linear-gradient(180deg, rgba(255, 253, 251, 0.2), rgba(255, 253, 251, 0.94)), var(--hero-bg);
  }

  .hero::before {
    left: 8px;
    width: 66vw;
  }

  .hero__copy {
    margin: 155px 0 0;
  }

  .portfolio-grid,
  .form-row,
  .flow-list,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .contact-options .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .portfolio-slider__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .portfolio-slider .portfolio-card {
    flex-basis: min(68vw, 230px);
  }

  .profile-panel,
  .price-card {
    padding: 32px 22px;
  }

  .footer-menu {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}
