/*
Theme Name: Naruibuki Portfolio
Theme URI: https://naruibuki.com/
Author: Codex
Description: A quiet fixed-sidebar portfolio theme for NARUMI IBUKI.
Version: 1.0.13
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naruibuki-portfolio
Tags: portfolio, photography, custom-menu, featured-images
*/

:root {
  color-scheme: light;
  --page: #fff;
  --menu-bg: #abced8;
  --ink: #111;
  --muted: #6d6d6d;
  --faint: #e7e7e7;
  --hover: #999;
  --measure: 680px;
  font-family: Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.86;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--hover);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--page);
  padding: 8px 10px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.site-header {
  align-self: start;
  background: var(--menu-bg);
  min-height: 100vh;
  padding: 42px 28px 32px 42px;
  position: sticky;
  top: 0;
}

.admin-bar .site-header {
  top: 32px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 44px;
}

.menu-toggle,
.mobile-instagram-nav {
  display: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.brand {
  display: inline-block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.instagram-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-nav-list,
.site-nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-nav-list > li > a {
  font-size: 13px;
}

.site-nav-list .sub-menu {
  display: none;
  margin: -2px 0 14px 14px;
  max-width: 190px;
}

.site-nav-list li:hover > .sub-menu,
.site-nav-list li:focus-within > .sub-menu {
  display: block;
}

.site-nav-list .sub-menu li {
  margin: 0 0 8px;
  line-height: 1.58;
}

.site-nav-list .sub-menu a {
  color: var(--muted);
  font-size: 12px;
}

.site-nav-list .sub-menu a:hover,
.site-nav-list .sub-menu a:focus-visible {
  color: var(--ink);
}

.site-main {
  width: 100%;
  max-width: none;
  padding: 42px 42px 64px 24px;
}

.home .site-main,
.page-template-page-work .site-main,
.page-id-132 .site-main {
  padding: 0;
}

.intro,
.section {
  max-width: var(--measure);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  padding-top: 0;
  max-width: none;
}

.home-photo {
  justify-self: stretch;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.home-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 1200ms ease;
}

.home-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-photo img {
  width: 100%;
  height: 100vh;
  aspect-ratio: auto;
  border: 1px solid var(--faint);
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

h1 {
  margin-bottom: 18px;
  font-size: 17px;
}

p {
  margin: 0 0 17px;
}

.section {
  padding-top: 70px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--faint);
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.text-section a,
.post-content a {
  border-bottom: 1px solid var(--faint);
}

.text-section a:hover,
.text-section a:focus-visible,
.post-content a:hover,
.post-content a:focus-visible {
  border-color: currentColor;
}

.work-list,
.post-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.work-list li + li,
.post-list li + li {
  border-top: 1px solid var(--faint);
}

.work-list a,
.post-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  padding: 13px 0 14px;
}

.work-name,
.post-title {
  min-width: 0;
}

.work-meta,
.post-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.post-content {
  margin-top: 18px;
}

.post-content > * {
  max-width: var(--measure);
}

.post-content figure {
  max-width: 100%;
}

.featured-image {
  margin: 0 0 24px;
}

.featured-image img {
  width: min(680px, 100%);
  border: 1px solid var(--faint);
}

.site-footer {
  max-width: var(--measure);
  margin-top: 90px;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.home .site-footer,
.page-template-page-work .site-footer,
.page-id-132 .site-footer {
  display: none;
}

.wp-block-image img {
  border: 1px solid var(--faint);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .site-shell {
    display: block;
  }

  .site-header {
    min-height: 0;
    padding: 82px 46px 88px;
    position: static;
  }

  .site-header.is-menu-open {
    padding-bottom: 0;
  }

  .brand-row {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 22px max-content 20px;
    margin-bottom: 0;
  }

  .site-header.is-menu-open .brand-row {
    margin-bottom: 118px;
  }

  .menu-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 7px 0 0;
    padding: 0;
    width: 22px;
  }

  .menu-toggle span:not(.screen-reader-text) {
    background: var(--ink);
    display: block;
    height: 2px;
    width: 100%;
  }

  .brand {
    font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .instagram-link {
    display: inline-flex;
    height: 20px;
    width: 20px;
  }

  .site-nav {
    display: none;
  }

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

  .site-nav-list {
    display: block;
    width: 100%;
  }

  .site-nav-list > li,
  .mobile-instagram-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  }

  .site-nav-list > li > a,
  .mobile-instagram-nav {
    display: block;
    font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 30px;
    line-height: 1.2;
    padding: 23px 0 25px;
  }

  .site-nav-list .sub-menu {
    display: none !important;
  }

  .site-nav-list li.is-submenu-open > .sub-menu {
    display: block !important;
    margin: -8px 0 18px;
    padding: 0 0 0 26px;
  }

  .site-nav-list li.is-submenu-open > a {
    padding-bottom: 14px;
  }

  .site-nav-list .sub-menu li {
    margin: 0;
  }

  .site-nav-list .sub-menu a {
    display: block;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 22px;
    line-height: 1.3;
    padding: 7px 0;
  }

  .site-main {
    padding: 16px 22px 48px;
  }

  .home .site-main,
  .page-template-page-work .site-main,
  .page-id-132 .site-main {
    padding: 0;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-photo {
    justify-self: start;
    min-height: 68vh;
    width: 100%;
  }

  .home-photo img {
    height: 68vh;
  }

  .section {
    padding-top: 54px;
  }

  .work-list a,
  .post-list a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .work-meta,
  .post-meta {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-left: 40px;
    padding-right: 40px;
  }

  .brand {
    font-size: 28px;
  }

  .section-heading {
    display: block;
  }
}
