/*
  Minimal, bootstrap-free styling for about.bootjp.me.
  The Hugo templates (hugo-resume) still use Bootstrap class names; this file
  implements only the subset of those classes actually used by the site.
*/

:root {
  --c-bg: #ffffff;
  --c-text: #343a40;
  --c-muted: #868e96;
  --c-border: #dee2e6;

  /* Defaults (overridden by static/css/resume-override.css) */
  --c-primary: #bd5d38;
  --c-primary-text: #bd5d38;
  --c-link: #bd5d38;
  --c-link-hover: #824027;

  --nav-width: 17rem;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  padding-top: 54px;
  color: var(--c-muted);
  background: var(--c-bg);
  line-height: 1.5;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: var(--nav-width);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem 0;
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 700;
  color: var(--c-text);
}

h1,
h2 {
  text-transform: uppercase;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 3.5rem;
}

p {
  margin: 0 0 1rem 0;
}

input,
button {
  font: inherit;
}

#search-query {
  width: 100%;
  max-width: 32rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

#search-query:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

a {
  color: var(--c-link);
  text-decoration: none;
  background-color: transparent;
}

a:hover,
a:focus,
a:active {
  color: var(--c-link-hover);
}

img {
  max-width: 80%;
  height: auto;
}

/* ---- Layout primitives (bootstrap subset) ---- */

.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-lg-none {
  display: block !important;
}

.d-lg-block {
  display: none !important;
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }
}

.flex-column {
  flex-direction: column !important;
}

/* Some templates use d-column by mistake; keep compatibility. */
.d-column {
  flex-direction: column !important;
}

.flex-md-row {
  flex-direction: column !important;
}

@media (min-width: 768px) {
  .flex-md-row {
    flex-direction: row !important;
  }
}

.text-center {
  text-align: center !important;
}

.text-md-right {
  text-align: left !important;
}

@media (min-width: 768px) {
  .text-md-right {
    text-align: right !important;
  }
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.small {
  font-size: 80%;
}

.rounded-circle {
  border-radius: 50% !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
  width: 100%;
}

.mr-auto {
  margin-right: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

@media (min-width: 992px) {
  .p-lg-5 {
    padding: 3rem !important;
  }
}

.pt-3 {
  padding-top: 1rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.list-inline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list-inline-item {
  display: inline-block;
}

.list-inline-item:not(:last-child) {
  margin-right: 0.5rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.p0 {
  padding: 0 !important;
}

.m0 {
  margin: 0 !important;
}

.card-text {
  margin: 0 0 0.5rem 0;
}

.card-img-top {
  display: block;
  width: 100%;
  height: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem 0;
  background: #e9ecef;
  border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  color: #6c757d;
  content: "/";
}

.breadcrumb-item.active {
  color: #6c757d;
}

.bg-primary {
  background-color: var(--c-primary) !important;
}

.text-primary {
  color: var(--c-primary-text) !important;
}

/* ---- Navbar (bootstrap subset + resume theme) ---- */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: rgba(255, 255, 255, 1);
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.navbar-toggler:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center/100% 100%;
}

.navbar-dark .navbar-toggler-icon {
  /* Same "hamburger" SVG bootstrap 4 uses. */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.65%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  width: 100%;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.65);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* ---- Resume theme rules (ported from hugo-resume) ---- */

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 1.35rem;
}

.list-social-icons a {
  color: #495057;
}

.list-social-icons a:hover {
  color: var(--c-primary);
}

.list-social-icons a .fa-lg {
  font-size: 1.75rem;
}

.list-icons {
  font-size: 3rem;
}

.list-icons .list-inline-item i:hover {
  color: var(--c-primary);
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--nav-width);
    height: 100vh;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }

  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}

section.resume-section {
  border-bottom: 1px solid var(--c-border);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

section.resume-section .resume-item .resume-date {
  min-width: auto;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }

  section.resume-section .resume-item .resume-date {
    min-width: 18rem;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

.resume-date {
  flex-shrink: 0;
}
