/*
Theme Name: Project 2 Theme
Author: Wakako Hatta
Description: My DGL233 Project 2 Classic Theme
Version: 1.0
*/

:root {
  --ratio: 0.625; /* 10px / 16px */

  /* Neutral Color */
  --neutral-color: oklch(100% 0 0);
  --neutral-800: oklch(0.25 0.02 260);

  /* Colors */
  --accent-100: oklch(0.5781 0.2172 260.8);
  --accent-200: oklch(65.81% 0.197 260.8);
  --accent-300: oklch(31.68% 0.069 266.84);
  --accent-400: oklch(0.9494 0.0143 329.12);
  --accent-500: oklch(0.9461 0 0);

  /* Fonts */
  --font-heading: "Protest Revolution", sans-serif;
  --font-body: "Georgia", serif;
}

/* TYPOGRAPHY ------------------------------------------------*/
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-block: 0;
  margin-inline: 0;
}

h1 {
  font-size: calc(5rem * var(--ratio));
  line-height: 0.85;
}

h2 {
  font-size: calc(2.6rem * var(--ratio));
  color: var(--accent-100);
}

h3 {
  font-size: calc(2.4rem * var(--ratio));
  color: var(--accent-200);
}

p {
  font-family: var(--font-body);
  color: var(--neutral-800);
  line-height: 1.5;
}

body{
  margin:0;
}

/* Whole page wide */
.site-container{
  width: min(61.5rem, 100%);
  margin-inline: auto;
}

/* Header & Navigation ------------------------------------------------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-300);
  padding: 0.75rem 1rem;
}

.custom-logo {
  display: block;
  max-width: 2rem;
  height: auto;
}

/* Hide checkbox but keep it usable by label */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Hamburger button */
.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.nav-toggle-label span:not(.screen-reader-text) {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  margin-inline: auto;
  background: var(--neutral-color);
  border-radius: 999rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile-first nav */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--accent-300);
  padding: 0 1rem 1rem;
  z-index: 50;
}

.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.menu-item a {
  display: block;
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--neutral-color);
  padding: 0.25rem 0;
}

.current-menu-item > a,
.current-menu-ancestor > a,
.current_page_item > a {
  text-decoration: underline;
}

/* Open mobile menu */
.nav-toggle:checked ~ .site-nav {
  display: block;
}

/* Animate hamburger into X */
.nav-toggle:checked + .nav-toggle-label span:nth-of-type(2) {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-of-type(3) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-of-type(4) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

/* Tablet and up */
@media screen and (min-width: 48.75rem) {
  .site-header {
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
  }

  .site-nav .menu {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Header large desktop */
@media screen and (min-width: 68.75rem) {
  .site-header {
    padding-inline: 2rem;
  }

  .site-nav .menu {
    gap: 2rem;
  }
}

/* Footer ------------------------------------------------- */
footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;  
  gap: 1.5rem;
  padding-block: 1rem;
  padding-inline: 0.5rem;
  background: var(--accent-300);
}

/* copyright */
footer p{
  margin: 0;
  color: var(--neutral-color);
}

/* footer menu */
footer .menu{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: center;  
  gap: 0.75rem;
}

footer .menu a{
  text-decoration: none;
  color: var(--neutral-color);
}

/* Footer PC Size */
@media screen and (min-width: 68.75rem){
  /* 2 columns*/
  footer{
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    text-align: center;
  }

  footer .menu{
    align-items: center;
  }
}

/* --------------------- */
/* Home Page             */
/* --------------------- */

/* HERO ------------------------------------------------- */
#home {
  display: block;
}

/* Hero area styles */
#home .hero-media,
.contact-page__hero {
  position: relative;
  overflow: hidden;
  height: 70vh;
  max-height: 34rem;
}

#home .hero-media > img,
.contact-page__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Home-only hero layout */
#home .hero-media {
  display: grid;
  place-items: start center;
  padding-block-start: 4.5rem;
  padding-inline: 1.25rem;
}

#home .hero-media > img {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* White box on Hero image */
#home .hero-content {
  background: var(--neutral-color);
  width: min(15rem, 100%);
  padding-block: 1.25rem 1.5rem;
  padding-inline: 1.25rem;
  text-align: center;
}

/* Hero white box text */
#home .hero-content .hero-name{
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
}

#home .hero-content .hero-tagline{
  font-family: var(--font-body);
  margin: 0.5rem 0 0;
  color: var(--accent-100);
  font-size: 1.6rem;
  line-height: 1.3;
}

/* Intro styles(sentences under Hero image) */
#home .hero-intro {
  background: var(--neutral-800);
  padding-block: 1rem 1.5rem;
  padding-inline: 1rem;
  text-align: center;
}

#home .hero-intro p {
  margin: 0;
  color: var(--neutral-color);
}

#home .hero-intro p + p {
  margin-top: 0.75rem;
}

