@charset "UTF-8";

html {
  box-sizing: border-box;
  font-size: 62.5%;
  background: linear-gradient(rgba(249,228,214,0.3), rgba(249,228,214,0.3)),
              url("../img/bg.jpg"),
              #f2e6d0;
  min-width: 320px;
}
*, *:before, *:after {
  box-sizing: inherit;
}

:root {
  --dark-color: #341804;
  --main-color: #341804;
  --light-text: #ffe6d5;
  --accent-color: #f55449;
}

/*-----------------------------------------------------------------------------
    Utility classes
-----------------------------------------------------------------------------*/
.group:after {
  content: "";
  display: table;
  clear: both;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.nobreak {
  word-break: keep-all;
}

body {
  font-size: 2rem;
  margin: 0 auto;
  padding: 0;
  color: var(--main-color);
  font-family: 'Lato', sans-serif;
  line-height: 1.2;
  /* prevent text resizing */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust :100%;
}
@media only screen and (max-width: 767px) {
  body {
    font-size: 1.8rem;
  }
}
@media only screen and (max-width: 1600px) {
}

a:link, a:visited {
  color: inherit;
  text-decoration-line: none;
}

/* standard text link */
.link:link {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent-color);
}
@media (hover: hover) {
  .link:link:hover {
    text-decoration-style: solid;
  }
}
.link:visited {
  text-decoration-color: var(--accent-color);
}

/* menu area at top of page */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  margin: 0 auto;
  z-index: 10000;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  background: rgba(249, 228, 214, 0.9);
  transition: background-color 0.2s;
}
@media (hover: hover) {
  .header:hover {
    background: rgba(249, 228, 214, 1);
  }
}
/* container for title and menu */
.menu-container {
  width: 95%;
  max-width: 800px;
  display: flex;
  align-items: center;
  margin: auto;
}
.logo {
  width: fit-content;
  min-width: 144px;
  margin: 0;
  padding: 0 0;
  color: #222;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.7rem;
  text-align: right;
  line-height:1.2;
}
.logo-name {
  width: fit-content;
  display: block;
  margin: auto;
  padding: 0 10px;
  border-right: 2px solid #dfbfa9;
}
/* container for menu list */
.main-nav {
  flex-grow: 1;
  display: block;
  margin: 0;
  padding: 10px 0;
  font-size: 2.0rem;
}
/* menu list */
.main-menu {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  font-variant: small-caps;
  font-size: 3.0rem;
  line-height: 1.2;
}
/* don't display "Welcome" menu item or menu pull-down on non-SP */
#m-welcome,
#sp-menu-btn {
  display: none;
}

/* menu item */
.menu-link {
  position: relative;
}
@media (hover: hover) {
  .menu-link:hover:after {
    content: "";
    display: block;
    width: 75%;
    height: 2px;
    position: absolute;
    left: 12.5%;
    background-color: var(--main-color);
  }
}
/* currently selected (or viewed) section */
.main-menu--current {
  font-weight: bold;
}
/* bar under menu item for currently viewed section */
.main-menu--current:after {
  content: "";
  display: block;
  width: 75%;
  height: 2px;
  position: absolute;
  left: 12.5%;
  background-color: var(--accent-color);
}

@media only screen and (max-width: 767px) {
  .main-menu {
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 600px) {
  /* don't change color on hover for narrow screens */
  .header:hover {
    background: rgba(249, 228, 214, 0.9);
  }
  /* not transparent when menu open on SP */
  .header.open {
    background: rgba(249, 228, 214, 1);
  }
  .menu-container {
    height: 48px;
    overflow: hidden;
    transition: height 0.5s;
  }
  #m-welcome {
    display: block;
  }
  .logo {
    text-align: left;
  }
  #sp-menu-btn {
    display: block;
    height:20px;
    width: 50px;
    position: absolute;
    top: 48px;
    right: 0;
    transition: top 0.5s;
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid rgba(249, 228, 214, 0.5);
    background-color: var(--accent-color);
  }
  #sp-menu-btn:hover {
    cursor: pointer;
  }
  #sp-menu-btn.active {
    background-color: var(--accent-color);
    top: 280px
  }
  #sp-menu-btn:after {
    content: "";
    display: block;
    width: 0; 
    height: 0; 
    position: relative;
    top: 5px;
    left: 17px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid rgb(249, 228, 214);
    transition: transform 0.2s;

  }
  #sp-menu-btn.active:after {
    transform: scaleY(-1);
  }

  .main-nav {
    align-self: flex-start;
    margin: 0;
    padding: 0 20px;
  }
  .main-menu {
    display: block;
    position: relative;
    top: -35px; /* hide "Welcome" when menu is open */
    transition: top 0.5s;
  }
  .menu-link {
    display: block;
    position: relative;
    line-height: 50px; /* same height on all menu items */
  }
  /* undo PC behavior */
  .menu-link:hover:after {
    content: none;
  }
  .main-menu--current:before,
  .main-menu--current:after,
  .main-menu--current:hover:after {
    content: "";
    display: block;
    position: absolute;
    width: 50%;
    height: 2px;
    left: 25%;
    background-color: var(--accent-color);
  }
  .main-menu--current:before {
    top: -1px;
  }
  .main-menu--current:after,
  .menu-link.main-menu--current:hover:after {
    bottom: -1px;
  }
}

