/*Typography*/
@font-face { 
  font-family: Fira Sans BGR; 
  src: url(/assets/fonts/FiraSansBGR-Regular.woff); 
  font-weight: normal; 
}
/*Typography*/
@font-face { 
  font-family: Azbuki; 
  src: url(/assets/fonts/Azbuki-Regular.woff2); 
  font-weight: normal; 
}

/* Constraints */
:root {
  --page-width: 52rem;
  --sidebar-width: 15rem;
  --max-body-width: 75rem;
  --main-accent-color: #fff;
  /* --secondary-accent-color: #b0b1b1; */
  --secondary-accent-color: #c6d6da;
}

/* Site styling */
html {
  overflow:auto;
}
body {
  width: 100%;
  margin: auto;
  max-width: var(--max-body-width);
  font-family: 'Fira Sans BGR';
  font-size: 1rem;
  line-height: 1.3rem;
}

div.flex-two-column {
  max-width: var(--total-width);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

/* --page-width + --sidebar-width */
@media only screen and (min-width: 68.0rem) {
  div.right-sidebar {
    position: sticky;
    top: 0;
  }
}
@media only screen and (min-width: 68.5625rem) {
  div.flex-two-column {
    justify-content: space-around;
  }
}
@media only screen and (max-width: 68.5rem) {
  div.main-body {
    overflow: auto;
    padding-left: 1rem;
  }
  div.flex-two-column {
    justify-content: flex-end;
  }
  /* add alignment between summary and info */
}

div.main-body {
  word-wrap: break-word;
}
div.right-sidebar {
  max-width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  align-items: flex-start;
  padding-left: 2rem;
  padding-bottom: 3rem;
  & > .contact.message {
    margin-left: 0.35rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  & > .contact {
    white-space: nowrap;
    padding-top: 0.75rem;
  }
  & > .contact.location > svg {
    margin-top: 0.1rem;
  }
  & > .contact.location > .contact.address {
    display: inline-block;
    vertical-align: top;
    line-height: 1.5rem;
  }
  & > .contact > * {
    vertical-align: middle;
    line-height: 2rem;
    padding-right: 0.33rem;
  }
}

div.container {
  margin: auto;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  max-width: var(--page-width);
}
div.intro.container {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.motivation {
  font-family: Azbuki;
  font-size: 1.1rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
.summary {
  text-align: justify;
  font-family: Azbuki;
  font-size: 1.1rem;
  margin-left: 2rem;
  text-wrap: pretty;
  max-width: calc(0.55*var(--page-width));
  margin-bottom: 2rem;
}

.pricing {
  padding-bottom: 3rem;
}
.pricing-note {
  font-size: 1rem;
  padding-top: 2rem;
}

table {
  border:none;
}
th {
  text-align: center;
}
.pricing td {
  font-size: 0.8rem;
}
td {
  max-width: calc(0.9*var(--page-width));
  margin-top: 0.75rem;
  padding: 0.1rem;
  vertical-align: middle;
  line-height: 1.5rem;
  border: double;
}
td.price {
  text-align: right;
  white-space: nowrap;
}
tr:nth-child(even) {
  background-color: var(--secondary-accent-color);
}
tr:nth-child(odd) {
  background-color: var(--main-accent-color);
}

ul li {
  text-align: justify;
  margin-bottom: 1.2rem;
}

.bio {
  width: max-content;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  
  margin-bottom: 1rem;
  & > * {
    width: max-content;
    margin-bottom: 1rem;
  }

  & > .photo img {
    height: 16rem;
    border-radius: 15%;
    object-position: -40% 0;
  }
  & > .name {
    font-weight: bold;
    font-size: 2.5rem;
  }
  & > .title {
    font-size: 1.5rem;
  }  
}

article.notice {
  padding-top: 4rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.title-document {
  font-size: 1.5rem;
  vertical-align: middle;
  text-wrap: pretty;
}

.logo-accent {
  height: 3rem;
  border-radius: 75%;
  vertical-align: middle;
}

.uri-404 {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-line: underline;
  text-underline-offset: 0.3rem; 
}

article.notice .back-button {
  font-size: 1.2rem; 
}


.timetable td {
  background-color: white;
  border: none;
}
.timetable td:first-child {
  text-align: right;
}
.timetable td:nth-child(2) {
  text-align: center;
}

.office-map {
  padding: 1rem;
  margin: auto;
}

p {
  text-indent: 1rem;
}