/* Hero PC Size (min-width: 48.75rem) */
@media screen and (min-width: 48.75rem) {
  #home .hero-media,
  .contact-page__hero {
    height: 62vh;
    max-height: 36rem;
  }

  #home .hero-media {
    padding-block-start: 5.5rem;
    padding-inline: 2rem;
  }

  #home .hero-content {
    width: min(40rem, 100%);
    padding-block: 1.5rem 1.5rem;
    padding-inline: 1.75rem;
  }
}

/* About ------------------------------------------------- */
.section-about{
  background: var(--accent-400);
}

.section-about .about-inner{
  padding-block: 1.75rem;
  padding-inline: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-about .about-text h2{
  margin-bottom: 0.75rem;
}

.section-about .about-body p{
  margin: 0;
  line-height: 1.6;
}

.section-about .about-body p + p{
  margin-top: 1rem;
}

.section-about .about-photo{
  margin: 0;
  align-self: center;
}

.section-about .about-photo img{
  display: block;
  width: min(9rem, 60vw);
  aspect-ratio: 0.8 / 0.8;
  object-fit: cover;
  border-radius: 1.25rem;
}

/* About PC Size */
@media screen and (min-width: 48.75rem){ /* 780px*/
  .section-about .about-inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-block: 2.25rem;
    padding-inline: 2rem;
  }

  .section-about .about-text{
    flex: 1;
  }

  .section-about .about-photo{
    flex: 0 0 auto;
    align-self: center;
  }

}

/* Skills ------------------------------------------------- */
.section-skills{
  background: var(--accent-500);
  padding-block: 1.75rem;
  padding-inline: 1.25rem;
}

/* Education ------------------------------------------------- */
.section-edu{
  background: var(--accent-400);
  padding-block: 1.75rem;
  padding-inline: 1.25rem;
}

/* --------------------- */
/* Archive Page          */
/* --------------------- */
.project-archive {
  background: var(--accent-400);
  padding-block: 1rem 2.75rem;
  padding-inline: 1rem;
}

.project-archive__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.project-archive__header h1 {
  margin: 0;
}

.project-archive__grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  background: var(--neutral-color);
  border: 0.0625rem solid rgba(0, 0, 0, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 0.2rem 0.55rem var(--accent-300);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.16);
}

.project-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card__media {
  padding: 1rem;
}

.project-card__image,
.project-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 1rem;
  background: var(--accent-500);
}

.project-card__placeholder {
  display: grid;
  place-items: center;
}

.project-card__placeholder p {
  margin: 0;
}

.project-card__body {
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
}

.project-card__title {
  margin: 0;
  color: var(--accent-100);
  font-size: calc(2.35rem * var(--ratio));
  line-height: 1.05;
}

.project-archive__empty {
  text-align: center;
  padding-block: 2rem;
}

.project-archive__empty p {
  margin: 0;
}

.project-archive__cta {
  margin-top: 2rem;
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--accent-300);
  background: var(--neutral-color);
  border-radius: 999rem;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
  color: var(--neutral-color);
  background: var(--accent-200);
}



@media screen and (min-width: 48.75rem) {
  .project-archive {
    padding-block: 1rem 3rem;
    padding-inline: 1.5rem;
  }

  .project-archive__header {
    margin-bottom: 2rem;
  }

  .project-archive__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}


/* --------------------- */
/* Single Page           */
/* --------------------- */
.project-single {
  background: var(--accent-400);
}

.project-hero {
  padding-top: 0;
}

.project-hero__media {
  margin: 0;
}

.project-hero__image {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center;
}