/* title section of page */
.tp-start {
  display: flex;
  align-items: center;
  width: 95%;
  max-width: 800px;
  margin: 100px auto 0;
  position: relative;
}

/* image of me */
.tp-start-me {
  display: block;
  width: auto;
  height: 90vw;
  max-height: 550px;
  min-height: 320px;
}

/* container for title and subtitle */
.tp-start-title-container {
  flex-grow: 1;
  padding: 1em 0 1em 1em;
}
.tp-start-title-container .tp-tape-box {
  margin: 0 auto -0.8em;
  width: 40%;
}
/* box and background for title and subtitle */
.tp-start-title-container .tp-paper {
  max-width: 550px;
  margin: 0 auto;
  padding-top: 0;
  font-size: clamp(1rem, 2.25vw, 1.8rem);
  background: center top / 100% 9em no-repeat linear-gradient(#fcf2cc, #fcf2cc),
              center 10.5em / 100% 2em repeat linear-gradient(180deg, #dfdab5, #dfdab5 1px, #fcf2cc 1px);
}
/* page title */
.tp-start-title {
  margin: 0 auto;
  font-size: 3.3333em;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.2;
  text-align: left;
  padding: 0.5em 0.5em 0.3em;
  width: fit-content;
  border-radius: 3px 3px 0 0;
}
/* page subtitle */
.tp-subtitle-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 1em;
  margin: 0 0 0.8em;
  padding: 0 0 0.5em 1em;
  font-size: clamp(1.3rem, 2.2vw, 1.5rem);
  color: var(--dark-color);
  list-style-type: none;
  word-break: keep-all;
}
.tp-sbt-item {
  min-width: 35%;
  width: 11em;
  padding-left: 1.5em;
}
.tp-sub-icon {
  width: 1.2em;
  height: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  vertical-align: text-bottom;
}


@media only screen and (max-width: 600px) {
  .tp-start {
    margin:70px auto 0;
  }
}

@media only screen and (max-width: 549px) {
  .tp-start-me {
    height: 105vw;
  }
  .tp-start-title-container {
    padding: 0 0 0 1em;
  }
  .tp-start-title-container .tp-tape-box {
    margin: 0 auto -0.6em;
  }
  .tp-start-title-container .tp-paper {
    font-size: clamp(1.4rem, 2.25vw, 1.8rem);
    width: fit-content;
    background: center calc(3.2 * 7vw) / 100% 2em repeat linear-gradient(180deg, #dfdab5, #dfdab5 1px, #fcf2cc 1px);
  }
  .tp-start-title {
    font-size: clamp(1em, 7vw, 3em);
    background: #fcf2cc;
    border-radius: 3px 3px 0 0;
  }
  .tp-subtitle-list {
    flex-direction: column;
    width: fit-content;
    margin: 0.1em auto 0;
    padding-left: 0;
    font-size: 1.0em;
  }
  .tp-sbt-item {
    min-width: auto;
    width: fit-content;
  }

}

/* container for main body content of top page (after title) */
.tp-content {
  max-width: 800px;
  width: 95%;
  margin: auto;
}

/* container for section of main body */
.tp-container {
  box-sizing: border-box;
  scroll-margin-top: 75px;
  /*scroll-snap-margin-top: 75px; /* iOS 11 and older */
}
/* top line and title of section */
.tp-content-top {
  display: flex;
  align-items: center;
}
.bottomcorner,
.topcorner {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.bottomcorner::after,
.topcorner::before {
  content: "";
  flex-grow: 1;
  margin-top: 25px;
}
.bottomleftcorner {
  flex-grow: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.bottomleftcorner::before {
  content: "";
  width: 30px;
  flex-grow: 1;
  border-left: 5px solid var(--main-color);
}
.bottomleftcorner::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 0 0 0 30px;
  border-left: 5px solid var(--main-color);
  border-bottom: 5px solid var(--main-color);
}
.bottomrightcorner {
  flex-grow: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.bottomrightcorner::before {
  content: "";
  width: 30px;
  flex-grow: 1;
  border-right: 5px solid var(--main-color);
}
.bottomrightcorner::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 0 0 30px 0;
  border-right: 5px solid var(--main-color);
  border-bottom: 5px solid var(--main-color);
}
.toprightcorner {
  flex-grow: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.toprightcorner::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 0 30px 0 0;
  border-top: 5px solid var(--main-color);
  border-right: 5px solid var(--main-color);
}
.toprightcorner::after {
  content: "";
  width: 30px;
  flex-grow: 1;
  border-right: 5px solid var(--main-color);
}
.topleftcorner {
  flex-grow: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.topleftcorner::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 30px 0 0 0;
  border-top: 5px solid var(--main-color);
  border-left: 5px solid var(--main-color);
}
.topleftcorner::after {
  content: "";
  width: 30px;
  flex-grow: 1;
  border-left: 5px solid var(--main-color);
}
.topborder {
  height: 5px;
  background-color: var(--main-color);
  flex-grow: 1
}
/* heading of each top page section */
.tp-heading {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  margin: 0.2em 0;
  padding: 10px;
  border: 5px solid var(--main-color);
  border-radius: 20px;
  text-align: center;
  font-size: 1.5em;
  line-height: 1.5;
  color: var(--light-text);
  background: var(--main-color);
}
/* body content of each top page section */
.tp-content-area {
  padding: 1em 30px 1em 45px;
}
.tp-content-area.right {
  border-right: 5px solid var(--main-color);
}
.tp-content-area.left {
  border-left: 5px solid var(--main-color);
}

@media only screen and (max-width: 767px) {
  .bottomcorner::after,
  .topcorner::before {
    margin-top: 12px;
  }
  .bottomleftcorner {
  }
  .bottomleftcorner::before {
    width: 15px;
    border-left: 3px solid var(--main-color);
  }
  .bottomleftcorner::after {
    width: 15px;
    height: 15px;
    border-radius: 0 0 0 15px;
    border-left: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
  }
  .bottomrightcorner {
  }
  .bottomrightcorner::before {
    width: 15px;
    border-right: 3px solid var(--main-color);
  }
  .bottomrightcorner::after {
    width: 15px;
    height: 15px;
    border-radius: 0 0 15px 0;
    border-right: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
  }
  .toprightcorner {
  }
  .toprightcorner::before {
    width: 15px;
    height: 15px;
    border-radius: 0 15px 0 0;
    border-top: 3px solid var(--main-color);
    border-right: 3px solid var(--main-color);
  }
  .toprightcorner::after {
    width: 15px;
    border-right: 3px solid var(--main-color);
  }
  .topleftcorner {
  }
  .topleftcorner::before {
    width: 15px;
    height: 15px;
    border-radius: 15px 0 0 0;
    border-top: 3px solid var(--main-color);
    border-left: 3px solid var(--main-color);
  }
  .topleftcorner::after {
    width: 15px;
    border-left: 3px solid var(--main-color);
  }
  .topborder {
    height: 3px;
  }
  .tp-heading {
    border: 3px solid var(--main-color);
    border-radius: 15px;
    padding: 5px;
    margin: 0.2em 0;
  }
  .tp-content-area {
    padding: 1em 10px 1em 20px;
  }
  .tp-content-area.right {
    border-right: 3px solid var(--main-color);
  }
  .tp-content-area.left {
    border-left: 3px solid var(--main-color);
  }
}

/* copy text for body of top page section */
.tp-copy {
  margin: 1em 0;
  padding: 0;
  line-height: 1.7em;
}
.tp-content-area > .tp-copy:first-child {
  margin-top: 0;
}

.tp-float-right {
  float: right;
  margin-left: 1em;
  width: 35%;
}

/* box with tape background and edges */
.tp-tape-box {
  display: block;
  width: fit-content;
  position: relative;
  margin-left: -40px;
  padding: 0.5em 0.1em;
  border-radius: 0px;
  border-image: url("../img/tape.png"); /* using border image because of gaps on iOS with consecutive block elements */
  border-image-slice: 0 40 0 40 fill;
  border-image-repeat: repeat;
  border-width: 0 40px;
  border-style: solid;
  color: #181818;
}
h3.tp-tape-box {
  font-size: 1.17em;
  font-weight: bold;
}

/* for tape box used as title for memo style block */
.tp-paper-title {
  margin-left:0;
  margin-bottom:-1em;
}


/* memo theme background block */
.tp-paper {
  clear:right;
  margin-right: -1em;
  padding-top: 1em;
  border-radius: 3px;
  font-size: 1.8rem;
  line-height: 2em;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 3px 3px 10px rgba(52, 24, 4, 0.1);
  background: center 0.75em / 100% 2em repeat linear-gradient(180deg, #dfdab5, #dfdab5 1px, #fcf2cc 1px);
}

.tp-paper-copy {
  padding: 0 0.5em;
  margin-top:0;
  margin-bottom: 0;
}
.tp-paper-copy:last-child {
  margin-bottom: 0.8em;
}
.tp-paper-list {
  padding: 0 1em 0 1.8em;
  margin-top:0;
  margin-bottom: 0.8em;
}

/* box for instant picture style picture and caption */
.instant-pic {
  overflow: hidden;
  height: auto;
  aspect-ratio: 3.5 / 4.2;
  margin: 0;
  border-radius: 2px 1px 1px 2px;
  background-color: #f5f5f5bb;
  background: linear-gradient(to right, #eeeeeebb, #f5f5f5bb),
              repeat 0% 0% / 7px 7px radial-gradient(circle at center, #fafafa, #fff 3px, #fff);
  box-shadow: 1px 1px 3px rgba(25, 25, 25, 0.1);
}
.instant-pic-img {
  display: block;
  overflow: hidden;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 1 / 1;
  width: calc(3.1 / 3.5 * 100%);
  height: auto;
  margin: auto;
  margin-top: calc(50% - 3.1 / 3.5 * 50%);
  border: 1px solid #dadada55;
}
.instant-pic-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 86.8217%;
  height: 21%;
  margin: auto;
}
/* main title for picture; limited to one line */
.instant-pic-caption-title {
  overflow-x: hidden;
  height: 1.25em;
  margin: 0;
  color: #333;
  font-size: 1.2em;
  line-height: 1.2;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent-color);
}
/* additional details under the main title of the picture; limited to one line */
.instant-pic-caption-details {
  overflow-x: hidden;
  overflow-y: visible;
  margin: 0.25em 0 0;
  font-size: 0.7em;
  color: #555;
  text-wrap: nowrap;
  text-overflow: ellipsis;
}
/* two columns for pics on wider screens */
.tp-two-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2%;
}
.tp-col-item {
  flex-basis: 49%;
  margin-bottom: 2%;
  transition: transform 0.25s;
}
@media (hover: hover) {
  a.tp-col-item:hover {
    transform: rotate(-2deg);
  }
  a.tp-col-item:hover .instant-pic-caption-title {
    text-decoration-style: solid;
  }
}

@media only screen and (max-width: 767px) {
  .tp-tape-box {
    margin-left: -13px;
    border-width: 0 15px;
    border-style: solid;
  }
  .tp-paper-title {
    margin-left: 0.5em;
  }
  .tp-float-right {
    float: right;
    margin-left: 1em;
    width: 250px;
  }
  .tp-paper {
    margin-right: 0;
  }
}
@media only screen and (max-width: 549px) {
  .tp-float-right {
    float: none;
    margin: 0 auto;
  }
  .tp-two-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
  }
  .tp-col-item {
    flex-basis: auto;
    width: 65vw;
  }
}

/* contact card */
.tp-card-container {
  margin: auto;
  width: fit-content;
  margin-bottom: 2em;
}
.tp-card {
  display: flex;
  align-items: center;
  aspect-ratio: 9.1/5.5;
  max-width: 450px;
  padding: 0 1em;
  border-radius: 1px;
  background: center / contain no-repeat url("../img/paper.jpg");
}
.tp-card-address {
  width: 60%;
  font-style: normal;
}
.tp-card-name {
  padding-bottom: 0.2em;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.tp-card-email,
.tp-card-location {
  padding: 0.1em 1em;
}
.tp-card-address-icon {
  max-width:0.8em;
  height: auto;
}
.tp-card-details {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40%;
  align-self: stretch;
  padding: 1em 0 1em 40px;
  font-size: 0.7em;
  line-height: 1.2;
  list-style-type: none;
  word-break: keep-all;
}
.tp-card-icon {
  width: 1.2em;
  height: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  vertical-align: top;
}

@media only screen and (max-width: 549px) {
  /* vertical contact card on narrow screens */
  .tp-card {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    aspect-ratio: 5.5/9.1;
    max-width: 275px;
    padding: 0 1em;
    border-radius: 1px;
    background: center / cover no-repeat url("../img/paper.jpg");
  }
  .tp-card-address {
    display: flex;
    align-items: center;
    width: auto;
    flex-grow: 1;
    padding-top: 2em;
  }
  .tp-card-email,
  .tp-card-location {
    padding: 0.2em 2em;
  }
  .tp-card-details {
    width: auto;
    height: 60%;
    margin: auto;
    padding-left:2.5em;
    font-size: 0.9em;
  }
}

.footer {
  display: block;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: 10px;
  color: var(--light-text);
  background-color: #8e7970;
  background-color: var(--dark-color);
  text-align: center;
}