.project-hero__intro {
  width: min(58rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}


@media screen and (min-width: 48.75rem) {
  .project-hero__image {
    height: 22rem;
  }

  .project-details,
  .project-content,
  .project-navigation,
  .project-cta {
    padding-inline: 1.5rem;
  }

  .project-hero__intro {
    padding-inline: 1.5rem;
  }

  .project-details__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

}

.project-details,
.project-content,
.project-navigation,
.project-cta {
  width: min(58rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.project-hero__intro {
  padding-block: 0.75rem 1rem;
}

.project-hero__excerpt {
  margin-top: 0.75rem;
}

.project-hero__excerpt p {
  margin: 0;
}

.project-details {
  padding-bottom: 1.75rem;
}

.project-details__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.project-details__item {
  background: var(--accent-400);
  box-shadow: 0 0.2rem 0.5rem var(--accent-200);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
}

.project-details__item h3 {
  margin-bottom: 0.5rem;
}

.project-details__content p {
  margin: 0;
}

.project-content {
  padding-bottom: 2rem;
}

.project-content__inner {
  max-width: 58rem;
}

.project-content__inner > * + * {
  margin-top: 1rem;
}

/* Heading blocks in project content */
.project-content__inner h2,
.project-content__inner h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--accent-200);
  font-size: calc(2.4rem * var(--ratio));
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.project-content__inner h2:first-child,
.project-content__inner h3:first-child {
  margin-top: 0;
}

.project-content__inner p {
  max-width: 60rem;
}

.project-content__inner figure,
.project-content__inner img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Columns block for Design Process / Development */
.project-content__inner .wp-block-columns {
  align-items: start;
  gap: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.project-content__inner .wp-block-column {
  flex: 1;
}

.project-content__inner .wp-block-column:first-child {
  flex: 0 0 10rem;
}

.project-content__inner .wp-block-image {
  margin: 0;
}

.project-content__inner .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

.project-navigation > div {
  flex: 1;
}

.nav-previous {
  text-align: left;
}

.nav-archive {
  text-align: center;
}

.nav-next {
  text-align: right;
}

.project-navigation__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.project-navigation__prev,
.project-navigation__next {
  min-width: 8rem;
}

.project-navigation a {
  text-decoration: none;
  color: var(--accent-100);
  font-family: var(--font-body);
}

.project-cta {
  padding-bottom: 2.5rem;
}


/* --------------------- */
/* Contact Page          */
/* --------------------- */
.contact-page {
  background: var(--accent-400);
  padding-bottom: 2.5rem;
}

.contact-page__hero {
  height: 30vh;
  max-height: 26rem;
}

.contact-page__hero-image {
  object-position: center 65%;
}

.contact-page__article {
  width: 100%;
}

.contact-page__intro,
.contact-page__details {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.contact-page__intro {
  padding-block: 1.25rem 1rem;
}

.contact-page__title {
  margin-bottom: 1rem;
}

.contact-page__content > *:first-child {
  margin-top: 0;
}

.contact-page__content > *:last-child {
  margin-bottom: 0;
}

.contact-page__content p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.contact-page__content p + p {
  margin-top: 0;
}

/* Contact Form 7 */
.contact-page .wpcf7 {
  margin-top: 1.5rem;
}

.contact-page .wpcf7-form {
  background: var(--accent-400);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 0.2rem 0.55rem var(--accent-300);
}

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

.contact-page .wpcf7-form p:last-of-type {
  margin-bottom: 0;
  text-align: center;
}

.contact-page .wpcf7-form label {
  display: block;
  font-family: var(--font-body);
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.contact-page .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.45rem;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--neutral-800);
  background: var(--neutral-color);
  border: 0.0625rem solid rgba(0, 0, 0, 0.16);
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.contact-page input[type="text"]:focus,
.contact-page input[type="email"]:focus,
.contact-page textarea:focus {
  outline: 0.125rem solid var(--accent-200);
  outline-offset: 0.1rem;
}

.contact-page textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-page input[type="submit"] {
  display: block;
  width: fit-content;
  min-width: 10rem;
  margin-inline: auto;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--accent-300);
  color: var(--neutral-color);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.contact-page input[type="submit"]:hover,
.contact-page input[type="submit"]:focus {
  background: var(--accent-200);
  border-radius: 999rem;
}

/* CF7 messages */
.contact-page .wpcf7-response-output,
.contact-page .wpcf7-not-valid-tip {
  font-family: var(--font-body);
}

.contact-page .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent-500);
}

.contact-page__details {
  margin-top: 1.5rem;
}

.contact-page__details:empty {
  display: none;
}

.contact-page__details-title {
  margin-bottom: 0.75rem;
}

.contact-page__details p {
  margin: 0;
  line-height: 1.7;
}

.contact-page__details p + p {
  margin-top: 0.5rem;
}

@media screen and (min-width: 48.75rem) {
  .contact-page {
    padding-bottom: 3rem;
  }

  .contact-page__intro,
  .contact-page__details {
    padding-inline: 1.5rem;
  }

  .contact-page__intro {
    padding-block: 1.5rem 1.25rem;
  }

  .contact-page .wpcf7-form {
    padding: 1.5rem;
  }
}

/* --------------------- */
/* 404 Not found         */
/* --------------------- */
.error-404 {
  padding: 4rem 1.5rem;
  background-color: var(--accent-400) ;
}

.error-404__content {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.error-404__content h1 {
  margin-bottom: 1rem;
}

.error-404__content p {
  margin-bottom: 2rem;
}

/* --------------------- */
/* CTA                   */
/* --------------------- */
.cta-block {
  display: flex;
  justify-content: center;
}

.cta-block__inner {
  padding-top: 0.75rem;
}

.cta-block__button {
  display: inline-block;
  min-width: 8rem;
  padding: 0.55rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--neutral-color);
  background: var(--accent-300);
  font-family: var(--font-body);
  border-radius: 0.125rem;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.cta-block__button:hover,
.cta-block__button:focus {
  background: var(--accent-200);
  border-radius: 999rem;
}

.error404 .cta-block {
  background-color: var(--accent-400);
  padding: 4rem 1rem;
}

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

